From e38d3985e806bd37bd124124afe3a444b4dd0cbb Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 5 Sep 2021 10:12:02 +0200 Subject: Fix lhtranslation --- plugins/lhtranslation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/lhtranslation.py b/plugins/lhtranslation.py index 8b3e6a7..ac32f5f 100755 --- a/plugins/lhtranslation.py +++ b/plugins/lhtranslation.py @@ -66,9 +66,9 @@ def list_chapters(url, chapter_list_input): chapters = [] for element in tree.xpath("//a[contains(@href, '/manga/')]"): title = element.text.strip().replace("/", "_") - url = "https://lhtranslation.net/" + element.attrib.get("href").strip() - #if title.lower().replace(" ", "") in seen_titles or url in seen_urls: - # break + url = element.attrib.get("href").strip() + if title.lower().replace(" ", "") in seen_titles or url in seen_urls: + break chapters.append({ "name": title, "url": url }) print(json.dumps(chapters)) -- cgit v1.2.3