View Single Post
Old 07-03-2020, 11:00 PM   #4267
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,437
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: Is there way to use an and statement in the In/exclude Metadata? I'd like to exclude "crossover" if it has two specific fandoms but the regexes I tried for matching multiple strings didn't really work.

Also something I found while trying to puzzle that out myself: The crossover crosscategory thing seems to have stopped working on AO3; I downloaded several multifandom fics to check and it doesn't add crossover to any of them. It does still work on FFNet though. I think it was working before so I'm not sure if AO3 changed something or if I managed to break it myself. Here's my ini file in the more likely event of the latter:

Spoiler:
Code:
## This is an example of what your personal configuration might look
## like.  Uncomment options by removing the '#' in front of them.

[defaults]

custom_columns_settings: 
 "N"=>#read
 oneshot=>#fanficstatus

## Some sites also require the user to confirm they are adult for
## adult content.  Uncomment by removing '#' in front of is_adult.
is_adult:true

## If set, an image (regardless of source) will only be used as a
## cover image if it is >= both the dimensions listed here.  When not
## set, any size image will be used.  Note that some sites, like ffnet
## use relatively small images(180,240).
cover_min_size: 100,100

replace_metadata: 
 site=>www.fanfiction.net=>FanFiction.net
 site=>archiveofourown.org=>Archive of Our Own
 author=>^orphan_account$=>Unknown
 author=>\(orphan_account\)=>
 category=>(\(Video Game\)|\([0-9]+\))=>
 category=>(^(?=.*Mass.Effect)(?!.*Mass Effect Trilogy).*|Mass Effect - All Media Types)=>Mass Effect Trilogy
 category=>Sims=>The Sims
 category=>(^(?=.*Elder Scrolls)(?!.*The Elder Scrolls).*|Elder Scrolls V: Skyrim)=>The Elder Scrolls
 category=>(Pocket Monsters \|\ Pokemon - All Media Types)=>Pokémon
 oneshot=>Completed=>Oneshot&&numChapters=>^1$
 tagscategory=>^(?!.*(Half-Life|Portal|Mass Effect|Crossover)).*$=>Other
 tagscategory=>^(.*)$=>Fanfiction.\1
 tagscategory=>(Portal|Half-Life)=>Half-Life & Portal
 tagscategory=>Mass Effect Trilogy=>Mass Effect

add_to_replace_metadata:
 description=><br/>=></p><p>

## Add "Crossover" to genre
add_genre_when_multi_category:Crossover

# 'add_to_' concats on to existing param, thus the leading comma
add_to_extra_valid_entries:,oneshot, tagscategory,crosscat

## fill with genre skipping replace/include/exclude
include_in_crosscat:genre.NOREPL

## only include Crossover in crosscat.  
## Again, incorporate with your existing, if  you have one.
add_to_include_metadata_pre:
 crosscat==Crossover

## remove Crossover from genre.  
## Again, incorporate with your existing, yada yada yada.
add_to_exclude_metadata_post:
 genre==Crossover

## add crosscat to category
## Again, incorporate with your existing, etc.
include_in_category:category,crosscat,

# 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

[archiveofourown.org]
slow_down_sleep_time:0.5
## Some attributes cause problems for EBook readers.  By default,
## FanFicFare will remove all attributes except the ones specified
## from all tags.  (The only exception is that <img> tags will also
## keep src, alt and longdesc attributes.)
## Example: To add 'style', 'title' and 'align' to the list to keep,
## in your personal.ini [defaults] put:
add_to_keep_html_attrs:,style,title,align

[https://archiveofourown.org/works/21814324]
add_to_replace_metadata_filelist:file:///D:/Documents/Miscellany/ReplaceNBSP.txt


Thank you Sorry for all the silly questions. I think I'm frequent flier on this thread.

Last edited by ownedbycats; 07-04-2020 at 01:47 AM.
ownedbycats is offline   Reply With Quote