subdavis / kobo-book-downloader

A tool to download and remove DRM from your purchased Kobo.com ebooks and audiobooks.
https://pypi.org/project/kobodl/
The Unlicense
331 stars 31 forks source link

Problem downloading an audiobook #62

Closed bybpow closed 2 years ago

bybpow commented 2 years ago

Hi:

I'm having some trouble downloading a single audiobook. All others work fine. The audiobook is "Lord Foul’s Bane". Although I'm not good in Python I've tried to do some debugging and it seems that specific abook is returning a Size of 0. The app download the files but they are empty-corrupted. Any clue why this happens? I'll try to do some more debugging tomorrow.

Thanks in advance.

subdavis commented 2 years ago

Is there anything special about this book? The way you bought it? Was it free, purchased for points? From a subscription that ended?

if it's just that one, there's nothing I can do to debug it. If you figure it out, let me know.

bybpow commented 2 years ago

No, purchased as always. In data abook is active etc. I think I've found the problem. In the book metadata there is no filesize meanwhile in other books there is. That's making it fail. You can check it for example going to last part of the page in details: https://www.kobo.com/es/es/audiobook/lord-foul-s-bane-3 In any other book the size is there. Is there anyway I can know what that filesize is and add it manually?

Edit: I've thought of a way to get filesize but I'll probable need some help to add it manually. I'm lost there.

bybpow commented 2 years ago

I already got the filesize: it should be 538mb. I'll try to implement it manually somehow but I doubt I can manage to make it work with my current knowledge.

subdavis commented 2 years ago

I just published version 0.8.0 which includes a new --debug option, for example kobodl --debug book get <id>

If you update to the new version, this will generate a debug.log file which you could email me if you'd like more help.

subdavis commented 2 years ago

More docs here: https://github.com/subdavis/kobo-book-downloader/releases/tag/0.8.0

bybpow commented 2 years ago

Thank you reallt much for this. I was using prints for debbugind until xd. The book is now down: https://www.kobo.com/es/es/audiobook/lord-foul-s-bane-3 Once is back online I'll try it asap. Again, thanks for the update.

subdavis commented 2 years ago

Closing this as a stale issue. Feel free to reopen if any new information comes up.