summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/DlFreeFr.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/DlFreeFr.py')
-rw-r--r--module/plugins/hoster/DlFreeFr.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/module/plugins/hoster/DlFreeFr.py b/module/plugins/hoster/DlFreeFr.py
index f0a8aa933..7bebb62b5 100644
--- a/module/plugins/hoster/DlFreeFr.py
+++ b/module/plugins/hoster/DlFreeFr.py
@@ -16,9 +16,10 @@ class CustomBrowser(Browser):
def load(self, *args, **kwargs):
post = kwargs.get("post")
- if not post:
- if len(args) > 2:
- post = args[2]
+
+ if post is None and len(args) > 2:
+ post = args[2]
+
if post:
self.http.c.setopt(pycurl.FOLLOWLOCATION, 0)
self.http.c.setopt(pycurl.POST, 1)
@@ -27,6 +28,7 @@ class CustomBrowser(Browser):
self.http.c.setopt(pycurl.FOLLOWLOCATION, 1)
self.http.c.setopt(pycurl.POST, 0)
self.http.c.setopt(pycurl.CUSTOMREQUEST, "GET")
+
return Browser.load(self, *args, **kwargs)