summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Richard Lindner <rlindner81@gmail.com> 2015-12-20 09:13:22 +0100
committerGravatar Richard Lindner <rlindner81@gmail.com> 2015-12-20 09:13:22 +0100
commitdea05ac7a4cd2bddcf2ce8311601dbd1f9add010 (patch)
treec086efd854b66ac6712eb585b98a3a9d0a6bb0a3 /module/plugins
parentFix: OneFichier free download had a new link to follow (diff)
downloadpyload-dea05ac7a4cd2bddcf2ce8311601dbd1f9add010.tar.xz
Same fix better implementation
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/OneFichierCom.py9
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):