aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xplugins/mangakatana.py2
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: