diff options
Diffstat (limited to 'plugins/manganelos.py')
-rwxr-xr-x | plugins/manganelos.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/manganelos.py b/plugins/manganelos.py index 7e220d5..54c2625 100755 --- a/plugins/manganelos.py +++ b/plugins/manganelos.py @@ -56,7 +56,7 @@ def list_chapters(url, chapter_list_input): for item in chapter_list_input: title = item.get("title") if title and len(title) > 0: - seen_titles.add(title.lower().replace(" ", "")) + seen_titles.add(title.lower().replace(" ", "").replace("/", "_")) seen_urls = set() for item in chapter_list_input: @@ -67,7 +67,7 @@ def list_chapters(url, chapter_list_input): tree = etree.HTML(response.text) chapters = [] for element in tree.xpath('//section[@id="examples"]//div[@class="chapter-list"]//a'): - element_text = element.text.strip() + element_text = element.text.strip().replace("/", "_") url = element.attrib.get("href").strip() if element_text.lower().replace(" ", "") in seen_titles or url in seen_urls: break |