mirror of
https://github.com/Googolplexed0/zotify.git
synced 2026-04-25 06:15:55 +03:00
[GH-ISSUE #150] KeyError: 'id' #133
Labels
No labels
bug
considering
discussion
documentation
enhancement
enhancement
good first issue
help wanted
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/zotify#133
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @U2EZNeko on GitHub (Jan 12, 2026).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/150
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "c:\users\nobod\appdata\roaming\python\python313\scripts\zotify.exe_main.py", line 6, in
sys.exit(main())
~~~~^^
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify_main.py", line 143, in main
client(args, modes)
~~~~~~^^^^^^^^^^^^^
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\app.py", line 85, in client
perform_query(args)
~~~~~~~~~~~~~^^^^^^
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\app.py", line 77, in perform_query
raise e
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\app.py", line 48, in perform_query
Query(Zotify.DATETIME_LAUNCH).request(urls).execute()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\api.py", line 1725, in execute
self.parse_direct_metadata(*self.fetch_direct_metadata(direct_reqs_objs))
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\api.py", line 1538, in parse_direct_metadata
obj.parse_metadata(item_resp)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\api.py", line 1382, in parse_metadata
self.update_id(artist_resp[ID])
~~~~~~~~~~~^^^^
KeyError: 'id'
Recently tried updating from regular branch to API branch.
Configs are pretty much fresh apart from my directories (semi fresh windows install)
Is this an error on my side? I tried reinstalling and uninstall + install again with no luck.
Best regards, hope you had a good new year!
@Googolplexed0 commented on GitHub (Jan 20, 2026):
This has been happening for a while, the
parse_metadatafunction was not very safe if any expected fields were missing. See if the new-hierarchy branch fixes this issue, I rewrote the parsing function from scratch.