View Single Post
Old 08-15-2013, 09:47 PM   #1601
Linwe
Enthusiast
Linwe began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Jun 2012
Device: Kindle & Kindle 4
thank you! ...and just a little more help?

Quote:
Originally Posted by JimmXinu View Post
It's possible, but it's not necessarily simple.

However, if you want only to have the abbreviations in the Fandom column, you need to Allow custom_columns_settings (towards the bottom of the FFDL Custom Column tab) and include something like this in personal.ini:

Spoiler:
Code:
[defaults]
# Adds a new 'extra' valid entry
add_to_extra_valid_entries:,fandom

# copy category to fandom
include_in_fandom:category

# replace with abbrevs in fandom
replace_metadata:
 fandom=>Ouran High School Host Club=>OHC
 fandom=>How To Train Your Dragon=>HTTYD

# set custom column with fandom value.
custom_columns_settings:
 fandom=>#fandom


replace_metadata can be quite complex.
A little tweaking (used add_to_replace_metadata for # replace with abbrevs in fandom section) and it's working near-perfectly now. I just have one itsy-bitsy-teeny-weeny problem left, and I'm not sure what I'm doing wrong this time.

I have a few crossover fics and I want the "predominant" fandom listed in my custom column. For example, I have both Labyrinth/Harry Potter and Yugioh/Harry Potter crossovers, and a few 'pure' Harry Potter fics; the Laby/HP I want listed as Labyrinth, the YGO/HP listed as YGO, and obviously the HP to remain as the single fandom they are.

I'm using the following code:

Quote:
# copy category to fandom
include_in_fandom:category

# replace with abbrevs in fandom
add_to_replace_metadata:
fandom=>Yu-Gi-Oh=>YGO
fandom=>Harry Potter=>Labyrinth&&category=>Labyrinth
fandom=>YGO=>Harry Potter&&category=>YGO

# set custom column with fandom value.
custom_columns_settings:
fandom=>#fandom
The Labyrinth/HP crossovers come out as I want them, but the Yugioh crossovers are still listing as "Harry Potter, YGO" in my custom columns.

Using " fandom=>Harry Potter=>YGO&&fandom=>YGO" changes both YGO crossover and just HP fics to YGO in custom columns.

My understanding of regexp and the five part lines is basic for the simpler expressions and gets sketchier as they become more complex.

Any and all help is appreciated of course, but I have few crossovers so manual edits aren't a huge chore if something isn't feasible. Sorry for the long post too.

Edit: I grabbed random old stories to test on like these: YGO/HP Crossover and Harry Potter

Last edited by Linwe; 08-15-2013 at 09:51 PM. Reason: add fic links
Linwe is offline