View Single Post
Old 03-23-2024, 04:51 AM   #9411
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,308
Karma: 79528341
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: Is it possible to use replace_metadata to copy a portion of one metadata entry to another?

Probably easiest to link my use-case (warning for a few explicits), all consisting of "Story Title" by Author Name.

Rather than using a dozen storyUrl sections, I thought that I could regex a replace_metadata with seriesUrl conditional. I got the title extracted:

Code:
[archiveofourown.org]
add_to_replace_metadata:
 title=>^\"(.*)\" by (.*)$=>\1&&seriesUrl==https://archiveofourown.org/series/1618510
but I'm not sure how to copy title over to author, or if that's possible.

Last edited by ownedbycats; 03-23-2024 at 06:00 AM.
ownedbycats is offline   Reply With Quote