* Fix duration parsing for very long videos sigma67#660
* parse duration only when digits are present
* explicit return None
* Add test for track dur > 1k hrs
* fix#656: attempt to find runs in subtitle if not in title
* refactor
* remove fix by gotofritz
---------
Co-authored-by: sigma67 <sigma67.github@gmail.com>
* fix#642: create_playlist: raise error when invalid characters are part of playlist title
* add test
* fix CI helper
* fix CI helper
* adjust workflow
* fix(playlists): get_playlist trackCount incorrect for playlists with more than 1k tracks
This ensures that the regex doesnt just return the first group in 1000+ long playlists.
* feat+fix(playlist_tests): Update playlist ID and add new track count test
* fix tests
---------
Co-authored-by: RealCalumPlays <calumplays666+github@gmail.com>
Co-authored-by: sigma67 <sigma67.github@gmail.com>
* coverage: remove temporary code for new playlist format
* fix flaky search test
* improve rate_song coverage
* test invalid order raise
* fix workflow
* add unit test that attempts to retrieve a song after its been uploaded
* prevent parsing errors when an uploaded song lacks a duration
* update unit test to delete/re-upload song if it already is uploaded
* format
* fix test
* add another sleep to end2end playlist
---------
Co-authored-by: sigma67 <ytmusicapi@gmail.com>
* 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>
* 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>