get_library_upload_album: fix issue getting album artist id

This commit is contained in:
sigma67 2020-05-21 20:57:19 +02:00
commit 83e886b337
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
2 changed files with 3 additions and 3 deletions

View file

@ -161,8 +161,8 @@ class TestYTMusic(unittest.TestCase):
###############
def test_get_library_upload_songs(self):
results = youtube_auth.get_library_upload_songs(126)
self.assertGreater(len(results), 100)
results = youtube_auth.get_library_upload_songs(100)
self.assertGreater(len(results), 25)
def test_get_library_upload_albums(self):
results = youtube_auth.get_library_upload_albums(50)

View file

@ -1079,7 +1079,7 @@ class YTMusic:
if run_count == 5:
album['artist'] = {
'name': nav(header, SUBTITLE2),
'id': nav(header, SUBTITLE2 + NAVIGATION_BROWSE_ID)
'id': nav(header, ['subtitle', 'runs', 2] + NAVIGATION_BROWSE_ID)
}
album['year'] = nav(header, SUBTITLE3)