View Single Post
Old 03-09-2023, 02:47 PM   #8191
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,043
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
kolbinski,

If the order is changing between updates, it's either because the site is changing it or because the author(s) are. Looks like the site does alternate it in this case.

author/authorId/authorUrl are the only metadata that FFF is hard coded to keep in the same order as the server lists them instead of automatically sorting the list. That's to make sure the author name, ID and URL lists line up in the same order, which is necessary for the authorHTML metadata to work correctly.

In theory, it should be possible to use replace_metadata to force the order of each list for a particular story.

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.

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.

UPDATE:
You could, in the meantime, use replace_metadata to make that story only have one author:
Code:
[https://www.quotev.com/story/15144388]
add_to_replace_metadata:
 author=>^.*$=>PikachuSkitty
 authorId=>^.*$=>SnowNadder
 authorUrl=>^.*$=>https://www.quotev.com/SnowNadder

Last edited by JimmXinu; 03-09-2023 at 02:57 PM.
JimmXinu is offline   Reply With Quote