remove unnecessary br around advert in www.novelall.com

This commit is contained in:
Dmitry Snegirev 2018-05-06 08:58:18 +03:00 committed by Dmitry Snegirev
parent a2a3efce52
commit bd197a10c2

View file

@ -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)