get_library_upload_album: fix issue getting album artist id
This commit is contained in:
parent
12c7c82521
commit
83e886b337
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue