Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 09-16-2024, 04:18 PM   #1
bw777
Junior Member
bw777 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2024
Device: kindle
Find Obok Failed DeDRM

Hello. Loading epub files downloaded from Kobo into Adobe Digital Editions, then dragging the resultant epub from the Digital Editions folder into Calibre, imports books correctly. However, I started using Obok DeDRM for its convenience, and spot checking the results seemed successful. However, now I've discovered that it's been occasionally failing, leaving me with some sort of encoded book about once in every dozen. So as I find the failed books I have manually replaced those via ADE.

So, first, is there a known issue with Obok failing?

And, second, is there a way to find these files that failed import without having to view every book? I have several thousand books, so searches take some time, and i haven't found a reliable search yet (Quality Check - Check DRM doesn't find them, so i assume Obok did something to them).

Thank you.
bw777 is offline   Reply With Quote
Old 09-16-2024, 06:47 PM   #2
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,428
Karma: 230178176
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Try running the Count Pages plugin - it should fail with the DRMed books.
Sirtel is online now   Reply With Quote
Old 09-16-2024, 10:56 PM   #3
bw777
Junior Member
bw777 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2024
Device: kindle
Quote:
Originally Posted by Sirtel View Post
Try running the Count Pages plugin - it should fail with the DRMed books.
Interesting... it succeeds, and by way of example, for "The Age of Caesar: Five Roman Lives" by Plutarch (one of the books in question) reports 501 pages in the Obok result epub. Via the ADE route, it reports 464 pages. The book actually has 432 pages. It would appear Obok is removing DRM metadata, but failing to decrypt. Count Pages is "succeeding" the same way it "succeeds" with image-only books (i.e. its guesses fail).

The Obok variant retains a Table of Contents.

Any other ideas here?

Thank you.
bw777 is offline   Reply With Quote
Old 09-16-2024, 11:35 PM   #4
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,428
Karma: 230178176
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by bw777 View Post
Interesting... it succeeds, and by way of example, for "The Age of Caesar: Five Roman Lives" by Plutarch (one of the books in question) reports 501 pages in the Obok result epub. Via the ADE route, it reports 464 pages. The book actually has 432 pages. It would appear Obok is removing DRM metadata, but failing to decrypt. Count Pages is "succeeding" the same way it "succeeds" with image-only books (i.e. its guesses fail).

The Obok variant retains a Table of Contents.

Any other ideas here?

Thank you.
In my experience, the Count Pages plugin is unable to count the pages in a DRMed book. I just tried and it couldn't. If it could with your books, then something else is going on, not merely a failure to remove the DRM.

What happens if you try to convert the book?
Sirtel is online now   Reply With Quote
Old 09-17-2024, 12:03 AM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,985
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by bw777 View Post
Count Pages is "succeeding" the same way it "succeeds" with image-only books (i.e. its guesses fail).
For image only PDFs (e.g. magazine) and comic formats Count Pages counts the images.

BR
BetterRed is online now   Reply With Quote
Old 09-17-2024, 01:44 AM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,383
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by bw777 View Post
Hello. Loading epub files downloaded from Kobo into Adobe Digital Editions, then dragging the resultant epub from the Digital Editions folder into Calibre, imports books correctly. However, I started using Obok DeDRM for its convenience, and spot checking the results seemed successful. However, now I've discovered that it's been occasionally failing, leaving me with some sort of encoded book about once in every dozen. So as I find the failed books I have manually replaced those via ADE.

So, first, is there a known issue with Obok failing?

And, second, is there a way to find these files that failed import without having to view every book? I have several thousand books, so searches take some time, and i haven't found a reliable search yet (Quality Check - Check DRM doesn't find them, so i assume Obok did something to them).

Thank you.
Did you insert the serial number of your Kobo device into the OBOK customization if you are copying the books from your Kobo device? When I look at my Kobo device or the Kobo App library, about 20% of the books show as having DRM, the other 80% are not DRMmed. For whatever reason, Kobo does not encrypt the ePub3 navigation document, the ePub2 NCX document or the CSS stylesheet(s).

As far as I am aware Quality Check does not detect Kobo's DRM scheme so it's DRM check is not going to work however since the cover is encrypted, you should be able to use Quality Check's Missing covers to detect them.

At one point, I was playing with a utility to check if there was a rights.xml file in the root of the ePub's .zip container but never finished it.

Last edited by DNSB; 09-17-2024 at 01:47 AM.
DNSB is offline   Reply With Quote
Old 09-17-2024, 03:39 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,316
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You are best to download ePub and if you want to read KePub, use the Kobo Touch Extended driver to convert to KePub. I've not had an ePub fail to have the DRM removed.

Which version of DeDRM are you using?

This link is to the alpha version with the latest code.

https://github.com/noDRM/DeDRM_tools...947bf338d3ffda
JSWolf is offline   Reply With Quote
Old 09-17-2024, 12:27 PM   #8
bw777
Junior Member
bw777 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2024
Device: kindle
Quote:
Originally Posted by Sirtel View Post
In my experience, the Count Pages plugin is unable to count the pages in a DRMed book. I just tried and it couldn't. If it could with your books, then something else is going on, not merely a failure to remove the DRM.

What happens if you try to convert the book?
Results in a MOBI version with the same encoded content: =���OO��L etc.

Yes, i'm pretty sure the result is not an actual normal DRM-ed file, but some partially-processed-by-Obok DRM-ed file.
bw777 is offline   Reply With Quote
Old 09-17-2024, 12:29 PM   #9
bw777
Junior Member
bw777 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2024
Device: kindle
Quote:
Originally Posted by BetterRed View Post
For image only PDFs (e.g. magazine) and comic formats Count Pages counts the images.

BR
Makes sense. Thanks.
bw777 is offline   Reply With Quote
Old 09-17-2024, 12:47 PM   #10
bw777
Junior Member
bw777 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2024
Device: kindle
Quote:
Originally Posted by DNSB View Post
Did you insert the serial number of your Kobo device into the OBOK customization if you are copying the books from your Kobo device? When I look at my Kobo device or the Kobo App library, about 20% of the books show as having DRM, the other 80% are not DRMmed. For whatever reason, Kobo does not encrypt the ePub3 navigation document, the ePub2 NCX document or the CSS stylesheet(s).
I don't have a Kobo device, so no serial number. I download them to my PC for reading.

Quote:
Originally Posted by DNSB View Post
As far as I am aware Quality Check does not detect Kobo's DRM scheme so it's DRM check is not going to work however since the cover is encrypted, you should be able to use Quality Check's Missing covers to detect them.
Well, that doesn't actually work, since i've already gone through and added metadata (incl. cover) to these books.

Quote:
Originally Posted by DNSB View Post
At one point, I was playing with a utility to check if there was a rights.xml file in the root of the ePub's .zip container but never finished it.
I see. I'm getting curious about how to write plug-ins for calibre. Seems useful in this type of situation.

Thank you!
bw777 is offline   Reply With Quote
Old 09-17-2024, 12:50 PM   #11
bw777
Junior Member
bw777 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2024
Device: kindle
Quote:
Originally Posted by JSWolf View Post
You are best to download ePub and if you want to read KePub, use the Kobo Touch Extended driver to convert to KePub. I've not had an ePub fail to have the DRM removed.

Which version of DeDRM are you using?

This link is to the alpha version with the latest code.

https://github.com/noDRM/DeDRM_tools...947bf338d3ffda
10.0.9
bw777 is offline   Reply With Quote
Old 09-17-2024, 12:54 PM   #12
bw777
Junior Member
bw777 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2024
Device: kindle
Well, I appreciate all the help. It looks like the root problem is somehow resolved; re-downloading the errant books with Obok seems to work.

So, I still need a reliable way to search for books that failed to decode completely, so I know to re-download them. But I've already added metadata and covers to them (just part of my normal process).

Maybe learning how to write a plug-in is the way to go...? Any tips?
bw777 is offline   Reply With Quote
Old 09-17-2024, 03:40 PM   #13
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,383
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by bw777 View Post
I don't have a Kobo device, so no serial number. I download them to my PC for reading.
So you are using the Kobo Desktop app to download the files? One odd issue a while back with one friend of mine's PC and OBOK was that he had his Windows WiFi set to random MAC addresses & change daily so he kept getting new random MAC addresses.
DNSB is offline   Reply With Quote
Reply

Tags
calibre, dedrm, epub, obok, plug-ins


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DRM or DeDRM tool ... can not find it xefopix Plugins 14 05-01-2024 05:09 PM
K4PC 1.26, DeDRM or KFX input can't find any key to remove drm promeneur Conversion 3 10-11-2022 10:08 AM
Calibre export to ePub fails: "Failed to initialize plugin: ... DeDRM.zip" res555 Conversion 4 06-14-2022 10:55 PM
obok updated v3.1.1 Lynx-lynx General Discussions 5 02-12-2015 05:31 PM
failed to find obfuscation key chriflue Editor 2 06-23-2014 12:28 AM


All times are GMT -4. The time now is 05:44 PM.


MobileRead.com is a privately owned, operated and funded community.