From eaea516f1020a962ea97dd8faa7b98d708ad0237 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 22 Dec 2019 06:29:56 +0100 Subject: Fix manganelo after site update --- plugins/manganelo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/manganelo.py') diff --git a/plugins/manganelo.py b/plugins/manganelo.py index f5ae49f..12813a1 100755 --- a/plugins/manganelo.py +++ b/plugins/manganelo.py @@ -50,7 +50,7 @@ def list_chapters(url, latest): tree = etree.HTML(response.text) chapters = [] - for element in tree.xpath('//div[@class="chapter-list"]//a'): + for element in tree.xpath('//ul[@class="row-content-chapter"]//a'): element_text = element.text.strip() if latest and element_text == latest: break @@ -69,7 +69,7 @@ def download_chapter(url, download_dir): tree = etree.HTML(response.text) img_number = 1 - for image_source in tree.xpath('//div[@id="vungdoc"]/img/@src'): + for image_source in tree.xpath('//div[@class="container-chapter-reader"]/img/@src'): ext = image_source[image_source.rfind("."):] image_name = str(img_number) + ext image_path = os.path.join(download_dir, image_name) -- cgit v1.2.3