Skip to content

[Bug Report] Audiobooks Nonfunctional #231

Description

@mog-kupo

Zotify Version

0.17.4

Operating System

Windows 10

Python Version

Python 3.10

Bug-Triggering Command

zotify

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 0 in 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingconsideringThis may be worth working on, but may not fit the overall goalsdiscussionFor discussion on the given topicdocumentationImprovements or additions to documentationhelp wantedExtra attention is needed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions