View Single Post
Old 06-21-2025, 09:20 PM   #10921
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: 6,992
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Question (and [url=https://archiveofourown.org/works/24179737]story to test with[/url):

Code:
## Adds "Crossover" if more than one category after category replaces/includes/excludes.
add_category_when_multi_category:Crossover

replace_metdata:
## tagcategory standardization
 tagscategory=>(Mass Effect: Andromeda|Mass Effect Trilogy)=>Mass Effect
 tagscategory=>Pokémon=>Video Games

# Sorts anything other than a few selected categories into "Fanfiction.Other"
 tagscategory=>Crossover=>
 tagscategory=>^(?!.*(Half-Life|Portal|Mass Effect|The Elder Scrolls|Disney|Star Trek|(Animated )?Movies & Television|Books & Literature|Video Games)).*$=>Other

# Adds Fanfiction. to the beginning of tagcategory
 tagscategory=>^(.*)$=>Fanfiction.\1
If I include the crossover replace, I get a Fanfiction.Other on every fic with a crossover category (so not mismatch on these specific ones). What's happening?
I think you left out part--I don't get any tagscategory.

I'd consider include lines instead of a large negative lookahead regexp.

Quote:
Originally Posted by ownedbycats View Post
Also, was there ever a bug where AO3 series got jumbled in the saved metadata column? I was baffled to see these in two different fics:

https://archiveofourown.org/works/37857922 :
<p><span class='label'>Series</span>: <div class='metadata' id='seriesHTML'><a class='serieslink' href='., /, 2, 4, 5, 8, 9, :, a, c, e, f, g, h, i, n, o, p, r, s, t, u, v, w'> , &amp;, 3, [, ], a, b, d, e, f, h, i, k, l, n, o, r, s, t, u, w, ’</a></div><p>

https://archiveofourown.org/works/39459798 :
<p><span class='label'>Series</span>: <div class='metadata' id='seriesHTML'><a class='serieslink' href='., /, 1, 7, 9, :, a, c, e, f, g, h, i, n, o, p, r, s, t, u, v, w'> , ', 3, E, N, S, [, ], i, k, n, o, s, t, y</a></div><p>


The only thing they had in common were being the third in the series and downloaded in May/June 2022. Downloading metadata restored the actual series so its just a curiosity than anything to fix.
That's the result of a string in python being treated as a list. I don't remember anything about series being treated that way 3 years ago. Nor have I found anything in the few minutes I have to spend on it.

Honestly, if it's not happening now, I don't care.

In the 'teach to fish' category:
  • Go to the github repo.
  • Use the search box towards the top to search the repo.
  • In this case, I'd look at Commits.
Alternatively, if you are confident in your dates:
  • Go to the github repo.
  • Click commits.
  • Click where it says 'All time', to the date range you're interested in.
  • Peruse the commit from the time.
Here on MR:
  • Go back in thread and/or release history to that time period.
  • Look for posts.
JimmXinu is online now   Reply With Quote