View Single Post
Old 09-09-2018, 01:51 PM   #2908
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,003
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by chicleeblair View Post
I'm pulling from two older archive sites, one of which is thechosentwo, and i imagine this will be the same with different names). The use the "category" tag for more than fandom, and chosen two's information doesn't even populate my ship column. however, I can't figure out how to just overwrite all their metadata in those categories and replace it.
include_metadata_pre doesn't add metadata, it creates a white list of what metadata will be allowed.

In truth, defaults.ini should include extracategories:Buffy the Vampire Slayer for [chosentwofanfic.com]. I'll add that before the next release.

replace_metadata lines like category=>Buffy the Vampire Slayer are two element lines, so category is taken as the pattern to be replaced. See wiki here.

You can also add characters & ships for all stories from a site like so:
Code:
[chosentwofanfic.com]
extracategories:Buffy the Vampire Slayer
extracharacters:Buffy, Faith
extraships:Buffy/Faith
But not all stories from chosentwofanfic.com are Buffy/Faith. You might instead want something like this:

Code:
[chosentwofanfic.com]
extracategories:Buffy the Vampire Slayer

# put category into ships before replacement is done (.NOREPL)
include_in_ships:category.NOREPL

# put characters into ships after replacement is done.
include_in_characters:ships

include_metadata_pre:
# Only keep ships that have a /
 ships=~/
# Only keep the one category (from extracategories)
 category==Buffy the Vampire Slayer

add_to_replace_metadata:
# split charA/charB into a list of charA, charB
 characters=>([^/]+)/(.+)=>\1\,\2
JimmXinu is offline   Reply With Quote