[GH-ISSUE #152] [Bug Report] Metadata TypeError (added_at) #135

Closed
opened 2026-02-27 04:57:44 +03:00 by kerem · 3 comments
Owner

Originally created by @DoomVIle on GitHub (Jan 19, 2026).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/152

Originally assigned to: @Googolplexed0 on GitHub.

Zotify Version
v0.11.15

Bug Description
Zotify crashes when trying to download a specific playlist,

Bug Triggering Command
C:\Users\Vilev> zotify https://open.spotify.com/playlist/3EW5boIMBsnLunfMESeLZK

Error Traceback / Logs
zotify_DEBUG_2026-01-19_14-05-00.log
DEBUG

config_DEBUG.json saved to C:\Users\Vilev\AppData\Roaming\Zotify

zotify_DEBUG_2026-01-19_14-05-00.log logging to C:\Users\Vilev\Music\Zotify Music

    [●∙∙] Logging in...                                                                                                                                                                                      

DEBUG
Session Initialized Successfully
User Subscription Type: PREMIUM
Request Parsed as 1 URL

    [∙∙∙] Fetching playlist information...                                                                                                                                                                           [∙●∙] Parsing playlist information...                                                                                                                                                                    

DEBUG
Total API Calls: 12

Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "c:\users\vilev.local\bin\zotify.exe_main
.py", line 6, in
sys.exit(main())
~~~~^^
File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify_main
.py", line 143, in main
client(args, modes)
~~~~~~^^^^^^^^^^^^^
File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 85, in client
perform_query(args)
~~~~~~~~~~~~~^^^^^^
File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 77, in perform_query
raise e
File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 48, in perform_query
Query(Zotify.DATETIME_LAUNCH).request(urls).execute()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1725, in execute
self.parse_direct_metadata(*self.fetch_direct_metadata(direct_reqs_objs))
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1540, in parse_direct_metadata
obj.grab_more_children(hide_loader=True)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1159, in grab_more_children
item_resps = self.fetch_items(hide_loader=hide_loader)
File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1241, in fetch_items
item[TRACK][ADDED_AT] = item[ADDED_AT]
~~~~~~~~~~~^^^^^^^^^^
TypeError: 'NoneType' object does not support item assignment

Config File
config_DEBUG.json

Additional Context
I'm on the Efficient API branch, my playlist is pretty big and contains local files, which i think may contribute to this error happening

Originally created by @DoomVIle on GitHub (Jan 19, 2026). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/152 Originally assigned to: @Googolplexed0 on GitHub. **Zotify Version** v0.11.15 **Bug Description** Zotify crashes when trying to download a specific playlist, **Bug Triggering Command** C:\Users\Vilev> zotify https://open.spotify.com/playlist/3EW5boIMBsnLunfMESeLZK **Error Traceback / Logs** [zotify_DEBUG_2026-01-19_14-05-00.log](https://github.com/user-attachments/files/24722415/zotify_DEBUG_2026-01-19_14-05-00.log) DEBUG ### config_DEBUG.json saved to C:\Users\Vilev\AppData\Roaming\Zotify ### ### zotify_DEBUG_2026-01-19_14-05-00.log logging to C:\Users\Vilev\Music\Zotify Music ### [●∙∙] Logging in... DEBUG Session Initialized Successfully User Subscription Type: PREMIUM Request Parsed as 1 URL [∙∙∙] Fetching playlist information... [∙●∙] Parsing playlist information... DEBUG Total API Calls: 12 Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "c:\users\vilev\.local\bin\zotify.exe\__main__.py", line 6, in <module> sys.exit(main()) ~~~~^^ File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\__main__.py", line 143, in main client(args, modes) ~~~~~~^^^^^^^^^^^^^ File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 85, in client perform_query(args) ~~~~~~~~~~~~~^^^^^^ File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 77, in perform_query raise e File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 48, in perform_query Query(Zotify.DATETIME_LAUNCH).request(urls).execute() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1725, in execute self.parse_direct_metadata(*self.fetch_direct_metadata(direct_reqs_objs)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1540, in parse_direct_metadata obj.grab_more_children(hide_loader=True) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1159, in grab_more_children item_resps = self.fetch_items(hide_loader=hide_loader) File "C:\Users\Vilev\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1241, in fetch_items item[TRACK][ADDED_AT] = item[ADDED_AT] ~~~~~~~~~~~^^^^^^^^^^ TypeError: 'NoneType' object does not support item assignment **Config File** [config_DEBUG.json](https://github.com/user-attachments/files/24722430/config_DEBUG.json) **Additional Context** I'm on the Efficient API branch, my playlist is pretty big and contains local files, which i think may contribute to this error happening
kerem 2026-02-27 04:57:44 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Googolplexed0 commented on GitHub (Jan 20, 2026):

@DoomVIle see if the new-hierarchy branch fixes this issue.

<!-- gh-comment-id:3770809665 --> @Googolplexed0 commented on GitHub (Jan 20, 2026): @DoomVIle see if the [new-hierarchy branch](https://github.com/Googolplexed0/zotify/tree/new-hierarchy) fixes this issue.
Author
Owner

@DoomVIle commented on GitHub (Jan 20, 2026):

Tried the new branch, still getting the error, I'm sending the debug files in case it helps

zotify_DEBUG_2026-01-20_10-07-38.log

config_DEBUG.json

<!-- gh-comment-id:3773366215 --> @DoomVIle commented on GitHub (Jan 20, 2026): Tried the new branch, still getting the error, I'm sending the debug files in case it helps [zotify_DEBUG_2026-01-20_10-07-38.log](https://github.com/user-attachments/files/24740743/zotify_DEBUG_2026-01-20_10-07-38.log) [config_DEBUG.json](https://github.com/user-attachments/files/24740745/config_DEBUG.json)
Author
Owner

@Googolplexed0 commented on GitHub (Jan 21, 2026):

Should be fixed with github.com/Googolplexed0/zotify@ee88dfca80

<!-- gh-comment-id:3776207745 --> @Googolplexed0 commented on GitHub (Jan 21, 2026): Should be fixed with https://github.com/Googolplexed0/zotify/commit/ee88dfca800042a971ae0df6ebbb7a04aa99ad1b
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zotify#135
No description provided.