diff options
author | Richard Lindner <rlindner81@gmail.com> | 2015-12-20 09:13:22 +0100 |
---|---|---|
committer | Richard Lindner <rlindner81@gmail.com> | 2015-12-20 09:13:22 +0100 |
commit | dea05ac7a4cd2bddcf2ce8311601dbd1f9add010 (patch) | |
tree | c086efd854b66ac6712eb585b98a3a9d0a6bb0a3 /module | |
parent | Fix: OneFichier free download had a new link to follow (diff) | |
download | pyload-dea05ac7a4cd2bddcf2ce8311601dbd1f9add010.tar.xz |
Same fix better implementation
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/OneFichierCom.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py index bd3a44bf5..a40278477 100644 --- a/module/plugins/hoster/OneFichierCom.py +++ b/module/plugins/hoster/OneFichierCom.py @@ -41,6 +41,7 @@ class OneFichierCom(SimpleHoster): OFFLINE_PATTERN = r'File not found !\s*<' WAIT_PATTERN = r'>You must wait \d+ minutes' + LINK_FREE_PATTERN = r'<a href="(.+?)".*?>Click here to download the file</a>' def setup(self): self.multiDL = self.premium @@ -97,13 +98,7 @@ class OneFichierCom(SimpleHoster): inputs['submit'] = "Download" self.data = self.load(url, post=inputs) - match = re.search(r'<a href="(.+?)".*?>Click here to download the file</a>', self.data) - if match: - url = match.group(1) - self.download(url) - else: - self.log_error("Could not find download link") - + return super(OneFichierCom, self).handle_free(pyfile) def handle_premium(self, pyfile): |