New Test Version Posted
2020-06-22
- Add cover_min_size setting.
- Fix add_genre_when_multi_category so it can include_in_ without breaking and move above doreplacements.
Quote:
Originally Posted by ownedbycats
New question: I'm trying to add "Crossover" to the categories of...crossovers. I tried this regex after checking the documentation:
Code:
category=>((.*)&&category==(.*))=>Crossover
but it didn't work.
|
I'm not sure what you intended, but you can't nest replace_metadata expressions.
Quote:
Originally Posted by ownedbycats
Alternately, how would one go about remapping the add_genre_when_multi_category: Crossover to Category? I don't think there's possible via the custom columns settings since I can only select one metadata value per column. I'm probably misunderstanding the documentation because I tried a few things and it didn't do anything. 
|
I had forgotten about add_genre_when_multi_category entirely. Requested long ago by some other data normalizing crusader, no doubt.
Here's what I came up with to move Crossover from
genre to
category. Mind you, I had to fix some code first before it would work. So congrats on finding yet more corner cases.
Code:
## Add "Crossover" to genre
add_genre_when_multi_category:Crossover
## a tmp var, basically.
## Need to add to your add_to_extra_valid_entries line.
add_to_extra_valid_entries:,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
(You know, there's a reason I just dump everything into Tags and don't worry about separate columns. It's just as easy or easier to search a tags pile vs separate columns.)