Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obok doesn't work on limited time free manga from Kobo Japan #636

Open
matsumurae opened this issue Sep 22, 2024 · 3 comments
Open

Obok doesn't work on limited time free manga from Kobo Japan #636

matsumurae opened this issue Sep 22, 2024 · 3 comments

Comments

@matsumurae
Copy link

Question / bug report

Problem

Imports correctly, shows the cover and metadata. Appears decrypted .epub file but whenever I open it, just gives me a "error loading the book" message.

It doesn't work with any 期間限定無料 manga (Limited time free). Tried with 青の祓魔師.

Did the test:

I guess it doesn't work because the format is different from the "normal" vs "limited" version.

Software used

Kobo desktop: 4.38.23130

I also own a Kobo but there's no download option for Japan store (they removed time ago).

Which version of Calibre are you running?

7.18

Which version of the DeDRM plugin are you running?

10.0.9

If applicable, which version of the Kindle software are you running?

No response

Log output

Obok log

Failed to convert book with error:
DeDRM v10.0.9: Trying to decrypt Qing noFu Mo Shi [(Qi Jian Xian Ding Wu Li - Jia Teng He Hui.epub
DeDRM v10.0.9: Verifying zip archive integrity
DeDRM v10.0.9: Post-processing took 0.0 seconds
DeDRM v10.0.9: Finished after 5.7 seconds
InputFormatPlugin: EPUB Input running
on /var/folders/s3/9v3xfnw94hj_m132f858550w0000gn/C/calibre_7.18.0_tmp_hlus1he3/zvxlgq44.epub
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Traceback (most recent call last):
  File "runpy.py", line 198, in _run_module_as_main
  File "runpy.py", line 88, in _run_code
  File "site.py", line 42, in <module>
  File "site.py", line 38, in main
  File "calibre/utils/ipc/worker.py", line 196, in main
  File "<string>", line 1, in <module>
  File "calibre/srv/render_book.py", line 965, in viewer_main
  File "calibre/srv/render_book.py", line 956, in render_for_viewer
  File "calibre/srv/render_book.py", line 934, in render
  File "calibre/srv/render_book.py", line 727, in process_exploded_book
  File "calibre/srv/render_book.py", line 270, in create_cover_page
  File "calibre/srv/render_book.py", line 223, in find_epub_cover
  File "calibre/ebooks/oeb/polish/cover.py", line 286, in find_cover_image_in_page
  File "src/lxml/xpath.pxi", line 415, in lxml.etree.XPath.__call__
  File "src/lxml/apihelpers.pxi", line 48, in lxml.etree._documentOrRaise
TypeError: Invalid input object: bytes

Calibre debug

Running Obok DeDRM v10.0.9
DEBUG:    7.7 didn't find device
Obok v10.0.9
Copyright © 2012-2023 Physisticated et al.
/var/folders/s3/9v3xfnw94hj_m132f858550w0000gn/T/tmp__nz9g01
DEBUG:    7.7 got kobodir /Users/myuser/Library/Application Support/Kobo/Kobo Desktop Edition
Error parsing Kobo plist: no legacy user key found.
Localizadas 40 posibles claves que probar.
DEBUG:   10.0 BookListTableWidget:get_books - book_num: 1
DEBUG:   10.0 BookListTableWidget:get_books - book: 青の祓魔師【期間限定無料】 6
DEBUG:   10.0 InterfacePluginAction::launchObok - number of books to decrypt: 1
Obok DeDRM v10.0.9 - Desencriptando 青の祓魔師【期間限定無料】 6
Probando clave: b'82d8cb2614e4654484885ad884bf2a4e'
Bad JPEG: 3c3a4c
La desencriptación falló, probando la clave siguiente.
Probando clave: b'3250c590bbef1decf267ba580c350ff2'
Bad JPEG: 33e54e
La desencriptación falló, probando la clave siguiente.
Probando clave: b'dee70b43d0498a6257b8051b71acf618'
Bad JPEG: d3f0fc
La desencriptación falló, probando la clave siguiente.
Probando clave: b'f7a2da6e31d20ea0acc37815c073b8c4'
Bad JPEG: 47ddaf
La desencriptación falló, probando la clave siguiente.
Probando clave: b'6e7954022240926187c1b160ba44f258'
Bad JPEG: a7a76c
La desencriptación falló, probando la clave siguiente.
Probando clave: b'775852b9d2db6302af60f615f9814e4b'
Bad JPEG: 30b639
La desencriptación falló, probando la clave siguiente.
Probando clave: b'c09f161428211c2102cfd7d96328241d'
Bad JPEG: 1f354c
La desencriptación falló, probando la clave siguiente.
Probando clave: b'4d4d67cff15b336f2428e8058c1571b1'
Bad JPEG: b353fe
La desencriptación falló, probando la clave siguiente.
Probando clave: b'90490b8073fc39184f24bd6860b80229'
Success!
DEBUG:   14.4 DecryptAddProgressDialog::do_book_action - decrypted book: '青の祓魔師【期間限定無料】 6'
Obok DeDRM v10.0.9 - Añadido 青の祓魔師【期間限定無料】 6
Obok DeDRM v10.0.9 - Preparando resultados.
Worker Launch took: 0.03 seconds
@ElleKayEm
Copy link

Obok can also detect a Kobo ereader and decrypt books from it. But I imagine it may have the same issue. It looks like this is decrypted, but it just won't work with the calibre viewer.

@matsumurae
Copy link
Author

But I imagine it may have the same issue. It looks like this is decrypted, but it just won't work with the calibre viewer.

The epub is empty as I've tried on iBooks and other epub readers, all show empty blank pages.

Obok can also detect a Kobo ereader and decrypt books from it.

How can I make that work? I have a Kobo but not sure what should I do.

@ElleKayEm
Copy link

Have the Kobo ereader attached by a USB cord when using Obok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants