View Single Post
Old 01-13-2023, 04:19 AM   #7932
DemiGraceling
Junior Member
DemiGraceling began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2022
Device: iPhone
Fandom metadata organization help

I was wondering if there is a way to get fff to remove all the fandoms except for the few I want. I try to keep the fandoms to under 100 to make sure they all show in one group. I am currently doing this in two steps: First, in add_to_replace_metadata I have a set of statements to automatically categorize the fandoms that I care about.
Example:
Code:
  category=>.*Arkham.*=>Batman
  category=>.*[Bb]at[Mm]an.*=>Batman
  category=>.*Blue Beetle.*=>DCU
  category=>.*[Bb][Nn][Hh][Aa].*=>My Hero Academia
  category=>.*[Bb]oku [Nn]o [Hh]ero [Aa]cademia.*=>My Hero Academia
  category=>.*Criminal Minds.*=>Criminal Minds
  category=>.*Doctor Who.*=>Doctor Who
  category=>.*[Gg]otham.*=>Batman
  category=>.*Grayson.*=>Batman
  category=>.*Krypto.*=>Superman
  category=>.*Jessica Jones.*=>Jessica Jones
  category=>.*Joker.*=>Batman
  category=>.*Justice League.*=>Justice League
  category=>.*Justice Society of America.*=>DCU
  category=>.*Leverage.*=>Leverage
  category=>.*Lie to Me.*=>Lie to Me
  category=>.*[Mm]ari[Bb]at.*=>Batman\,Miraculous Ladybug
  category=>.*MCU.*=>Marvel
  category=>.*[Mm][Hh][Aa].*=>My Hero Academia
  category=>.*No Fandom.*=>Original Work
  category=>.*Ouran.*=>Ouran High School Host Club
  category=>.*Poetry.*=>Original Work
  category=>.*Red Hood.*=>Batman
  category=>.*Red Robin.*=>Batman
  category=>.*[Rr]obin.*=>Batman
Next, I created a long list of lines to remove all other fandoms.
Example:
Code:
  category=>.*RPF.*=>
  category=>.*Video Game.*=>
  category=>.*[Aa]nime.*=>
  category=>.*[Mm]anga.*=>
  category=>.*[Cc]artoon.*=>
  category=>.*[Bb]ook.*=>
  category=>.*[Tt][Vv].*=>
  category=>.*[Bb]and.*=>
  category=>.*[Mm]ovie.*=>
  category=>.*[!'/\|\(\)\+:;?-].*=>
  category=>.*[1234567890].*=>
  category=>.*All Media.*=>
  category=>.*Fandom.*=>
  category=>.*&.*=>
  category=>^[Tt]he.*=>
  category=>^[EKNQUXx].*=>
I was hoping you could give me a more efficient way to do this.
DemiGraceling is offline   Reply With Quote