View Single Post
Old 01-04-2025, 10:13 AM   #10154
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,045
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Question: What is proper way to exclude one category if another category is also present? e.g. Star Trek -> Star Trek: The Original Series - exclude first one. I may have asked this before sorry.
I shall not include my snarky remarks about "proper" ways.

There's probably more than one way, but the first to come to mind is to add a 'raw' copy of the metadata entry with .NOREPL to use conditional, something like:
Code:
add_to_extra_valid_entries:,categoryraw
include_in_categoryraw:category.NOREPL
add_to_replace_metadata:
 category=>^Star Trek$=>&&categoryraw=>^Star Trek.+$
JimmXinu is offline   Reply With Quote