From 48e757baffbf75bc8a1e4171ad94c27d7356cafa Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 7 May 2021 07:38:59 +0200 Subject: Migrate mangadex to new api, remove .in_progress files in tracked dir if they are old --- plugins/mangakatana.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mangakatana.py') diff --git a/plugins/mangakatana.py b/plugins/mangakatana.py index f2195a4..e90d916 100755 --- a/plugins/mangakatana.py +++ b/plugins/mangakatana.py @@ -54,7 +54,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: @@ -65,7 +65,7 @@ def list_chapters(url, chapter_list_input): tree = etree.HTML(response.text) chapters = [] for element in tree.xpath('//div[@class="chapters"]//div[@class="chapter"]//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 -- cgit v1.2.3