Add likeStatus for uploaded songs

This commit is contained in:
sigma67 2020-05-25 17:00:22 +02:00
commit 2fa0603694
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
3 changed files with 12 additions and 17 deletions

View file

@ -183,20 +183,12 @@ class TestYTMusic(unittest.TestCase):
self.assertEqual(response, 'STATUS_SUCCEEDED')
def test_get_library_upload_album(self):
songs = youtube_auth.get_library_upload_songs()
for song in songs:
if song['album']:
album = youtube_auth.get_library_upload_album(song['album']['id'])
self.assertGreater(len(album['tracks']), 0)
break
album = youtube_auth.get_library_upload_album(config['uploads']['private_album_id'])
self.assertGreater(len(album['tracks']), 0)
def test_get_library_upload_artist(self):
songs = youtube_auth.get_library_upload_songs()
for song in songs:
if song['artist']:
tracks = youtube_auth.get_library_upload_artist(song['artist'][0]['id'])
self.assertGreater(len(tracks), 0)
break
tracks = youtube_auth.get_library_upload_artist(config['uploads']['private_artist_id'])
self.assertGreater(len(tracks), 0)
if __name__ == '__main__':