Quote:
Originally Posted by cryzed
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 '\,'.