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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-01-2013, 07:49 AM   #496
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,459
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kiwidude View Post
Is anyone else having the same problem - or are they having Modify ePub behave normally without errors (without even trying the Append Extra CSS option)?
FWIW - I do NOT get the error when append extra CSS is false (my usual setting) I do get the error if I set append extra CSS to true. Tried several books with same result.

Here's my settings (with append_extra_css as true)

Spoiler:

Code:
  "modify epub plugin:options dialog:settings": {
    "append_extra_css": true, 
    "add_replace_jacket": false, 
    "encode_html_utf8": false, 
    "remove_xpgt_files": true, 
    "remove_unmanifested_files": true, 
    "remove_unused_images": true, 
    "remove_javascript": true, 
    "remove_itunes_files": true, 
    "remove_calibre_bookmarks": true, 
    "update_metadata": true, 
    "remove_broken_covers": true, 
    "rewrite_css_margins": true, 
    "insert_replace_cover": false, 
    "remove_embedded_fonts": true, 
    "zero_xpgt_margins": true, 
    "remove_cover": true, 
    "remove_broken_ncx_links": true, 
    "remove_non_dc_elements": true, 
    "remove_legacy_jackets": true, 
    "remove_drm_meta_tags": true, 
    "flatten_toc": true, 
    "smarten_punctuation": true, 
    "remove_all_jackets": true, 
    "add_unmanifested_files": false, 
    "remove_missing_files": true, 
    "remove_os_artifacts": true
  },

BR
BetterRed is offline   Reply With Quote
Old 09-01-2013, 08:01 AM   #497
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,601
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@BetterRed - you get the same error as DoctorOhh you mean? Or the same error as mob and ottischwenk reported?

@DoctorOhh - Thanks, I can replicate your issue from looking at the code, that is an easy fix. It comes if you do not have any extra css specified in your preference defaults.
kiwidude is offline   Reply With Quote
Advert
Old 09-01-2013, 08:20 AM   #498
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,459
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kiwidude View Post
@BetterRed - you get the same error as DoctorOhh you mean? Or the same error as mob and ottischwenk reported?

@DoctorOhh - Thanks, I can replicate your issue from looking at the code, that is an easy fix. It comes if you do not have any extra css specified in your preference defaults.
Same as DoctorOhh I think - here you go

Spoiler:
Code:
calibre, version 1.1.0
ERROR: Modify ePub failed: No ePub files were updated

Modify ePubs
Logfile for book ID 41 (Test Epub / 4 kiwidude)
41
  Modifying:  C:\CalibreTemp\calibre_6nnbzo\7_ny9k_modify_epub\41.epub
	Updating metadata and cover
Parsing xml file: content.opf
Parsing xml file: toc.ncx
	Looking for files to remove: [u'iTunesMetadata.plist', u'iTunesArtwork']
	Looking for files to remove: [u'META-INF/calibre_bookmarks.txt']
	Looking for files to remove: [u'.DS_Store', u'thumbs.db']
	Looking for unused images
	Looking for redundant entries in manifest
	Looking for unmanifested files
	Looking for NCX to flatten
	  No nested navPoints
	Looking for broken links in the NCX
	Looking for Adobe xpgt files and links to remove
	Looking for Adobe DRM meta tags to remove
	Looking for all jackets
	Looking for embedded fonts
	Looking for css @font-face style declarations
	Looking for inline @font-face style declarations
	Looking for CSS margins
	Looking for extra CSS to append
Test Epub - ERROR: Traceback (most recent call last):
  File "calibre_plugins.modify_epub.modify", line 73, in process_book
  File "calibre_plugins.modify_epub.modify", line 165, in _process_book
TypeError: unsupported operand type(s) for |=: 'bool' and 'NoneType'

ePub not changed after 0.15 seconds
BetterRed is offline   Reply With Quote
Old 09-01-2013, 08:26 AM   #499
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,601
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Thanks BetterRed - yeah, the fact that both you and DoctorOhh didn't get the same error as mob and ottischwenk leads me to believe that neither restarted calibre after installing the updated plugin. I will push the fix for your error shortly...
kiwidude is offline   Reply With Quote
Old 09-01-2013, 08:28 AM   #500
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,601
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
v1.3.9 Released

Changes in this release:
  • Fix for users who do not have any Extra CSS in their defaults trying to use the Append Extra CSS option.
kiwidude is offline   Reply With Quote
Advert
Old 09-01-2013, 08:39 AM   #501
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,459
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kiwidude View Post
Thanks BetterRed - yeah, the fact that both you and DoctorOhh didn't get the same error as mob and ottischwenk leads me to believe that neither restarted calibre after installing the updated plugin. I will push the fix for your error shortly...
That did the trick on my error

BR
BetterRed is offline   Reply With Quote
Old 09-01-2013, 08:57 PM   #502
mob
Member
mob began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2010
Device: IPad
kiwidude, am pretty sure that I restarted calibre after updating....

Installed new version and all is good now - thanks a lot!
mob is offline   Reply With Quote
Old 09-05-2013, 10:05 AM   #503
holymadness
Guru
holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.
 
holymadness's Avatar
 
Posts: 722
Karma: 2084955
Join Date: Dec 2010
Device: iPhone
I've used Modify Epub to replace covers in my ebooks for about a year now. Just recently, the plugin has started creating an ORIGINAL_EPUB file alongside the new epub, whereas previously it would delete the old and replace it with the new.

I don't want to clutter my hard drive with older versions of epubs; is there a way to return to the previous behaviour? Did I uncheck a preference by mistake?

P.S. If there's any way to batch remove the original_epubs via Calibre, would someone be so kind as to let me know? Thank you.
holymadness is offline   Reply With Quote
Old 09-05-2013, 10:23 AM   #504
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 holymadness View Post
I've used Modify Epub to replace covers in my ebooks for about a year now. Just recently, the plugin has started creating an ORIGINAL_EPUB file alongside the new epub, whereas previously it would delete the old and replace it with the new.
This is the proper way for this plugin to work. In case of any issue the original is kept around.

Quote:
Originally Posted by holymadness View Post
P.S. If there's any way to batch remove the original_epubs via Calibre, would someone be so kind as to let me know?
Select all books with original_format (in search bar use formats:"=ORIGINAL_EPUB")
Click edit metadata
Use Remove format option
Select Original_epub and click ok
DoctorOhh is offline   Reply With Quote
Old 09-05-2013, 10:24 AM   #505
Man Eating Duck
Addict
Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.
 
Posts: 254
Karma: 69786
Join Date: May 2006
Location: Oslo, Norway
Device: Kobo Aura, Sony PRS-650
Quote:
Originally Posted by holymadness View Post
I don't want to clutter my hard drive with older versions of epubs; is there a way to return to the previous behaviour? Did I uncheck a preference by mistake?

P.S. If there's any way to batch remove the original_epubs via Calibre, would someone be so kind as to let me know? Thank you.
Try to set the two tweaks to False in Preferences -> Tweaks (at the bottom), "original" in search for tweak (see attached screenshot).

To remove all instances of ORIGINAL_EPUB from your books *please* make a backup of your library first... Done?

Then: select all your books, right click -> Remove books -> Remove files of a specific format from selected books. Select the format ORIGINAL_EPUB.

Edit: Ninja'd by DoctorOhh
As he mentions, the original format is kept for a reason. If you remove it, make sure that you have the original file somewhere else. Replacing covers is probably safe, but for instance epub->epub conversion can be destructive in non-intuitive ways.
Attached Thumbnails
Click image for larger version

Name:	original_tweak.PNG
Views:	299
Size:	72.1 KB
ID:	110450  

Last edited by Man Eating Duck; 09-05-2013 at 10:30 AM.
Man Eating Duck is offline   Reply With Quote
Old 09-05-2013, 10:34 AM   #506
holymadness
Guru
holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.holymadness ought to be getting tired of karma fortunes by now.
 
holymadness's Avatar
 
Posts: 722
Karma: 2084955
Join Date: Dec 2010
Device: iPhone
Thank you both so much. That was very helpful and very quick.
holymadness is offline   Reply With Quote
Old 09-05-2013, 11:35 PM   #507
mob
Member
mob began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2010
Device: IPad
I use this add-on on every ebook i keep in calibre - I really like the simplicity and one-click function.... Would really appreciate if the author could add the user option not to create a back-up Original_Epub as it was done in the past.... so that it does not interfere with the creation of back-ups when doing format to same format conversions....

Otherwise, great job.... Mop
mob is offline   Reply With Quote
Old 09-06-2013, 12:13 AM   #508
samy2
Ebook-Fan
samy2 ought to be getting tired of karma fortunes by now.samy2 ought to be getting tired of karma fortunes by now.samy2 ought to be getting tired of karma fortunes by now.samy2 ought to be getting tired of karma fortunes by now.samy2 ought to be getting tired of karma fortunes by now.samy2 ought to be getting tired of karma fortunes by now.samy2 ought to be getting tired of karma fortunes by now.samy2 ought to be getting tired of karma fortunes by now.samy2 ought to be getting tired of karma fortunes by now.samy2 ought to be getting tired of karma fortunes by now.samy2 ought to be getting tired of karma fortunes by now.
 
Posts: 398
Karma: 698564
Join Date: Feb 2011
Device: PRS T1
Thanks!
samy2 is offline   Reply With Quote
Old 09-06-2013, 02:27 AM   #509
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,601
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@mob - just see Man Eating Duck's post above regarding Preferences -> Tweaks.

The category of the tweak to change is "Save original file when converting/polishing from same format tos...". You will see "save_original_format_when_polishing" which as per the release notes for this plugin is what the plugin checks for - set this to False, restart calibre and you will not get the ORIGINAL_EPUB entries appearing.
kiwidude is offline   Reply With Quote
Old 09-06-2013, 03:24 AM   #510
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 kiwidude View Post
@mob - just see Man Eating Duck's post above regarding Preferences -> Tweaks.

The category of the tweak to change is "Save original file when converting/polishing from same format tos...". You will see "save_original_format_when_polishing" which as per the release notes for this plugin is what the plugin checks for - set this to False, restart calibre and you will not get the ORIGINAL_EPUB entries appearing.
I always seem to learn new things about calibre.
DoctorOhh is offline   Reply With Quote
Reply

Tags
modify epub

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 1171 03-23-2024 05:18 AM
[GUI Plugin] Open With kiwidude Plugins 402 03-16-2024 11:44 PM
[GUI Plugin] Manage Series kiwidude Plugins 166 02-13-2024 11:31 AM
Modify ePub plugin dev thread kiwidude Development 346 09-02-2013 05:14 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 09:44 AM.


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