View Single Post
Old 07-05-2023, 10:33 AM   #8603
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,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
First, you have to have clean_chapter_titles:true set. (I assume you do, but I didn't know that at first.)

That code operates by looking at the story title (what literotica calls 'series'), removing that from chapter title, then looking for 'Ch.' or 'Pt.' at the beginning of the chapter title.

Those particular stories include 'Ch' or 'Pt' as part of the story title.

The ch/pt is removed as part of the story title, not there to be found when the next code looks for it and therefore not replaced.

So, here are some possible solutions from most to least 'invasive':
  1. Add code to specifically remove trailing 'Pt' or 'Ch' from story titles in adapter_literotica. That will change the story title for existing stories with this problem.
  2. The above, but only when clean_chapter_titles:true is set.
  3. Add code to ignore trailing 'Pt' or 'Ch' in story titles only while running clean_chapter_titles:true, but keep it in the official title metadata. Can still be addressed by user with replace_metadata.
  4. Declare this to be author error and leave it up to the user to pursue options using replace_metadata on title and strip_chapter_numbers if they want to fix it.
I'm most inclined towards options 3 & 4.

How frequently is this issue?
JimmXinu is online now   Reply With Quote