Features ✨
search
: Support the new library search that was rolled out globally this week. For this purpose, a newscope
parameter was introduced forsearch
. It can takeuploads
orlibrary
values depending on the alternative search scope intended. Consequentially,uploads
is no longer passed using thefilter
argument. Thefilter
argument can be used without a scope (global YouTube Music catalogue search, as previously), or with the new library search. All existing filters work with the library search except the videos filter, as you cannot add videos to your library (only to liked playlist)get_charts
: get latest chart data from YouTube Music. This further contributes to ytmusicapi's implementation of the Explore tab in YouTube Music, after the moods and genres implementation in 0.18.0. The function retrieves all data shown on the/charts
page and takes a country code as parameter, orZZ
for global charts.
Changes ⚒
- BREAKING: to improve consistency across the project, the key
artists
is now used whenever a list of artists with (name,id) dictionary is provided (instead ofartist
). This affectsget_album
,get_library_upload_songs
,get_library_upload_album
,get_library_upload_artist
. See #215
Fixes 🐞
get_library_upload_albums
: a key in the data structure was changed in a recent YouTube update, the function should now work again without issue