mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-23 01:04:44 +01:00
remove unnecessary br around advert in www.novelall.com
This commit is contained in:
parent
a2a3efce52
commit
bd197a10c2
1 changed files with 4 additions and 0 deletions
|
|
@ -214,6 +214,10 @@ class WWWNovelAllComAdapter(BaseSiteAdapter):
|
|||
def getChapterText(self, url):
|
||||
data = self._fetchUrl(url)
|
||||
|
||||
# remove unnecessary <br> created to add space between advert
|
||||
data = re.sub(r"<br><script", "<script", data)
|
||||
data = re.sub(r"script><br>", "script>", data)
|
||||
|
||||
if self.getConfig('fix_excess_space', False):
|
||||
data = fix_excess_space(data)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue