From dea05ac7a4cd2bddcf2ce8311601dbd1f9add010 Mon Sep 17 00:00:00 2001 From: Richard Lindner Date: Sun, 20 Dec 2015 09:13:22 +0100 Subject: Same fix better implementation --- module/plugins/hoster/OneFichierCom.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'module') 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'Click here to download the file' 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'Click here to download the file', 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): -- cgit v1.2.3