From 31154ed8d4d6d71e6fce29db7ac08080d5eb37d5 Mon Sep 17 00:00:00 2001 From: David Lynch Date: Mon, 2 Dec 2024 00:00:58 -0600 Subject: [PATCH] Fix a call to _clean for royalroad --- sites/royalroad.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sites/royalroad.py b/sites/royalroad.py index a640dc9..8d897d0 100644 --- a/sites/royalroad.py +++ b/sites/royalroad.py @@ -78,7 +78,7 @@ class RoyalRoad(Site): soup, base = self._soup(url) content = soup.find('div', class_='chapter-content') - self._clean(content, soup, base) + self._clean(content, full_page=soup, base=base) self._clean_spoilers(content, chapterid) content = str(content) @@ -100,7 +100,7 @@ class RoyalRoad(Site): return content, updated - def _clean(self, contents, full_page): + def _clean(self, contents, full_page, base=False): contents = super()._clean(contents) # Royalroad has started inserting "this was stolen" notices into its