View Single Post
Old 07-01-2021, 08:10 PM   #6106
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,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Courge View Post
I gather the "category" metadata in a custom column and I would like to simplify the metadata while avoiding multiple identical values.

For example, some fanfics are tagged as:
  • The Silmarillion and other histories of Middle-Earth - J. R. R. Tolkien
  • The Lord of the Rings - All Media Types
  • The Hobbit - All Media Types
  • TOLKIEN J. R. R. - Works & Related Fandoms

I set the personal.ini file to:
Code:
add_to_replace_metadata:
 category=>The Silmarillion and other histories of Middle-Earth - J. R. R. Tolkien=>Tolkien
 category=>The Lord of the Rings - All Media Types=>Tolkien
 category=>The Hobbit - All Media Types=>Tolkien
 category=>TOLKIEN J. R. R. - Works \& Related Fandoms=>Tolkien
Which gives me in the "Category" custom column: "Tolkien, Tolkien, Tolkien, Tolkien".

Is it possible to either pick up (and replace) only the first tag in "category" or remove identical replacements?
Both FFF and Calibre should be de-duping (and ordering)--assuming you are using a 'Like Tags' type column.

If you have keep_in_order_category:true that will disable both de-duping and ordering in FFF.
JimmXinu is offline   Reply With Quote