forked from zotify-dev/zotify
-
Notifications
You must be signed in to change notification settings - Fork 63
[Bug Report] Audiobooks Nonfunctional #231
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingconsideringThis may be worth working on, but may not fit the overall goalsThis may be worth working on, but may not fit the overall goalsdiscussionFor discussion on the given topicFor discussion on the given topicdocumentationImprovements or additions to documentationImprovements or additions to documentationhelp wantedExtra attention is neededExtra attention is needed
Description
Activity
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingconsideringThis may be worth working on, but may not fit the overall goalsThis may be worth working on, but may not fit the overall goalsdiscussionFor discussion on the given topicFor discussion on the given topicdocumentationImprovements or additions to documentationImprovements or additions to documentationhelp wantedExtra attention is neededExtra attention is needed
Zotify Version
0.17.4
Operating System
Windows 10
Python Version
Python 3.10
Bug-Triggering Command
Bug Description
When you try to download an audiobook, the spotify links use /show/id. This leads to zotify looking but going no where and giving no particular error. Just stops at parsing show information.
Looked through the code a bit and found I could force the audiobook code to launch, it looks like your zotify end of the code has the built in framework for it but when it makes calls to librepost there is nothing there to catch it. So it just fails with
proto = getattr(cls.SESSION.api(), f"get_metadata_4_{ContClass.type_attr}")(content_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ApiClient' object has no attribute 'get_metadata_4_audiobook'. Did you mean: 'get_metadata_4_album'?Kinda hit a dead end within zotify at that point.
Determined to get what I wanted I dug up the episode links myself (one at a time via playing the chapter and snagging the link) and used the file download option. Unfortunately that hit its own roadblock as Duration_ms was getting set to "None" then having issues with <....
downloadables = edge_zip(sorted(downloadables, key=lambda c: getattr(c[-1], DURATION_MS, 0))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'Was able to add a
or 0in and it was able to properly download the individual files after i fed it the links.Not sure any of this helps and I can certainly help guide through the madness but comparing your fork to the original zotify, I would say you are able to clean this up far easier than anything I could do.
Upload config_DEBUG.json
config_DEBUG.json
Upload DEBUG.log
zotify_DEBUG_2026-07-26_03-44-45.log
Relevant Error Traceback
Upload Screenshots
No response