ytmusicapi: get_album() results in KeyError: 'frameworkUpdates'
Have never had issues before (aside from my auth key going expired) until recently. Most of the other api calls work fine such as : search()
get_liked_songs()
ect, so i assume my auth key is still valid. I only see this issue with get_album()
.
To be sure my problem is repeatable, i was able to replicate in. a fresh python 3.9 venv with the following
$ python3 -m venv ./test
$ source test/bin/activate
(test) $ pip install ytmusicapi --upgrade
(test) $ python
…then in the python console
(note i tried other browseId
values for get_album()
like get_album("MPREb_4pL8gzRtw1p")
from test.py
Python 3.9.2 (default, Feb 24 2021, 13:26:09)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from ytmusicapi import YTMusic
>>> yt = YTMusic('headers_auth.json')
>>> yt.get_album('MPREb_EW11k5ujKg4')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/site-packages/ytmusicapi/mixins/browsing.py", line 433, in get_album
data = nav(response, FRAMEWORK_MUTATIONS)
File "/usr/local/lib/python3.9/site-packages/ytmusicapi/parsers/utils.py", line 210, in nav
raise err
File "/usr/local/lib/python3.9/site-packages/ytmusicapi/parsers/utils.py", line 204, in nav
root = root[k]
KeyError: 'frameworkUpdates'
>>>
any ideas? I saw some closed issues with similar errors, but i think this issue recently popped up, my code worked fine about a month ago
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20 (9 by maintainers)
Commits related to this issue
- get_album: fix for future YouTube update/beta program (#173) reuse code from get_library_upload_album — committed to sigma67/ytmusicapi by deleted user 3 years ago
Yes, nothing changed in that version. I presume more and more users are getting moved to the build OP was on, so should probably start work on the change soon.