View Single Post
Old 07-06-2023, 12:45 AM   #8604
applegaa
Connoisseur
applegaa has learned how to buy an e-book online
 
applegaa's Avatar
 
Posts: 72
Karma: 76
Join Date: Apr 2019
Device: none
Quote:
Originally Posted by JimmXinu View Post
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?
I'm not sure. Most of the time it works and removes those bits. I've manually cleaned up a lot of the ones that failed, so I don't have good data at the moment on how many fail.

I'll start paying closer attention to which ones work and which ones don't and see what I can figure out about what differs between them.

- Andrew
applegaa is offline   Reply With Quote