* 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>
While I was reading the docs to append video items, I got confused by the setVideoId parameter. I added the missing field to the get_playlists_id example and copied the definition to the edit playlist documentation.
I hope this is ok, it's a very small change, but I think it might help others. I really appreciate the time you take by looking at this.
* coverage: remove temporary code for new playlist format
* fix flaky search test
* improve rate_song coverage
* test invalid order raise
* fix workflow
* Return blank album author ID when it doesn't exist.
* Revert "Return blank album author ID when it doesn't exist."
This reverts commit ccc5cf93ab4e28fc688db93a0066104b1c4e9e3e.
* Return blank album author ID when it doesn't exist.
* fix sum_total_duration failing if duration_seconds is not an int
Signed-off-by: Adwait Thattey <coderdude1999@gmail.com>
* format
---------
Signed-off-by: Adwait Thattey <coderdude1999@gmail.com>
Co-authored-by: sigma67 <sigma67.github@gmail.com>
* get_home: remove "year" attribute from album results, parse podcasts and episodes
* search: make itemCount int cast error proof
* fix None case for parse_album year
* fix lint
* 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>
* adding Optional type hinting for limits
adding Optional typing for limit in methods whose documentation explicitly allows the use of None type for no limit
* format
---------
Co-authored-by: sigma67 <sigma67.github@gmail.com>
* Add "type" attribute to library channels
YTMusic Library Channels list not only channels in the narrow sense but also artists publishing podcasts and episodes (e.g. The Offspring). To distinguish the two types of items, the json code contains a page_type attribute. This PR adds code to read the page_type attribute and, if present, add a "tyoe" item with a value of "channel" or "artist" to the artist dictionary object.