diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-02-28 23:57:21 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:12:34 +0200 |
commit | 27634797e19622060180a3d972ffc69cc16217b3 (patch) | |
tree | 15c672e2953f931a743ae0c03f6ad18ad20e0ea4 /plugins | |
parent | 7c66ebea2c9164228a7e78d41e7f3f640ff8f4e0 (diff) |
Fix lhtranslation download script
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/lhtranslation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/lhtranslation.py b/plugins/lhtranslation.py index a90f579..9b29a47 100755 --- a/plugins/lhtranslation.py +++ b/plugins/lhtranslation.py @@ -61,7 +61,7 @@ def list_chapters(url, chapter_list_input): chapters = [] for element in tree.xpath("//div[@class='list-chapters']//a[@class='chapter']"): title = element.attrib.get("title").strip() - url = element.attrib.get("href").strip() + url = "https://lhtranslation.net/" + element.attrib.get("href").strip() if title.lower().replace(" ", "") in seen_titles or url in seen_urls: break chapters.append({ "name": title, "url": url }) |