fix(playlists): handle missing regex group in trackCount (#651)
* 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>
This commit is contained in:
parent
7b96ac2c5e
commit
5478951ba3
4 changed files with 16 additions and 22 deletions
|
|
@ -74,7 +74,7 @@ class TestSearch:
|
|||
assert len(results) > 10
|
||||
assert all(item["resultType"] == "profile" for item in results)
|
||||
results = yt_auth.search(query, filter="podcasts")
|
||||
assert len(results) > 10
|
||||
assert len(results) > 5
|
||||
assert all(item["resultType"] == "podcast" for item in results)
|
||||
results = yt_auth.search(query, filter="episodes")
|
||||
assert len(results) >= 3
|
||||
|
|
|
|||
Loading…
Reference in a new issue