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
|
|
@ -3,7 +3,7 @@ class TestPodcasts:
|
|||
podcast_id = config["podcasts"]["channel_id"]
|
||||
channel = yt.get_channel(podcast_id)
|
||||
assert len(channel["episodes"]["results"]) == 10
|
||||
assert len(channel["podcasts"]["results"]) > 5
|
||||
assert len(channel["podcasts"]["results"]) >= 5
|
||||
|
||||
def test_get_channel_episodes(self, config, yt_oauth):
|
||||
channel_id = config["podcasts"]["channel_id"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue