apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.55k stars 1.52k forks source link

Obok does not import ebooks downloaded with Kobo Desktop #2254

Open vaso65 opened 1 year ago

vaso65 commented 1 year ago

CheckList


Title

Obok does not import ebooks downloaded with Kobo Desktop

My Environment

Calibre: 6.10 o 6.24

Obok DeDrm : 10.0.3

Log

After a new installation Obok ends with the import with the message "not added because it couldn't be decrypted"

ApplicationPaletteChange event ignored
Using calibre Qt style: True
ApplicationPaletteChange event received
calibre Log di debug
calibre 6.10  embedded-python: True
Windows-10-10.0.22621-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22621')
Python 3.10.1
Windows: ('10', '10.0.22621', 'SP0', 'Multiprocessor Free')
Interface language: it
Successfully initialized third party plugins: Obok DeDRM (10, 0, 3)
calibre 6.10  embedded-python: True
Windows-10-10.0.22621-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22621')
Python 3.10.1
Windows: ('10', '10.0.22621', 'SP0', 'Multiprocessor Free')
Interface language: it
Successfully initialized third party plugins: Obok DeDRM (10, 0, 3)
QPA platform: windows
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 145.14285714285714 x 145.14285714285714
[0.00] Starting up...
[0.00] Showing splash screen...
[0.20] splash screen shown
[0.20] Initializing db...
[0.20] db initialized
[0.20] Constructing main UI...
DEBUG:    0.0 obok::utilities.py - loading translations
DEBUG:    0.0 obok::dialogs.py - loading translations
DEBUG:    0.0 obok::config.py - loading translations
DEBUG:    0.0 obok::action_err.py - loading translations
Screens currently in system:
{'depth': 32,
 'device_pixel_ratio': 1.0,
 'geometry_in_logical_pixels': {'height': 1200, 'width': 1920, 'x': 0, 'y': 0},
 'index_in_screens_list': 0,
 'manufacturer': '',
 'model': '',
 'name': '\\\\.\\DISPLAY1',
 'serial': '',
 'size_in_logical_pixels': {'height': 1200, 'width': 1920},
 'virtual_geometry': {'height': 2400, 'width': 1920, 'x': 0, 'y': -1200}}
{'depth': 32,
 'device_pixel_ratio': 1.0,
 'geometry_in_logical_pixels': {'height': 1200,
                                'width': 1920,
                                'x': 0,
                                'y': -1200},
 'index_in_screens_list': 1,
 'manufacturer': '',
 'model': '',
 'name': '\\\\.\\DISPLAY2',
 'serial': '',
 'size_in_logical_pixels': {'height': 1200, 'width': 1920},
 'virtual_geometry': {'height': 2400, 'width': 1920, 'x': 0, 'y': -1200}}
Restoring geometry for: calibre_main_window_geometry
{'frame_geometry': {'height': 1160, 'width': 1920, 'x': 0, 'y': -8},
 'full_screened': False,
 'geometry': {'height': 1129, 'width': 1920, 'x': 0, 'y': 23},
 'maximized': True,
 'normal_geometry': {'height': 786, 'width': 1324, 'x': 454, 'y': 206},
 'screen': {'depth': 32,
            'device_pixel_ratio': 1.0,
            'geometry_in_logical_pixels': {'height': 1200,
                                           'width': 1920,
                                           'x': 0,
                                           'y': 0},
            'index_in_screens_list': 0,
            'manufacturer': '',
            'model': '',
            'name': '\\\\.\\DISPLAY1',
            'serial': '',
            'size_in_logical_pixels': {'height': 1200, 'width': 1920},
            'virtual_geometry': {'height': 2400,
                                 'width': 1920,
                                 'x': 0,
                                 'y': -1200}}}
Matching screen: {'depth': 32,
 'device_pixel_ratio': 1.0,
 'geometry_in_logical_pixels': {'height': 1200, 'width': 1920, 'x': 0, 'y': 0},
 'index_in_screens_list': 0,
 'manufacturer': '',
 'model': '',
 'name': '\\\\.\\DISPLAY1',
 'serial': '',
 'size_in_logical_pixels': {'height': 1200, 'width': 1920},
 'virtual_geometry': {'height': 2400, 'width': 1920, 'x': 0, 'y': -1200}}
Setting widget geometry to: {'height': 1129, 'width': 1920, 'x': 0, 'y': 23}
Restoring widget to maximized
[0.78] main UI initialized...
[0.78] Hiding splash screen
Starting QuickView
[2.05] splash screen hidden
[2.05] Started up in 2.05 seconds with 1 books

ElleKayEm commented 1 year ago

Give pre-release 10.0.9 a try: https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.9

There is also a pending PR which deals with Obok. Don't know if that would help in this case though.

If nothing else, you can download with Adobe Digital Editions and use DeDRM.

vaso65 commented 1 year ago

I updated Obok to 10.0.9 but nothing changes

Here part of the log


Obok DeDRM v10.0.9 - Decrypting Il giuramento
Trying key:  b'44874b1f28eb17e7717c9ab76a0d14bd'
Checking text:b'\xd6nE\xde\r\xe4C\x0c\xae\xdb':
Perhaps utf-8 without BOM
Bad character at 0, value 214
Decryption failed, trying next key.
Trying key:  b'6eb38cfde3915ac55171b7f0f2c9d576'
Checking text:b'y\xff\x8c\xb4kn\xc3aD\xd2':
Perhaps utf-8 without BOM
Bad character at 1, value 255
Decryption failed, trying next key.
Trying key:  b'ce9fbb702726018ba480f657be7f2362'
Checking text:b'!^\x83\x90\x02\x05_\xd8,S':
Perhaps utf-8 without BOM
Bad character at 2, value 131
Decryption failed, trying next key.
Trying key:  b'beea6a9b1eec7cade1be3233d0e953fe'
Checking text:b'\xbd\xe0\x89\xc3z\x81\x1aN\xf0\xb5':
Perhaps utf-8 without BOM
Bad character at 0, value 189
Decryption failed, trying next key.
Trying key:  b'7d6fb1fa2e20d25077f3a74d384187d3'
Checking text:b'q\xff\x96\x99U\xd5\xcf\x80DU':
Perhaps utf-8 without BOM
Bad character at 1, value 255
Decryption failed, trying next key.
Trying key:  b'beeb78a19b9cf9bbeb46617afd1d80a2'
Checking text:b'\xd6\x13\xad\xaaN\\;\x17\x99\xf5':
Perhaps utf-8 without BOM
Bad character at 0, value 214
Decryption failed, trying next key.
Trying key:  b'99bbffdaa30bf189bfd98b1a7526aa76'
Checking text:b']\x16\x10\xcf\xc7\x06\xf1^\x8b\x91':
Perhaps utf-8 without BOM
Bad character at 1, value 22
Decryption failed, trying next key.
Trying key:  b'cd79a5800ad86fba150bb4f7c5284508'
Checking text:b"\xf8\xb6\xc0U\xe4\x88\xf5'\x86\xcd":
Perhaps utf-8 without BOM
Bad character at 0, value 248
Decryption failed, trying next key.
Trying key:  b'befa77076f7a059df0741b4ef0a9f606'
Checking text:b'~\xba$\xe2\x91J\xe8]\x0e\xc4':
Perhaps utf-8 without BOM
Bad character at 1, value 186
Decryption failed, trying next key.
Trying key:  b'4d6fc8eb3ac5986d0e75e55289021669'
Checking text:b'\xaa_M\x15g0\xbc\xdc\xbbi':
Perhaps utf-8 without BOM
Bad character at 0, value 170
Decryption failed, trying next key.
Trying key:  b'786e8bc4ef9abbeb0da5aa00240c329c'
Checking text:b'\xa2[\x0e\xc3\xe8\x92mx\x89\\':
Perhaps utf-8 without BOM
Bad character at 0, value 162
Decryption failed, trying next key.
Trying key:  b'14bcaa94f2ad37b9ddbc371a09602d53'
Checking text:b'\xd8"\x16:V\xcc\x1ehj\xad':
Perhaps utf-8 without BOM
Bad character at 0, value 216
Decryption failed, trying next key.
Trying key:  b'8bb17a87e9ea26c659fe0ed7f6e22145'
Checking text:b'k\xd7I\xcf\xf4G>R\x16k':
Perhaps utf-8 without BOM
Bad character at 1, value 215
Decryption failed, trying next key.
Trying key:  b'51770d96ef6a01e0cf530dd5fa90ff5e'
Checking text:b'\xa3e\x06\xca<\xf5Y\xfd#e':
Perhaps utf-8 without BOM
Bad character at 0, value 163
Decryption failed, trying next key.
Trying key:  b'43b35de2445464c6fc706e58106deca1'
Checking text:b'H./\xf9^\xfb\x92\x8e\xd2"':
Perhaps utf-8 without BOM
Bad character at 3, value 249
Decryption failed, trying next key.
Trying key:  b'6e9704d12df9bc4da1edc27667ab1005'
Checking text:b'8Q>2\xee\x81:R\xf6a':
Perhaps utf-8 without BOM
Bad character at 4, value 238
Decryption failed, trying next key.
Trying key:  b'44874b1f28eb17e7717c9ab76a0d14bd'
Checking text:b'\xd6nE\xde\r\xe4C\x0c\xae\xdb':
Perhaps utf-8 without BOM
Bad character at 0, value 214
Decryption failed, trying next key.
Trying key:  b'6eb38cfde3915ac55171b7f0f2c9d576'
Checking text:b'y\xff\x8c\xb4kn\xc3aD\xd2':
Perhaps utf-8 without BOM
Bad character at 1, value 255
Decryption failed, trying next key.
Trying key:  b'ce9fbb702726018ba480f657be7f2362'
Checking text:b'!^\x83\x90\x02\x05_\xd8,S':
Perhaps utf-8 without BOM
Bad character at 2, value 131
Decryption failed, trying next key.
Trying key:  b'beea6a9b1eec7cade1be3233d0e953fe'
Checking text:b'\xbd\xe0\x89\xc3z\x81\x1aN\xf0\xb5':
Perhaps utf-8 without BOM
Bad character at 0, value 189
Decryption failed, trying next key.
Trying key:  b'6d1116be132dd64effc27415fe0c64fc'
Checking text:b'\xd0\x89y\x0c\xc7:\x81*\xf0\xe0':
Perhaps utf-8 without BOM
Bad character at 0, value 208
Decryption failed, trying next key.
Trying key:  b'1a16c3e187191bb33091a01e24636f26'
Checking text:b'd\xe7\xc7\x84\x1b[k_*\x7f':
Perhaps utf-8 without BOM
Bad character at 1, value 231
Decryption failed, trying next key.
Trying key:  b'e346df6245676f8dbba57901cd582024'
Checking text:b'~KZ\xdd\x99\xd9"n_\x1c':
Perhaps utf-8 without BOM
Bad character at 3, value 221
Decryption failed, trying next key.
Trying key:  b'8583bf482e33a667a30a94127dc4119b'
Checking text:b'1)#O\x19<5~\x9b\xe1':
Perhaps utf-8 without BOM
Bad character at 4, value 25
Decryption failed, trying next key.
Obok DeDRM v10.0.9 - Couldn't decrypt Il giuramento
DEBUG:    9.6 DecryptAddProgressDialog::do_book_action - book decryption failed: 'Il giuramento'```
ElleKayEm commented 1 year ago

noDRM will probably need to take a look.

Have you tried with the Adobe DRM version of the book?

vaso65 commented 1 year ago

The import of files from ADE works correctly

ElleKayEm commented 1 year ago

Good...shouldn't be an issue with the book itself then.

vaso65 commented 1 year ago

Right, it seems to be an Obok problem