Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 05-18-2018, 01:04 AM   #1
fireattack
Junior Member
fireattack began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2018
Device: none
ebook-convert.exe doesn't work with deDRM plugin, unlike GUI or calibredb.exe

You can use GUI with deDRM plugin to add an encrypted azw book with no problem.

You can also use calibredb.exe:

Code:
calibredb.exe add book.azw
the deDRM plugin will be called automatically, and it will successfully add the book.

However, it seems ebook-convert.exe doesn't support plugin, or at least not the deDRM one.

It will just error out at mobi6.py L157 due to (obvious) `DRMError`.

According to what kovidgoyal said before, I assume ebook-convert.exe is supposed to work exactly the same as conversion from the calibre GUI, so I think it's bug.

Thanks for your time!
fireattack is offline   Reply With Quote
Old 05-18-2018, 01:14 AM   #2
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Not a bug. DeDRM plugin removes DRM when you add a book to Calibre. Calibre GUI conversion works on the DRM-free book already. If you try to convert an ebook that still has DRM in Calibre GUI, conversion will fail same as ebook-convert.exe
ilovejedd is offline   Reply With Quote
Advert
Old 05-18-2018, 01:21 AM   #3
fireattack
Junior Member
fireattack began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2018
Device: none
So is it possible to convert a encrypted book directly without adding it to calibre's DB?
fireattack is offline   Reply With Quote
Old 05-18-2018, 01:22 AM   #4
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,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Depends on the plugin, see Calibre User Manual: FileTypePlugin.

That plugin must have an on_import method because it runs when a book is added, but to work at conversion time it needs an on_preprocess method, you might need to ask elsewhere about that.

BR
BetterRed is offline   Reply With Quote
Old 05-18-2018, 01:24 AM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by fireattack View Post
So is it possible to convert a encrypted book directly without adding it to calibre's DB?

You can't. Add the book as shown in your first post then convert the resultant book.
DoctorOhh is offline   Reply With Quote
Advert
Old 05-18-2018, 01:33 AM   #6
fireattack
Junior Member
fireattack began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2018
Device: none
Thanks for the replies. You guys are very helpful.
fireattack is offline   Reply With Quote
Old 05-18-2018, 01:41 AM   #7
fireattack
Junior Member
fireattack began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2018
Device: none
Quote:
Originally Posted by BetterRed View Post
Depends on the plugin, see Calibre User Manual: FileTypePlugin.

That plugin must have an on_import method because it runs when a book is added, but to work at conversion time it needs an on_preprocess method, you might need to ask elsewhere about that.

BR
I manually added "on_preprocess=True" in its __init__.py, and it immediately started to work.

Thank you very much!
fireattack is offline   Reply With Quote
Old 05-18-2018, 03:50 AM   #8
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,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Life wasn't meant to be that easy

Last edited by BetterRed; 05-18-2018 at 06:15 AM.
BetterRed is offline   Reply With Quote
Old 09-26-2020, 07:14 PM   #9
fireattack
Junior Member
fireattack began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2018
Device: none
The plugin has added this functionality by default: https://github.com/apprenticeharper/...ools/pull/1241

So once it's released, it would be able to support ebook-convert out of box.
fireattack is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Update tags only using ebook-convert.exe boredsilly Library Management 2 03-16-2012 05:10 PM
PRS-T1 ebook_msc.exe doesn't work any more with 1.0.03.11140 firmware ? seabee Sony Reader Dev Corner 5 12-21-2011 02:50 PM
Max keept old issues when using ebook-convert.exe?? j0s3f Conversion 1 09-11-2011 05:07 PM
Batch breaks after ebook-convert.exe j0s3f Calibre 1 05-04-2011 05:27 PM
Calibredb add after ebook-convert fails spullar Calibre 5 03-04-2010 01:14 PM


All times are GMT -4. The time now is 08:31 PM.


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