X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=manga%2Fmangafox.py;h=572853c82b5cb1dcd0f8444735472fb22ded80c9;hb=9948db89162b12bd94971dbad4b0f765dd1b47f5;hp=8c23630c42a43b1419581ec9150b0eb394272c05;hpb=46b3b90eef4007f3f4e871afd4854f7a06c8bfc8;p=automanga.git diff --git a/manga/mangafox.py b/manga/mangafox.py index 8c23630..572853c 100644 --- a/manga/mangafox.py +++ b/manga/mangafox.py @@ -7,6 +7,10 @@ class imgstream(lib.imgstream): 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 close(self): self.bk.close() @@ -152,7 +156,7 @@ def libalphacmp(a, b): class library(lib.library): def __init__(self): - self.base = "http://www.mangafox.com/" + self.base = "http://mangafox.me/" def alphapage(self, pno): page = soup(htcache.fetch(self.base + ("directory/%i.htm?az" % pno)))