aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/lhtranslation.py6
1 files 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))