Dolda2000 GitWeb
/
automanga.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use "standard" user-agent for Batoto.
[automanga.git]
/
manga
/
lib.py
diff --git
a/manga/lib.py
b/manga/lib.py
index
c0a9f30
..
54bcb77
100644
(file)
--- a/
manga/lib.py
+++ b/
manga/lib.py
@@
-160,7
+160,8
@@
class stdimgstream(imgstream):
def __init__(self, url):
import urllib.request
- self.bk = urllib.request.urlopen(url)
+ req = urllib.request.Request(url, headers={"User-Agent": "automanga/1"})
+ self.bk = urllib.request.urlopen(req)
ok = False
try:
if self.bk.getcode() != 200: