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
347 stars 33 forks source link

Epub fails to download #122

Open leela1255 opened 1 month ago

leela1255 commented 1 month ago

Before you open an issue Please make sure you've upgraded to the latest version of kobodl on pypi or docker. Also read through the troubleshooting guide. Try running with --debug enabled and see what comes up in the debug log.

Do not erase this template, it's here to help you.

Describe the issue An ebook I was trying to download failed.

To Reproduce Steps to reproduce the behavior:

  1. Run kobodl-windows.exe book get UUID
  2. Download attempts to start, but fails.
  3. Stack trace:
    Traceback (most recent call last):
    File "kobodl\__main__.py", line 5, in <module>
    File "click\core.py", line 829, in __call__
    File "click\core.py", line 782, in main
    File "click\core.py", line 1259, in invoke
    File "click\core.py", line 1259, in invoke
    File "click\core.py", line 1066, in invoke
    File "click\core.py", line 610, in invoke
    File "click\decorators.py", line 33, in new_func
    File "kobodl\commands\book.py", line 83, in get
    File "kobodl\actions.py", line 231, in GetBookOrBooks
    File "kobodl\kobo.py", line 348, in Download
    File "kobodl\kobo.py", line 268, in __DownloadToFile
    File "requests\models.py", line 1021, in raise_for_status
    requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://getbook.kobo.com/koboid-prod-private/...
    [24800] Failed to execute script '__main__' due to unhandled exception!

Debug log will be emailed.

Expected behavior Book should download

Screenshots N/A

Desktop (please complete the following information):

Traceback (most recent call last):
  File "kobodl\__main__.py", line 5, in <module>
  File "click\core.py", line 829, in __call__
  File "click\core.py", line 781, in main
  File "click\core.py", line 700, in make_context
  File "click\core.py", line 1212, in parse_args
  File "click\core.py", line 1048, in parse_args
  File "click\core.py", line 1630, in handle_parse_result
  File "click\core.py", line 123, in invoke_param_callback
  File "click\decorators.py", line 295, in callback
RuntimeError: Could not determine version
[7204] Failed to execute script '__main__' due to unhandled exception!

Additional context N/A

geekylou commented 3 weeks ago

This is caused by the same problem that causes audiobooks to not download. https://github.com/subdavis/kobo-book-downloader/pull/124 should fix it.