Trim lines (elements) from chapter body before packing into EPUB file - #2857
Trim lines (elements) from chapter body before packing into EPUB file#2857g-play01 wants to merge 3 commits into
Conversation
|
You can also fix the parsers of the problematic sites. |
|
The sites have varying behaviour based on the story series, some stories only have 1 line to remove while otheres have 2 and others have none, I felt this was a more universal solution. |
|
@g-play01 how about a additional feature that will remove lines containing specific phrases? |
|
I think stuff like this should be included in the specific parser or made with another program.
Any examples? As this implies manual involvement per downloaded epub i think it is reasonable that the person post processes the ebook. With for example calibre or https://github.com/dteviot/EpubEditor It could be for example a EpubEditor script where the first variable is the count of elements removed. |
Ran into cases where sites add content like number of words per chapter, the chapter title again, a please report if any issues at the start / end of a chapter and that ends up getting packed into the epub and can get annoying especially when you use a TTS reader created this advanced option that defaults to 0 i.e so off by default that removes a specified number of elements from the processed chapter bodies in convertRawDomToContent. Tested a local build on firefox on 2 sites works as expected.
Let me know if ya'll want anything else changed on this.