From 8495247349da79acf01fbfcc0aacc1c0dd2d3e54 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 1 Jul 2022 23:48:05 +0200 Subject: Mangatown: use referer header to fix permission issue when downloading images --- plugins/mangatown.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/mangatown.py') 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(): -- cgit v1.2.3