Register Guidelines E-Books Search Today's Posts Mark Forums Read

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: 7
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
Advert
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: 2,686
Karma: 7263558
Join Date: Jan 2009
Location: in the middle of nowhere
Device: Paperwhite 3, iPad 9.7, 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
Old 05-18-2018, 01:21 AM   #3
fireattack
Junior Member
fireattack began at the beginning.
 
Posts: 7
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
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: 9,991
Karma: 9778218
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,527
Karma: 13662250
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
Old 05-18-2018, 01:33 AM   #6
fireattack
Junior Member
fireattack began at the beginning.
 
Posts: 7
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: 7
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
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: 9,991
Karma: 9778218
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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:01 AM.


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