diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-07-01 23:48:05 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-07-01 23:48:05 +0200 |
commit | 8495247349da79acf01fbfcc0aacc1c0dd2d3e54 (patch) | |
tree | 902fe6225519d1b8184c5a5b63a6f93d4461aa65 | |
parent | 17059607d506d25fff4d654146a5c7e9b663cc76 (diff) |
Mangatown: use referer header to fix permission issue when downloading images
-rw-r--r-- | README.md | 4 | ||||
-rwxr-xr-x | plugins/mangatown.py | 3 |
2 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ # AutoMedia -Automatically track new releases of media and download them. Currently works with rss for torrent sites (`nyaa.si`) and a for these manga sites: `manganelo.com`, `manganelos.com`, `mangatown.com`, `mangakakalot.com`, `mangakatana.com`, `lhtranslation.net`, `readm.org`, `mangaplus.shueisha.co.jp` and `mangadex.org`. +Automatically track new releases of media and download them. Currently works with rss for torrent sites (`nyaa.si`) and for these manga sites: `manganelo.com`, `manganelos.com`, `mangatown.com`, `mangakakalot.com`, `mangakatana.com`, `lhtranslation.net`, `readm.org`, `mangaplus.shueisha.co.jp` and `mangadex.org`. A notification is shown on the screen when a download finishes (if notify-send is installed). ## Installation @@ -14,6 +14,8 @@ It is recommended to create a new directory specifically for automedia sync, oth Run automedia without any options to see all options. If `$HOME/.config/automedia/download_finished.sh` exists then it's called when a download finishes. The first argument is either `html` or `rss` and the second argument is the full path to the rss file (anime episode video) or html directory (manga chapter). + +An easy way to track manga is to use [QuickMedia](https://git.dec05eba.com/QuickMedia/about/) and pressing `Ctrl+T` in any of the manga plugins when selecting a manga and chapter. # Requirements ## System curl, transmission-cli, notify-send (optional) diff --git a/plugins/mangatown.py b/plugins/mangatown.py index 29a58ab..fe000f9 100755 --- a/plugins/mangatown.py +++ b/plugins/mangatown.py @@ -9,7 +9,8 @@ import json from lxml import etree headers = { - 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" + 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36", + 'Referer': "https://www.mangatown.com/" } def usage(): |