diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-09-10 18:07:46 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-09-10 18:07:46 +0200 |
commit | a28dfef56d2683f05121204415b71d2694f4dc58 (patch) | |
tree | 4fb39ff152309263d81580ded70351141721d691 | |
parent | e38d3985e806bd37bd124124afe3a444b4dd0cbb (diff) |
Only show merged mangakatana chapters
-rwxr-xr-x | plugins/mangakatana.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mangakatana.py b/plugins/mangakatana.py index 640dfed..e259302 100755 --- a/plugins/mangakatana.py +++ b/plugins/mangakatana.py @@ -64,7 +64,7 @@ def list_chapters(url, chapter_list_input): tree = etree.HTML(response.text) chapters = [] - for element in tree.xpath('//div[@class="chapters"]//div[@class="chapter"]//a'): + for element in tree.xpath('//div[@class="chapters"]//div[@class="chapter"]//a[1]'): element_text = element.text.strip().replace("/", "_") url = element.attrib.get("href").strip() if element_text.lower().replace(" ", "") in seen_titles or url in seen_urls: |