| 
	|||||||
![]()  | 
            
        
    
| 
             | 
        Thread Tools | Search this Thread | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 11 
				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 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!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 hopeless n00b 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,126 
				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
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 11 
				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?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				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  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 US Navy, Retired 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897 
				Karma: 13806776 
				Join Date: Feb 2009 
				Location: North Carolina 
				
				
				Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 11 
				Karma: 10 
				Join Date: May 2018 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks for the replies. You guys are very helpful.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 Member 
			
			![]() Posts: 11 
				Karma: 10 
				Join Date: May 2018 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Thank you very much!  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				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 07:15 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 11 
				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.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Update tags only using ebook-convert.exe | boredsilly | Library Management | 2 | 03-16-2012 06: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 03:50 PM | 
| Max keept old issues when using ebook-convert.exe?? | j0s3f | Conversion | 1 | 09-11-2011 06:07 PM | 
| Batch breaks after ebook-convert.exe | j0s3f | Calibre | 1 | 05-04-2011 06:27 PM | 
| Calibredb add after ebook-convert fails | spullar | Calibre | 5 | 03-04-2010 02:14 PM |