Fix continuations to always retrieve at least the specified limit, even if YTMusic returns less than per_page

This commit is contained in:
sigma67 2020-07-15 21:08:08 +02:00
commit 90bc7538e4
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
2 changed files with 4 additions and 6 deletions

View file

@ -69,15 +69,15 @@ class TestYTMusic(unittest.TestCase):
self.assertGreater(len(playlists), 0)
def test_get_library_songs(self):
songs = youtube_brand.get_library_songs(200)
songs = youtube_brand.get_library_songs(100)
self.assertGreater(len(songs), 0)
def test_get_library_albums(self):
albums = youtube_brand.get_library_albums(50)
albums = youtube_brand.get_library_albums(100)
self.assertGreater(len(albums), 0)
def test_get_library_artists(self):
artists = youtube_brand.get_library_artists(50)
artists = youtube_brand.get_library_artists(100)
self.assertGreater(len(artists), 0)
def test_get_library_subscriptions(self):