Added a fileno function on imgstreams, for polling.
[automanga.git] / manga / mangafox.py
index 8c23630..339ed5e 100644 (file)
@@ -8,6 +8,9 @@ class imgstream(lib.imgstream):
         self.bk = urllib.urlopen(url)
         self.ctype = self.bk.info()["Content-Type"]
 
+    def fileno(self):
+        return self.bk.fileno()
+
     def close(self):
         self.bk.close()
 
@@ -152,7 +155,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)))