Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Wip api adjustments #94

Merged
merged 72 commits into from
Dec 13, 2020
Merged

Wip api adjustments #94

merged 72 commits into from
Dec 13, 2020

Conversation

TimeForANinja
Copy link
Owner

@TimeForANinja TimeForANinja commented Dec 2, 2020

todo before merging

  • fix requests

  • update exaple responses

  • update typings

  • update documentation / README

  • rewrite tests

closes #72
closes #83
closes #84
closes #100

Porting code

  • request options for miniget were moved to options#requestOptions
  • nextpageRef was replaced by the continuation feature => check the README for more information
  • pages was added as a more request-efficient alternative to limit
  • playlist#visibility#link_only was renamed to unlisted
  • all thumbnails are now Objects of type Image featuring url, width and height properties - arrays of images are always sorted by descending resolution
  • all links have been renamed from ref to url to keep it consistend across all libraries
  • all snake_case variables were replaced by CamelCase
  • response#result_items is now response#estimatedItemCount
  • all users/channels feature both the channelID as well as a canonical url

dbrn and others added 30 commits November 15, 2020 23:26
Some things still need to be tested throughout. But it works for my app and I think this could be a good starting point to make the library work again.
Fixed a bug that prevented the correct parsing of some JSON objects.
Added a try-catch in the removeHtml function.
It was preventing to correctly show some files that didn't feature a short description
I made the code compatible with the latest data return
Co-authored-by: TimeForANinja <[email protected]>
@TimeForANinja TimeForANinja merged commit eabca3c into master Dec 13, 2020
@TimeForANinja TimeForANinja deleted the wip-api-adjustments branch December 13, 2020 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants