Fix error when continuations contents are missing from response (#52)

Always keep response with most results for retries
This commit is contained in:
sigma67 2020-09-01 16:42:34 +02:00
commit ca8a73046b
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
2 changed files with 26 additions and 16 deletions

View file

@ -107,7 +107,9 @@ class TestYTMusic(unittest.TestCase):
def test_get_library_songs(self):
songs = youtube_brand.get_library_songs(100)
self.assertGreater(len(songs), 0)
self.assertGreaterEqual(len(songs), 100)
songs = youtube_auth.get_library_songs(200, validate_responses=True)
self.assertGreaterEqual(len(songs), 200)
def test_get_library_albums(self):
albums = youtube_brand.get_library_albums(100)