View Single Post
Old 03-06-2025, 12:27 AM   #10428
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,045
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ThreeLizards View Post
Okay, so for the cover thing, it's every single story I try to download.
....
Yeah, that's not Generate Cover having a problem.

That's Calibre's "Set cover from ebook format" code called by having FFF's "Update Calibre Cover (from EPUB)" setting turned on, in combination with your custom titlepage_start setting.

You can see this happen manually if you Edit metadata in Calibre, choose the epub format and click the cover from format button:
Click image for larger version

Name:	coverbutton.png
Views:	153
Size:	58.5 KB
ID:	214138

Technically, the very start of an xhtml file has to be "<?xml ...?>". You have an extra new line.
Code:
# don't do this:
titlepage_start:
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 ...

# do this:
titlepage_start:<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 ...
The next question is: Why didn't the GC cover run and immediately hide that problem?

The answer to that is that the GC GUI selection uses FFF's site metadata entry--and you've changed it in replace_metadata.

There are certain metadata entries FFF uses internally that, technically can be changed by the user, but will break certain features. Especially, storyUrl, but also site, & status.

So: You can either not change site, use Default GUI GC instead of archiveofourown.org, or use generate_cover_settings to specify the GC setting to use.

FYI, publisher is a copy of site that gets put in Calibre's Publisher field. That, you can safely change.

From defaults.ini:
Code:
## The metadata entry 'site' predates Calibre integration, and was
## later labeled Publisher and used to fill Calibre's Publisher field.
## Because users keep expecting it to be 'publisher' instead,
## 'publisher' is now a copy of 'site' and the Calibre plugin now uses
## 'publisher' instead.  Default titlepage_entries are also changed.
include_in_publisher:site
publisher_label:Publisher
JimmXinu is offline   Reply With Quote