aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-03 01:45:57 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-03 01:45:57 +0200
commit52c63554190b8421c6f2db72d490f50364a2e23d (patch)
tree6a7b322ef9e2d22dd8202f05caf5d98340391e2d /plugins
parent5a87a89ac8f354522595ebbccf5ac673389c2a18 (diff)
Fix url missing domain name in list chapters for readm
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/readm.py1
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 })