Enthusiast
Posts: 25
Karma: 10
Join Date: Dec 2023
Device: Kindle Scribe
|
MultiSeries Replace Metadata Issues
chatgpt is full of good ideas, but it has failed me, so i am back again. at the bottom is my full general ini, minus character-specific irrelevant replace_metadata lines, for reference.
the issue: i have set up a MultiSeries custom column, because the calibre default Series column/value field can only show one series. it seems to work, and the titlepages of each work also properly reflect each series [1] [2] etc. as defined by the rules i wrote in my ini. however, for some reason, i am incapable of making replace_metadata rules for multiseries. the works in question have two series tagged to them: one with a "- Recommended Reading Order" at the end of it. this is redundant, so i want to remove that series tag entirely.
i tried both of the below, and each seems to work when not being interfered with by stuff in my [defaults] ini:
troubleshooting has led me to identify that the specific part of my ini that is causing my issue is something in these three lines:
Spoiler:
Code:
titlepage_entries:series00HTML,series01HTML,series02HTML,series03HTML,series04HTML,<br />,category,ships,characters,<br />,calibre_std_rating,status,rating,warnings,ao3categories,bookmarktags,<br />
include_in_series:true
custom_columns_settings:
series00=>#multiseries,a
series01=>#multiseries,a
series02=>#multiseries,a
series03=>#multiseries,a
series04=>#multiseries,a
if i remove the above lines, everything works just fine. the titlepage & multiseries column both reflect only the one series tag, not the redundant one, which is what i'm going for. but not having these lines (especially the titlepage_entries) screws up the rest of my titlepage. if i add any combination of these back into the ini, it removes everything from the multiseries column entirely, or it keeps the multiseries column in calibre correct but shows both series' on the titlepage, or shows both series' tags on both the titlepage and in the multiseries column, etc. everything gets wonky.
suffice it to say i have tried 11 different iterations of the replace_metadata line in varying degrees of broadness v.s. specificity, deleting works entirely and then redownloading fresh, restarting calibre to make sure ini changes are applied and caches are cleared, manually clearing series & multiseries columns before updating to see what is being overwritten and how, removing & reapplying my entire [defaults] [epub] [html] & [archiveofourown.org] ini sections line by line to identify where things are going wrong, among other things. i cannot figure out a resolution, and both chatgpt & i are out of ideas. i'm sure it's something simple, it usually is, but i'm at a loss and can't find anything relevant even here in the forum for fanficfare.
any ideas of what i'm doing wrong, from anyone here?  
relevant personal ini:
Spoiler:
Code:
# Copyright 2015 Fanficdownloader team, 2021 FanFicFare team
[defaults]
title_label:Title
storyUrl_label:Title
author_label:Byline
authorUrl_label:Byline
authorHTML_label:Byline
description_label:Summary
formatname_label:File Format
formatext_label:File Extension
category_label:Category
genre_label:Genre
language_label:Language
characters_label:Characters
ships_label:Relationships
series_label:Series
seriesUrl_label:Series
seriesHTML_label:Series
status_label:Status
datePublished_label:Published
dateUpdated_label:Updated
dateCreated_label:Packaged
rating_label:Rating
warnings_label:Warnings
numChapters_label:Chapters
numWords_label:Words
site_label:Publisher
siteabbrev_label:Site Abbrev
storyId_label:Story ID
authorId_label:Author ID
extratags_label:Extra Tags
version_label:Downloader Version
include_in_publisher:site
publisher_label:Publisher
dateCreated_format:%%m-%%d-%%Y %%H:%%M:%%S
datePublished_format:%%m-%%d-%%Y
dateUpdated_format:%%m-%%d-%%Y
titlepage_entries:series00HTML,series01HTML,series02HTML,series03HTML,series04HTML,<br />,category,ships,characters,<br />,calibre_std_rating,status,rating,warnings,ao3categories,bookmarktags,<br />
extra_titlepage_entries:chapterslashtotal,numWords,bookmarks,kudos,comments,hits,datePublished,dateUpdated,authorHTML,collections,<br />,freeformtags,<br />,description
extra_valid_entries:series00,series01,series02,series03,series04
include_in_series:true
custom_columns_settings:
series00=>#multiseries,a
series01=>#multiseries,a
series02=>#multiseries,a
series03=>#multiseries,a
series04=>#multiseries,a
collect_series:true
include_subject_tags:extratags,genre,category,characters,ships,status,series,series00,series01,series02,series03,series04
include_titlepage:true
include_tocpage:true
allow_unsafe_filename:false
output_filename_safepattern:(^\.|/\.|[^a-zA-Z0-9_\. \[\]\(\)&'-]+)
connect_timeout:60.0
conditionals_use_lists:true
keep_summary_html:true
keep_html_attrs:href,name,class,id,colspan,rowspan,data-orighref
remove_class_chapter:true
replace_tags_with_spans:u,big,small
keep_empty_tags:p,td,th
remove_tags:script,style
title_chapter_range_pattern:${title} (Ch ${first}-${last})
strip_chapter_numbers:true
add_chapter_numbers:false
chapter_title_strip_pattern:^[0-9]+[\.: -]+(?=[^0-9]|$)
mark_new_chapters:false
chapter_title_def_pattern:${title}
chapter_title_add_pattern:${number}. ${title}
chapter_title_new_pattern:(new) ${title}
chapter_title_addnew_pattern:${number}. (new) ${title}
anthology_title_pattern:${title} Anthology
anthology_tags:Anthology
sort_ships:true
sort_ships_splits:
[ ]*/[ ]*=>/
[ ]*&[ ]*=>\s&\s
user_agent:FFF/4.X
browser_cache_age_limit:4.0
continue_on_chapter_error:false
chapter_title_error_mark:(CHAPTER ERROR)
normalize_text_links:true
fix_relative_text_links:true
internalize_text_links:true
use_basic_cache:true
##☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
##☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
##☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
[epub]
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}</title>
<link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
</head>
<body class="fff_titlepage">
<h3><a href="${storyUrl}">${title}</a></h3>
<div>
titlepage_entry:<b class="fff_tp_label" id="${id}_label">${label}:</b> <span class="fff_tp_value" id="${id}_value">${value}</span><br />
wide_titlepage_entries:<b class="fff_tp_label" id="${id}_label">${label}:</b> <span class="fff_tp_value" id="${id}_value">${value}</span><br />
add_to_output_css:
#description_value {
font-style: italic;
}
div.fff_chapter_notes {
font-weight: bold;
}
epub_version:2.0
zip_output:false
include_tocpage:false
include_logpage:false
logpage_at_end:false
logpage_entries:dateCreated,datePublished,dateUpdated,numChapters,numWords,status,series,title,author,description,category,genre,rating,warnings
titlepage_use_table:false
background_color: ffffff
output_css:
body { background-color: #%(background_color)s;
text-align: justify;
margin: 2%%;
adobe-hyphenate: none; }
pre { font-size: x-small; }
h1 { text-align: center; }
h2 { text-align: center; }
h3 { text-align: center; }
h4 { text-align: center; }
h5 { text-align: center; }
h6 { text-align: center; }
.CI {
text-align:center;
margin-top:0px;
margin-bottom:0px;
padding:0px;
}
.center {text-align: center;}
.cover {text-align: center;}
.full {width: 100%%; }
.quarter {width: 25%%; }
.smcap {font-variant: small-caps;}
.u {text-decoration: underline;}
.bold {font-weight: bold;}
.big { font-size: larger; }
.small { font-size: smaller; }
include_images:true
jpg_quality: 95
make_firstimage_cover: true
image_max_size: 580, 725
convert_images_to: jpg
remove_transparency: true
nook_img_fix:true
##☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
[html]
no_image_processing: true
background_color: ffffff
output_css:
body { background-color: #%(background_color)s; }
.CI {
text-align:center;
margin-top:0px;
margin-bottom:0px;
padding:0px;
}
.center {text-align: center;}
.cover {text-align: center;}
.full {width: 100%%; }
.quarter {width: 25%%; }
.smcap {font-variant: small-caps;}
.u {text-decoration: underline;}
.bold {font-weight: bold;}
.big { font-size: larger; }
.small { font-size: smaller; }
##☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
##☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
##☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
## AO3 General Defaults
[archiveofourown.org]
username: *username*
password: *password*
is_adult:true
collect_series: true
always_login:true
use_view_full_work:true
extra_valid_entries:fandoms,freeformtags,ao3categories,comments,chapterslashtotal,kudos,hits,bookmarks,collections,bookmarktags,series00,series01,series02,series03,series04,series00Url,series01Url,series02Url,series03Url,series04Url,series00HTML,series01HTML,series02HTML,series03HTML,series04HTML
category_label:Fandom
fandoms_label:Fandom
freeformtags_label:Additional Tags
ao3categories_label:Genres
comments_label:Comments
chapterslashtotal_label:Chapters
kudos_label:Kudos
hits_label:Hits
collections_label:Collections
bookmarks_label:Bookmarks
bookmarktags_label:Primary Pair
series00HTML_label:Series[1]
series01HTML_label:Series[2]
series02HTML_label:Series[3]
series03HTML_label:Series[4]
series04HTML_label:Series[5]
keep_in_order_ships:true
keep_in_order_category:true
keep_in_order_characters:true
keep_in_order_genre:true
keep_in_order_collections:true
keep_in_order_ao3categories:true
keep_in_order_freeformtags:true
make_linkhtml_entries:series00,series01,series02,series03,series04
include_in_genre: freeformtags, ao3categories
include_in_category:fandoms
include_in_freefromtags:freeformtags
include_in_chapterstotal:chapterslashtotal.NOREPL
add_to_replace_metadata:
chapterstotal=>^([0-9])+/(.+)$=>\2
slow_down_sleep_time:2
##☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
## General Exclusions
exclude_metadata_pre:
series=>.*Recommended Reading Order.*
characters=>.*/.*
ships=>.*&.*
characters,ships=>\(Platonic\)
characters,ships=>Reader
characters,ships=>You
characters,ships=>Original Male Character\(s\)
characters,ships=>Original Male Character
characters,ships=>Original Female Character\(s\)
characters,ships=>Original Female Character
characters,ships=>Original Character\(s\)
characters,ships=>Original Characters
characters=>Original Animal Character\(s\)
characters=>Other Character Tags to Be Added
characters,ships=>others mentioned
characters,ships=>others
characters,ships=>Other\(s\)
characters,ships=>Original Witcher Character\(s\)
characters,ships=>Original Dwarf Character\(s\)
characters,ships=>Original Daemon Character\(s\)
characters,ships=>Original Nonbinary Character\(s\)
characters,ships=>Original Non-Binary Character
characters,ships=>Original Child Character\(s\)
characters,ships=>Assorted OCs
characters,ships=>Minor Characters
category=>Original Work
## General Replacements
replace_metadata:
series=>.*Recommended Reading Order.*=>
extratags=>(.*)[FanFiction](.*)=>
extratags=>.*[Nn]o beta.*=>Not Beta Read
extratags=>.*[Uu]nbeta.*=>Not Beta Read
extratags=>.*[Ss]low [Bb]urn.*=>Slow Burn
extratags=>.*slowburn.*=>Slow Burn
extratags=>.*[Ff]ix[Ii]t.*=>Fix-It
extratags=>^[Ff]ix [Ii]t=>Fix-It
characters=> - Character=>
characters=>various useless OCs=>
ships=>\b([^/]+)/([^/]+)=>\1/\2
characters,ships=>.*[Mm]ention(?:ed| of).*=>
characters,ships=>.*[Bb]ackground.*=>
characters,ships=>.*[Pp]ast.*=>
characters,ships=>.*[Ii]mplied.*=>
characters,ships=>.*[Rr]elationship.*=>
characters,ships=>.*[Rr]eferenced.*=>
characters,ships=>.*[Ee]nsemble.*=>
characters,ships=>.*[Bb]rief.*=>
ships=>Original=>
calibre_std_rating=>1=>★
calibre_std_rating=>2=>★★
calibre_std_rating=>3=>★★★
calibre_std_rating=>4=>★★★★
calibre_std_rating=>5=>★★★★★
##☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
Last edited by TaviCalderon; 02-15-2025 at 09:29 PM.
|