From 52c63554190b8421c6f2db72d490f50364a2e23d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 3 May 2021 01:45:57 +0200 Subject: Fix url missing domain name in list chapters for readm --- plugins/readm.py | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') 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 }) -- cgit v1.2.3