View Single Post
Old 08-31-2022, 05:35 PM   #7468
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,034
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by AbyssalAriel View Post
It happens with every URL I've tried, but the one I used for the output I posted here was: https://archiveofourown.org/works/31387700
The extra titles can be suppressed by matching string start and stop explicitly:
Code:
## Add labels to the copies
add_to_replace_metadata:
 datePublishedCopy=>^(.*)$=>Published:\s\1
 dateUpdatedCopy=>^(.*)$=>Completed:\s\1
 numChaptersCopy,chapterslashtotalCopy=>^(.*)$=>Chapters:\s\1
 numWordsCopy=>^(.*)$=>Words:\s\1
I'm honestly not sure why that's needed sometimes. Logically, it shouldn't be and I believe it changed at one point--pretty confident it wasn't needed when replace_metadata was developed and popped later. A difference between regex in py2 vs py3 maybe?
JimmXinu is offline   Reply With Quote