From cf8fea4179a673ffe2ec50de3a5d948a61f849aa Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 27 Jun 2011 19:41:03 +0200 Subject: Shareonline, zshare fix, testing __slots__ attribute --- module/plugins/hoster/ZShareNet.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'module/plugins/hoster/ZShareNet.py') diff --git a/module/plugins/hoster/ZShareNet.py b/module/plugins/hoster/ZShareNet.py index d3453ee5e..6ef456d97 100644 --- a/module/plugins/hoster/ZShareNet.py +++ b/module/plugins/hoster/ZShareNet.py @@ -11,9 +11,9 @@ class ZShareNet(Hoster): __name__ = "ZShareNet" __type__ = "hoster" __pattern__ = r"http://[\w\.]*?zshare\.net/(download|video|image|audio|flash)/.*" - __version__ = "0.1" + __version__ = "0.2" __description__ = """ZShareNet Download Hoster""" - __author_name__ = ("espes") + __author_name__ = ("espes","Cptn Sandwich") def setup(self): self.multiDL = False @@ -22,6 +22,8 @@ class ZShareNet(Hoster): def process(self, pyfile): self.pyfile = pyfile + self.pyfile.url = re.sub("(video|image|audio|flash)","download",self.pyfile.url) + self.html = self.load(pyfile.url) if "File Not Found" in self.html: self.offline() @@ -65,4 +67,4 @@ class ZShareNet(Hoster): if check == "unav": self.fail("Plugin defect") elif check == "404": - self.offline() \ No newline at end of file + self.offline() -- cgit v1.2.3