refactor: clean up, fix & remove outdated code #228
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This removes all references to legacy code from v1, including most of the utility methods from
Actions
and the oldcall
method fromNavigationEndpoint
. This should make the library easier to maintain and less prone to bugs.Also including a few fixes:
Support for YouTube Music's new library layout
YouTube Music recently received a layout update which caused @patrickkfkan's implementation to break, the page now consists of a simple header + contents configuration.
Usage:
YouTube Playlists
The
Innertube#getPlaylist
method would usually return an invalidPlaylist
object and continuations could not be retrieved, this should fix that.This is a rather huge PR, so my apologies to anyone looking around here.
Type of change
Checklist: