View Single Post
Old 04-08-2021, 10:14 AM   #5754
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,025
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Ascello View Post
So, I need advice, because I am stuck without ideas. Let's assume we have story XXX by author AAA on ao3 and one of the genre is "author: BBB". So, now I want FFF in Calibre to automatically substitute change AAA into BBB, so that BBB is the author. Any suggestions how to do it?
Without knowing the specific story and only speaking in the hypothetical, I can't actually test my suggestion.

But given what you asked, something like this will probably work:
Code:
[archiveofourown.org]
add_to_replace_metadata: 
 author=>^AAA$=>BBB&&genre==author: BBB
Limited to AO3, only matches the entire author string, and only when the exact string "author: BBB" is in metadata entry genre.

If you want more help with it, you'll need to provide story URLs.
JimmXinu is offline   Reply With Quote