View Single Post
Old 04-14-2021, 04:26 AM   #5783
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,024
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by ownedbycats View Post
Also: Without feeding a custom category into a temp column, is there any way to see what it outputs? I'm trying to troubleshoot a tagcategory issue (fics keep ending up in Fanfiction.Other rather than Fanfiction.Disney and I'm not sure what step it's breaking down).
Also this is something I'm a little stumped on. Here's a fic.

Code:
replace_metadata: 
 category=>^Rescuers$=>The Rescuers

## Sorts anything other than a few selected categories into "Fanfiction.Other"
 tagscategory=>^(?!.*(Half-Life|Portal|Mass Effect|The Elder Scrolls|Disney|Crossover)).*$=>Other

## Adds Fanfiction. to the beginning of tagcategory
 tagscategory=>^(.*)$=>Fanfiction.\1

## Some more tagcategory standardization
## Note that I had more than one fandom in here, I just temporarily removed them to check regexes
 tagscategory=>(The Rescuers)=>Disney

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

# tagscategory is a copy category for Fanfiction.category in tags
include_in_tagscategory:category
include_subject_tags: tagscategory
I tracked it down to specifically the line:
tagscategory=>^(?!.*(Half-Life|Portal|Mass Effect|The Elder Scrolls|Disney|Crossover)).*$=>Other

Commenting that out makes it sort into Fanfiction.Disney. However, that line works perfectly fine for all the other listed categories. Any idea why it's breaking down just for Disney?

Last edited by ownedbycats; 04-14-2021 at 12:14 PM.
ownedbycats is offline   Reply With Quote