From 4a6cfe415a0d362bf30f22fac16b732195f97232 Mon Sep 17 00:00:00 2001 From: Jeix Date: Fri, 11 Feb 2011 20:17:20 +0100 Subject: GUI updates, closed #181, updated XDCC, fixed FileSonic --- module/plugins/hoster/FilesonicCom.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/FilesonicCom.py') diff --git a/module/plugins/hoster/FilesonicCom.py b/module/plugins/hoster/FilesonicCom.py index 5e2c10219..5bd38655a 100644 --- a/module/plugins/hoster/FilesonicCom.py +++ b/module/plugins/hoster/FilesonicCom.py @@ -11,7 +11,7 @@ class FilesonicCom(Hoster): __name__ = "FilesonicCom" __type__ = "hoster" __pattern__ = r"http://[\w\.]*?(sharingmatrix|filesonic)\.(com|net)/.*?file/([0-9]+(/.+)?|[a-z0-9]+/[0-9]+(/.+)?)" - __version__ = "0.1" + __version__ = "0.2" __description__ = """FilesonicCom und Sharingmatrix Download Hoster""" __author_name__ = ("jeix") __author_mail__ = ("jeix@hasnomail.de") @@ -25,11 +25,14 @@ class FilesonicCom(Hoster): self.url = self.convertURL(self.pyfile.url) self.html = self.load(self.url, cookies=False) - name = re.search(r'Filename:\s*\s*(.*?)<', self.html) + name = re.search(r'Download (.*?) for free on Filesonic.com', self.html) if name: self.pyfile.name = name.group(1) else: self.offline() + + if 'The page you are trying to access was not found.' in self.html: + self.offline() if self.account: self.download(pyfile.url) -- cgit v1.2.3