Moved the mangaview functionality directly into the reader.
[automanga.git] / manga / mangafox.py
index 8c23630..572853c 100644 (file)
@@ -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)))