Quote:
Originally Posted by ownedbycats
Ok, so I was able to further test that regex, and it also changed the category custom column to Fanfiction.Category.  Still not sure what I'm doing wrong.
|
Well, yes. That's what you told it to do--you changed
category.
If you want
category in one place and Fanfiction.
category in another, you need to make a copy in a new metadata entry and operate on that.
Unless you're doing something subtle with deliberately making changes in individual [site] sections, including both
add_to_ and regular versions of a setting in the same section is likely to just cause confusion. There's a
wiki page about ini settings.
extra_valid_entries is probably the only setting here that truly needs
add_to_, due to many sites already having
extra_valid_entries in defaults.ini. Whether the others do or not depends on your settings in other sections.
Tidied a little and
tagscategory added:
Code:
[defaults]
## [defaults] section applies to all formats and sites but may be
## overridden at several levels. Example:
custom_columns_settings:
"N"=>#read
oneshot=>#fanficstatus
replace_metadata:
site=>www.fanfiction.net=>FanFiction.net
site=>archiveofourown.org=>Archive of Our Own
author=>\(orphan_account\)=>
author=>^orphan_account$=>Unknown
category=>\(Video Game\)=>
category=> /Mass Effect/=>Mass Effect Trilogy
category=>/Mass Effect - All Media Types/=>Mass Effect Trilogy
category=>Sims=>The Sims
oneshot=>Completed=>Oneshot&&numChapters=>^1$
tagscategory=>^(.*)$=>Fanfiction.\1
# 'add_to_' concats on to existing param, thus the leading comma
add_to_extra_valid_entries:,oneshot, tagscategory
# oneshot is a copy of status because status itself isn't a list.
include_in_oneshot:status
# tagscategory is a copy category for Fanfiction.category in tags
include_in_tagscategory:category
include_subject_tags: tagscategory
generate_cover_settings:
${site}=>^FanFiction.net$=>FFNet
${site}=>^Archive of Our Own$=> AO3