diff options
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): |