View Single Post
Old 10-25-2020, 05:44 PM   #4751
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,999
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Well, you've yet again found another weird little corner case. Congratulations!

Title page uses seriesHTML, which FFF constructs as an HTML when it finds that it has a seriesUrl value, or just text w/o link if there's a series, but no seriesUrl:

Code:
linkhtml="<a class='%slink' href='%s'>%s</a>"

if self.getMetadataRaw('seriesUrl'):
    self.setMetadata('seriesHTML',linkhtml%('series',
                                            self.getMetadata('seriesUrl', removeallentities, doreplacements),
                                            self.getMetadata('series', removeallentities, doreplacements)))
elif self.getMetadataRaw('series'):
    self.setMetadata('seriesHTML',self.getMetadataRaw('series'))
Because you cleared series, but the code looks for raw seriesUrl, seriesHTML still contains HTML, just not visible HTML.

Trying to clear seriesHTML based on the text value fails, because 'Whumptober' was already removed.

I will think about whether the code should be changed--IE, what else might break if I fix this issue in code.

In the meantime, this works:
Code:
 seriesHTML=>.*=>&&seriesUrl=>https://archiveofourown.org/series/1951183
 series=>.*=>&&seriesUrl=>https://archiveofourown.org/series/1951183

Last edited by JimmXinu; 10-25-2020 at 05:44 PM. Reason: typo fixes
JimmXinu is offline   Reply With Quote