View Single Post
Old 06-14-2014, 07:53 PM   #2932
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,029
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by cryzed View Post
Jimm, now I have a question myself . Is this currently the best way to populate a Calibre category with modified metadata, without changing the original metadata? (I don't think I need \, here, since my #category column is a tag-like text type)

Code:
extra_valid_entries:_category
include_in__category:category

replace_metadata:
 _category=>(.*)=>Fanfiction,\1 Fanfiction

custom_columns_settings:
 _category=>#category,a
Well, I personally wouldn't use _category, no matter how pythonic. I thought you had a bunch of typos at first.

Are you asking for a general case, or a specific solution?

In the general case, yes, to modify a metadata list and put it in a custom columns without changing the original list, that's fine. And the 'a' on custom_columns_settings makes it just add without replacing.

But in specific, if you always want 'Fanfiction' as its own tag and 'Harry Potter Fanfiction', 'Stargate Fanfiction', etc, I think you need the split from '\,'.
JimmXinu is offline