View Single Post
Old 03-10-2023, 02:55 PM   #8196
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,990
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2023-03-07
- Remove doubled doreplacements/removeallentities from author(etc)HTML processing.

This change is for this:
Quote:
Originally Posted by JimmXinu View Post
But there are some odd interactions with \, and the authorHTML generation code that would need to be fixed first. And it would have to be manually set in personal.ini for each story with that issue.

That fix touches some very old code; I want to run it for myself a few days before giving it to anyone else.
I think these changes are okay. Watch for anything odd with replace_metadata lines on author and any make_linkhtml_entries entries.

It will now work to do this to explicitly set more than one author in a set order:
Code:
[https://www.quotev.com/story/15144388]
add_to_replace_metadata:
 author=>^.*$=>PikachuSkitty\,Quang
 authorId=>^.*$=>SnowNadder\,Quang26943
 authorUrl=>^.*$=>https://www.quotev.com/SnowNadder\,https://www.quotev.com/Quang26943
But there will be INFO level messages about "Skipping replace_metadata line 'author=>^.*$=>PikachuSkitty\,Quang' on author to prevent infinite recursion." You can ignore them.

Quote:
Originally Posted by JimmXinu View Post
This might be a good enough reason to add special code to allow for author sorting while also keeping author/Id/Url matched up. And if so, what about the make_linkhtml_entries metadata entries? I need to think about it for a bit.
Still a significant pain in the neck. Too much pain for something that's so rare.
JimmXinu is offline   Reply With Quote