View Single Post
Old 04-25-2024, 09:14 AM   #9503
w4tchdoge
Member
w4tchdoge began at the beginning.
 
w4tchdoge's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2023
Device: Calibre
Exclamation Generate Covers embeds generated cover into the EPUB when set to not embed

Hi again. I'm sorry that I keep coming back with more cover related issues but I'm currently having some problems with preventing covers generated using the GC plugin from embedding into an EPUB file.

I'm mostly going to talk about SB and SV since I don't have any stories i follow on QQ that have a cover.

I am currently testing this with this SB thread and this SV thread. My settings in "Calibre Cover" section of the FFF GUI settings page are as follows. I've moved the GC settings for XenForo stories from the INI file to the GUI in case that was influencing something, and I've made sure that "Inject/update the generated cover inside EPUB" is unchecked and that "Generate Calibre Cover" is set to "Yes, Always". My INI settings for [base_xenforoforum], [forums.spacebattles.com], and [forums.sufficientvelocity.com] are below:
Spoiler:
Code:
[base_xenforoforum]
add_to_exclude_metadata_pre:
 prefix_tags=~Commission

legend_spoilers:true

user_agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

add_to_extratags:,From CrW Forums

add_to_custom_columns_settings:
 dateUpdated=>#fff_dateupdated
 numChapters=>#fff_chapter_count
 status=>#fff_status
 numWords=>#fff_words
 cover_image=>#cover_type

[base_xenforoforum:epub]
add_to_extra_valid_entries:,normalized_storyUrl
include_in_normalized_storyUrl:storyUrl

add_to_replace_metadata:
 normalized_storyUrl=>(https?:\/\/forums?\..*?\.com\/(threads|posts)\/)(.*\.)?(\d+\/)(\?post.\d+.*\D(\d+))?=>\1\4\5

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">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>${title} by ${author}</title>
 <link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
 </head>
 <body class="fff_titlepage">
 <div class="title">
 <h2><a href="${normalized_storyUrl}">${title}</a> by ${authorHTML}</h2>
 </div>
 <hr id="underTitle-horRule">
 <div>

titlepage_entry:
 <b>${label}:</b> ${value}<br />

titlepage_end:
 </div>
 </body>
 </html>

## ------------------------------------------------

[forums.spacebattles.com]
username:XXXXXXXX
password:XXXXXXXX
#always_login:true

#use_browser_cache:true
#use_browser_cache_only:true
#open_pages_in_browser:true

use_threadmark_wordcounts:true
#use_flaresolverr_proxy:true

add_to_extratags:,From SB

add_to_extra_valid_entries:,prefix_tags
include_in_prefix_tags:forumtags,tagsfromtitle

#generate_cover_settings:
# ${publisher}=>spacebattles.com=>SpaceBattles
# ${cover_image} => ((specific)|(first)|(default)|(^$)) => SpaceBattles

add_to_replace_metadata:
 prefix_tags=>^(.*)=>[SB] [t] \1

include_subject_tags:prefix_tags,extratags

## ------------------------------------------------

[forums.sufficientvelocity.com]
username:XXXXXXXX
password:XXXXXXXX
always_login:true

add_to_extratags:,From SV

add_to_extra_valid_entries:,prefix_tags
include_in_prefix_tags:forumtags,tagsfromtitle

#generate_cover_settings:
# ${publisher}=>sufficientvelocity.com=>SufficientVelocity
# ${cover_image} => ((specific)|(first)|(default)|(^$)) => SufficientVelocity

add_to_replace_metadata:
 prefix_tags=>^(.*)=>[SV] [t] \1

include_subject_tags:prefix_tags,extratags


When I try to download the test threads I mentioned with these settings and check the internal files using Calibre's EPUB editor, I see the GC generated cover as the cover.jpg for both the SB story and the SV story.

If I then disable GC for SpaceBattles and SufficientVelocity through the GUI, the EPUB covers are now what is displayed on the story's SB / SV thread.

I've reviewed my INI & GUI settings a few times now and I haven't found anything egregiously wrong, but seeing as I've previously missed some pretty obvious things I'd like to ask if anyone knows what's going on here.

In case you need the info:
  • Calibre version: 7.8.0 (Was on 7.9.0 but I downgraded to see if the issue persisted)
  • FFF version: 4.33.0
  • Windows version: Windows-10-10.0.19045-SP0 64bit (taken from FFF job details)
  • Generate Cover version: 2.3.4
w4tchdoge is offline   Reply With Quote