aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-12-22 06:29:56 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:12:34 +0200
commiteaea516f1020a962ea97dd8faa7b98d708ad0237 (patch)
tree027a67fe9ef1dc844e5d365b73b55a445e99c795
parent1da1b0ffeccfd7361a0f3d7550fb43c5f3192d1c (diff)
Fix manganelo after site update
-rw-r--r--README.md2
-rwxr-xr-xplugins/manganelo.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 6c55c08..3da4a0a 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# AutoMedia
Automatically track new releases of media and download them. Currently works with rss for torrent sites (nyaa.si) and a few manga websites (see plugins directory).
-A notification is shown on the screen when a download finished (if notify-send is installed).
+A notification is shown on the screen when a download finishes (if notify-send is installed).
## Usage
Run automedia with `sync` option and keep it running to track media. You can then use `add` option to add new media to track.
Run automedia without any options to see all options.
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)