summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/XFSHoster.py
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-05-23 22:08:07 +0200
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-05-23 22:08:07 +0200
commitaba6250e9987b569966eb59608766169252a6d64 (patch)
tree5149e933373d02e6722c13dae824ff2c8c71a060 /module/plugins/internal/XFSHoster.py
parent[UpdateManager] fix #2472 (diff)
downloadpyload-aba6250e9987b569966eb59608766169252a6d64.tar.xz
fix #2474
Diffstat (limited to 'module/plugins/internal/XFSHoster.py')
-rw-r--r--module/plugins/internal/XFSHoster.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/module/plugins/internal/XFSHoster.py b/module/plugins/internal/XFSHoster.py
index d61b70e1a..96d4ab20b 100644
--- a/module/plugins/internal/XFSHoster.py
+++ b/module/plugins/internal/XFSHoster.py
@@ -207,6 +207,13 @@ class XFSHoster(SimpleHoster):
if wait_time < self.config.get('max_wait', 10) * 60:
self.handle_captcha(inputs)
self.wait()
+
+ else:
+ self.handle_captcha(inputs)
+
+ if 'referer' in inputs and len(inputs['referer']) == 0:
+ inputs['referer'] = self.pyfile.url
+
else:
inputs['referer'] = self.pyfile.url