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':
- 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.
- The above, but only when clean_chapter_titles:true is set.
- 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.
- 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?