[GH-ISSUE #116] [Bug Report] Playlist Item Exists, Item Track is None #102

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

Originally created by @SkilletWarez on GitHub (Nov 13, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/116

Originally assigned to: @Googolplexed0 on GitHub.

C:\Users\ERL>zotify https://open.spotify.com/playlist/37i9dQZF1DWVjrTQlvqTHF

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

Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "c:\users\erl.local\bin\zotify.exe_main
.py", line 6, in
sys.exit(main())
~~~~^^
File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify_main
.py", line 140, in main
args.func(args, modes)
~~~~~~~~~^^^^^^^^^^^^^
File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 78, in client
perform_query(args)
~~~~~~~~~~~~~^^^^^^
File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 69, in perform_query
raise e
File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 44, in perform_query
Query(Zotify.DATETIME_LAUNCH).request(urls).execute()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1686, in execute
self.parse_direct_metadata(*self.fetch_direct_metadata(direct_reqs_objs))
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1510, in parse_direct_metadata
obj.parse_metadata(item_resp)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1219, in parse_metadata
track_or_ep[ADDED_AT] = item[ADDED_AT]
~~~~~~~~~~~^^^^^^^^^^
TypeError: 'NoneType' object does not support item assignment

Originally created by @SkilletWarez on GitHub (Nov 13, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/116 Originally assigned to: @Googolplexed0 on GitHub. C:\Users\ERL>zotify https://open.spotify.com/playlist/37i9dQZF1DWVjrTQlvqTHF [●∙∙] Logging in... [∙∙∙] Fetching playlist information... [●∙∙] Parsing playlist information... 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\erl\.local\bin\zotify.exe\__main__.py", line 6, in <module> sys.exit(main()) ~~~~^^ File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify\__main__.py", line 140, in main args.func(args, modes) ~~~~~~~~~^^^^^^^^^^^^^ File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 78, in client perform_query(args) ~~~~~~~~~~~~~^^^^^^ File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 69, in perform_query raise e File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 44, in perform_query Query(Zotify.DATETIME_LAUNCH).request(urls).execute() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1686, in execute self.parse_direct_metadata(*self.fetch_direct_metadata(direct_reqs_objs)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1510, in parse_direct_metadata obj.parse_metadata(item_resp) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "C:\Users\ERL\pipx\venvs\zotify\Lib\site-packages\zotify\api.py", line 1219, in parse_metadata track_or_ep[ADDED_AT] = item[ADDED_AT] ~~~~~~~~~~~^^^^^^^^^^ TypeError: 'NoneType' object does not support item assignment
kerem 2026-02-27 04:57:32 +03:00
Author
Owner

@Googolplexed0 commented on GitHub (Nov 17, 2025):

I ran the same command and did not experience this issue. At the time you saw this, did the playlist have local files in it?

<!-- gh-comment-id:3539660069 --> @Googolplexed0 commented on GitHub (Nov 17, 2025): I ran the same command and did not experience this issue. At the time you saw this, did the playlist have local files in it?
Author
Owner

@SkilletWarez commented on GitHub (Nov 17, 2025):

I rerun the command using the updated branch.. it worked. I dont know why it never worked previously

<!-- gh-comment-id:3539951718 --> @SkilletWarez commented on GitHub (Nov 17, 2025): I rerun the command using the updated branch.. it worked. I dont know why it never worked previously
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#102
No description provided.