diff options
author | Jeix <devnull@localhost> | 2011-02-11 20:17:20 +0100 |
---|---|---|
committer | Jeix <devnull@localhost> | 2011-02-11 20:17:20 +0100 |
commit | 4a6cfe415a0d362bf30f22fac16b732195f97232 (patch) | |
tree | f90318302830b967b4734fc1e7d82eda6d52a8fc /module/plugins/hoster/FilesonicCom.py | |
parent | socket code fixes (diff) | |
download | pyload-4a6cfe415a0d362bf30f22fac16b732195f97232.tar.xz |
GUI updates, closed #181, updated XDCC, fixed FileSonic
Diffstat (limited to 'module/plugins/hoster/FilesonicCom.py')
-rw-r--r-- | module/plugins/hoster/FilesonicCom.py | 7 |
1 files changed, 5 insertions, 2 deletions
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*</span>\s*<strong>(.*?)<', self.html)
+ name = re.search(r'<title>Download (.*?) for free on Filesonic.com</title>', 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)
|