Open Sohex opened 3 years ago
Looking at your Wuxiaworld-2-eBook repo (which I'm assuming novel-ebook is based on), the issue appears to be with either the source for the text or the initial ingest. If properly escaped brackets (e.g. < >
) are passed into beautiful soup everything should work correctly. So if the source is showing those correctly then some part of your flow is actually rendering out < >
as <>
prior to that being passed to beautiful soup.
The issue is already present in the text when it's fetched from data.novel-ebook.com so the issue should definitely be with however you're populating that. I'll stop poking around and leave it to you, thanks!
Thanks for the in-depth bug report!
Just in case your're interested, the project's backend has been completely rewritten in javascript and rust since Python really ate on my cpu resources.
I took a quick glance at the code and the data source, it seems that the data source does not properly escape angle brackets. I take a closer look on possible fixes for this issue once I'm back from vacation.
It's not only angle brackets. Lots of escape codes are not parsed correctly as characters, making the text hard to read.
This is Versatile Mage, chapter 1766, downloaded today:
Mo Fan’s Demon Element. It was dark and wet around him. The bottom of the cave was very spacious, and Mo Fan’s vision in the dark was not too bad. He was able to see the rough appearance of the cave. Cries of agony came from above him, followed by the sound of something slamming heavily to the ground. “That hurts… my ass!” A dark figure rose to his feet. His eyes were glittering faintly in the dark. “Zhou Donghao?” Mo Fan recognized the idiot’s voice. “It’s me! So you think you can come down here, but I can’t? You think only you care about Tao Jing? I care about her more than you!” Zhou Donghao said righteously. “Are you retarded? Can you please lower your voice in a place like this? Or do you want to be smashed into pulp by the Rock Monsters?” Mo Fan snarled. “I…” Zhou Donghao was lost for words.
Describe the bug Text appearing in angle brackets is removed from novels. This issue effects multiple novels. For example Reincarnator Chapter 57: Text should read - "That was needed to create the \<hardening fluid> which 127 Alchemists..." Text in downloaded epub appears as - "That was needed to create the which 127 Alchemists..." The same issue appears multiple times in that chapter alone, but it also occurs frequently in other novels.