diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-05-03 01:45:57 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-05-03 01:45:57 +0200 |
commit | 52c63554190b8421c6f2db72d490f50364a2e23d (patch) | |
tree | 6a7b322ef9e2d22dd8202f05caf5d98340391e2d | |
parent | 5a87a89ac8f354522595ebbccf5ac673389c2a18 (diff) |
Fix url missing domain name in list chapters for readm
-rwxr-xr-x | plugins/readm.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/readm.py b/plugins/readm.py index d2d360a..3101587 100755 --- a/plugins/readm.py +++ b/plugins/readm.py @@ -69,6 +69,7 @@ def list_chapters(url, chapter_list_input): for element in tree.xpath('//div[@class="episodes-list"]//a'): element_text = element.text.strip() url = element.attrib.get("href").strip() + url = "https://readm.org" + url if element_text.lower().replace(" ", "") in seen_titles or url in seen_urls: break chapters.append({ "name": element_text, "url": url }) |