View Single Post
Old 12-01-2017, 01:04 AM   #1124
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: 47,410
Karma: 171313058
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by BeckyEbook View Post
Modified version of the Modify EPUB plugin with the added ability to delete page-map.xml files.
The plugin does not work for me. I tested it on 6 books and the error log posted is pretty much the same for all of them. The KeyError: u'remove_page_map' error looks suspiciously like it relates to the changes for page-map.xml files.

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

Modify ePubs
Logfile for book ID 4085 (Alphabet Soup / Ann Onymous)
4085
  Modifying:  C:\Users\David\AppData\Local\Temp\calibre_t_57ch\rcqvps_modify_epub\4085.epub
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']
	  Found file to remove: META-INF/calibre_bookmarks.txt
	Looking for files to remove: [u'.DS_Store', u'thumbs.db']
Alphabet Soup - ERROR: Traceback (most recent call last):
  File "calibre_plugins.modify_epub.modify", line 80, in process_book
  File "calibre_plugins.modify_epub.modify", line 133, in _process_book
KeyError: u'remove_page_map'

ePub not changed after 0.59 seconds
Edit: After updating to Calibre 3.13.0, I re-ran Modify Epub against the same files and no errors.

Last edited by DNSB; 12-01-2017 at 01:10 AM.
DNSB is offline   Reply With Quote