aboutsummaryrefslogtreecommitdiff
path: root/plugins/mangatown.py
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-07-01 23:48:05 +0200
committerdec05eba <dec05eba@protonmail.com>2022-07-01 23:48:05 +0200
commit8495247349da79acf01fbfcc0aacc1c0dd2d3e54 (patch)
tree902fe6225519d1b8184c5a5b63a6f93d4461aa65 /plugins/mangatown.py
parent17059607d506d25fff4d654146a5c7e9b663cc76 (diff)
Mangatown: use referer header to fix permission issue when downloading images
Diffstat (limited to 'plugins/mangatown.py')
-rwxr-xr-xplugins/mangatown.py3
1 files changed, 2 insertions, 1 deletions
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():