aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-09-05 10:12:02 +0200
committerdec05eba <dec05eba@protonmail.com>2021-09-05 10:12:02 +0200
commite38d3985e806bd37bd124124afe3a444b4dd0cbb (patch)
tree2593c7f8514c1ae61bc07247e438d616391f8dbc
parent377e3f8dbd32567a39e72a3ec6ca66cf8b57186d (diff)
Fix lhtranslation
-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))