View Single Post
Old Yesterday, 10:24 AM   #11248
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,043
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Tharos View Post
A question for the collective intelligence here. Should the following two entries work?
In short, no. I think you've misunderstood how these work.

'&&' in a replace_metadata is not an added effect. It's what I call a conditional--the preceding part of the line will only be applied if the conditional also matches.
Code:
replace_metadata:
 fandoms,category=>^.*Harry Potter.*$=>Harry Potter&&series=>Harry Potter
This says: Change the entirety of any value of fandoms or category containing "Harry Potter" to only "Harry Potter", but only if the series entry contains "Harry Potter". See wiki page.

Code:
include_metadata_pre:
 #ts==Fantasy
The in/exclude_metadata_pre/post family of settings operate only on FFF metadata and only to remove specific matched values with exclude, or, oppositely, to discard all values that don't match with include. See wiki page

#ts is, presumably, a Calibre column. Populating custom columns is done with custom_columns_settings. See defaults.ini.

(FYI, use [code], not [quote] around INI examples.)
JimmXinu is offline   Reply With Quote