View Single Post
Old 07-23-2023, 10:45 AM   #8704
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 131
Karma: 295674
Join Date: Jul 2021
Device: iPhone
I'm trying to understand why my test entries aren't being used despite including only them as subject tags.

Basically what I'm trying to do is retrieving the first item in a list. I've managed to do this (maybe??) as shown on the title page, but for whatever reason it's taking other entries as subject tags. I didn't see any conflicting settings on overrides/defaults. Here's the relevant code:
Spoiler:
Code:
[test1.com]
# URL: http://test1.com?sid=12345

extra_valid_entries:prefix_category,prefix_ships,first_category,first_ship

include_in_prefix_ships:ships
include_in_prefix_category:category

include_in_first_ship:prefix_ships
include_in_first_category:prefix_category

keep_in_order_ships:true
keep_in_order_characters:true
keep_in_order_category:true
keep_in_order_prefix_ships:true
keep_in_order_prefix_category:true
keep_in_order_first_ship:true
keep_in_order_first_category:true

prefix_ships_label:Prefix Ships
prefix_category_label:Prefix Category
first_ship_label:First Ship
first_category_label:First Category

exclude_metadata_pre:
 prefix_ships=~(.*) & (.*)

replace_metadata:
 prefix_category=>^(.*)=>[c] \1
 prefix_ships=>^(.*)=>[p] \1
 first_category_LIST=>^(\[c\].*?)(\,.*)=>[first] \1
 first_ship_LIST=>^(\[p\].*?\/.*?)(\,.*)=>[first] \1

titlepage_entries:category,characters,ships,prefix_ships,prefix_category,first_ship,first_category
include_subject_tags:first_ship,first_category

[teststory:defaults]

category_list:Category 1,Category 2,Category 3
characters_list:Char A,Char B,Char C,Char D
ships_list:Char A/Char B,Char B & Char C,Char A & Char B,Char C/Char D,Char B/CharC


Result: (Calibre's tags showing prefix_category and prefix_ships as the entries, but I have first_category and first_ship in include_subject_tags)
Spoiler:

It looks like despite editing the string as a list the items still exist.
culytera is offline   Reply With Quote