* implement get_account_info to provide information about the authenticated user's account (#556)
* Apply suggestions from code review to tests/README.rst
Co-authored-by: sigma67 <16363825+sigma67@users.noreply.github.com>
* simplify get_account_info by moving code out of parsers.py and navigation.py
* test with non-auth account
* format
* update .pre-commit-config.yaml
---------
Co-authored-by: sigma67 <16363825+sigma67@users.noreply.github.com>
Co-authored-by: sigma67 <sigma67.github@gmail.com>
* Fix parsing of album and views in parse_playlist_items
Parse album and views columns as a function of flex column count and is_album property to cater for varying layouts with three and four flex columns
* Add "own_playlist" attribute to playlists
To allow for an easy distinction between owned / editable and community / non-editable playlists,in applications incorporating ytmusicapi, a boolean "own_playlist" dictionary entry is added to playlists based on existing code already identifying this property.
* Add thumbnails to episodes
Add thumbnails to episodes for visual rendering in Kodi etc.
* Add unit test for playlist "own_playlist" attribut
Add unit test for playlist "own_playlist" attribut
* Improvements as requested
- rename attribute for own playlists to playlist("owned")
- filter out episode thumbnails with an non-functional URL
* Fix linter in test_playlists.py
Fix test for playlist["owned"]
* Auto-Formatting on playlists.py
* format parsers/podcasts.py
* Remove filtering of podcast thumbnails
No idea why I had seen useless images for those thumbnails before - maybe Google fixed something to make them work?
* handle playlists appearing in top results #524
parse playlists appearing in top results returning results the same way as for other playlists found be search()
* fixup, add test
---------
Co-authored-by: sigma67 <ytmusicapi@gmail.com>
* Remove offset + fix top result
Remove offset + fix top result
* add Null checks
add Null checks
* Make updates per comments
Make updates per comments
* Update ytmusicapi/parsers/search.py
---------
Co-authored-by: sigma67 <16363825+sigma67@users.noreply.github.com>
* get_album (via parse_playlist_items): add track_position key + tests for the badly indexed album
* get_album & parse_playlist_items: nav changes
* parse_playlist_items: only add track_position for albums
* parse_playlist_items & related test_browsing: track_position > track_number
---------
Co-authored-by: sigma67 <sigma67.github@gmail.com>