summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/OneFichierCom.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py
index 53ebaa759..bd3a44bf5 100644
--- a/module/plugins/hoster/OneFichierCom.py
+++ b/module/plugins/hoster/OneFichierCom.py
@@ -96,7 +96,14 @@ class OneFichierCom(SimpleHoster):
inputs['submit'] = "Download"
- self.download(url, post=inputs, disposition=False) #@TODO: Remove disposition in 0.4.10
+ 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")
+
def handle_premium(self, pyfile):