Still did not work. I took an ePub and removed all references to the cover. I was never prompted for the image to use as the cover. What was put in was wrong. So what I ended up with was not correct. This feature does not work to replace the cover. If the ePub has a generic cover, when this plugin is done, I'll still have a generic cover. I know I can go into the directory and change the image Calibre has pulled out, but that's more work. The plugin should just put up a requester for me to then specify the image to be used as the cover. This is not going to be easy for the average person. They will select the option to replace the cover and get just what was there.
Code:
Modify ePubs
Logfile for book ID 142 (The South Lawn Plot / Ray O'Hanlon)
142
Modifying: C:\Users\Jon\AppData\Local\Temp\calibre_0.8.53_tmp_xfvhzm\4i8inn_modify_epub\142.epub
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 Adobe xpgt files to remove
Looking for Adobe xpgt xhtml links to remove
Looking for Adobe DRM meta tags to remove
Insert or replace cover
...Looking for guide cover reference
...Looking for meta cover
...Looking for other.ms-* guide references to clean out
...Writing new cover image and titlepage html
New cover image written to: cover.jpeg
New titlepage html written to: titlepage_u1.xhtml
...Updating manifest and TOC for the new cover
Manifest item added: ../titlepage_u1.xhtml (titlepage1)
Manifest item added: ../cover.jpeg (cover)
Meta item inserted: cover:cover
Spine item inserted: titlepage1 at pos: 0
Guide item inserted: ../titlepage_u1.xhtml:Cover:cover
...Remove any orphaned guide images
...Apply device specific fixes
...Cover modifications completed
ePub updated in 1.16 seconds