Dolda2000 GitWeb
/
automanga.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added clen attribute to imgstreams.
[automanga.git]
/
manga
/
mangafox.py
diff --git
a/manga/mangafox.py
b/manga/mangafox.py
index
339ed5e
..
572853c
100644
(file)
--- a/
manga/mangafox.py
+++ b/
manga/mangafox.py
@@
-7,6
+7,7
@@
class imgstream(lib.imgstream):
def __init__(self, url):
self.bk = urllib.urlopen(url)
self.ctype = self.bk.info()["Content-Type"]
def __init__(self, url):
self.bk = urllib.urlopen(url)
self.ctype = self.bk.info()["Content-Type"]
+ self.clen = int(self.bk.info()["Content-Length"])
def fileno(self):
return self.bk.fileno()
def fileno(self):
return self.bk.fileno()