summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/internal/XFSHoster.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/internal/XFSHoster.py')
-rw-r--r--pyload/plugins/internal/XFSHoster.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/pyload/plugins/internal/XFSHoster.py b/pyload/plugins/internal/XFSHoster.py
index 1f9671402..8479be03f 100644
--- a/pyload/plugins/internal/XFSHoster.py
+++ b/pyload/plugins/internal/XFSHoster.py
@@ -5,8 +5,6 @@ import re
from random import random
from time import sleep
-from pycurl import FOLLOWLOCATION, LOW_SPEED_TIME
-
from pyload.plugins.hoster.UnrestrictLi import secondsToMidnight
from pyload.plugins.internal.captcha import ReCaptcha, SolveMedia
from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
@@ -119,11 +117,7 @@ class XFSHoster(SimpleHoster):
data = self.getPostParameters()
- self.req.http.c.setopt(FOLLOWLOCATION, 0)
-
- self.html = self.load(self.pyfile.url, post=data, ref=True, decode=True)
-
- self.req.http.c.setopt(FOLLOWLOCATION, 1)
+ self.html = self.load(self.pyfile.url, post=data, ref=True, decode=True, follow_location=False)
m = re.search(r'Location\s*:\s*(.+)', self.req.http.header, re.I)
if m and not "op=" in m.group(1):