summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 21:27:00 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 21:27:00 +0100
commit1c443921febd75050968bb37e7fc88e361c487a9 (patch)
treecf37a7480a7f61bb4d9fe40af0a3131eaf4a3f32 /module/plugins/internal
parent[FilecryptCc] ReCaptcha 2.0 support (diff)
downloadpyload-1c443921febd75050968bb37e7fc88e361c487a9.tar.xz
[XFSHoster] Code cosmetics
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/XFSHoster.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/internal/XFSHoster.py b/module/plugins/internal/XFSHoster.py
index f2168d0c7..4555e7b0f 100644
--- a/module/plugins/internal/XFSHoster.py
+++ b/module/plugins/internal/XFSHoster.py
@@ -73,9 +73,8 @@ class XFSHoster(SimpleHoster):
pattern = r'(https?://(www\.)?([^/]*?%s|\d+\.\d+\.\d+\.\d+)(\:\d+)?(/d/|(/files)?/\d+/\w+/).+?)["\'<]'
self.LINK_PATTERN = pattern % self.HOSTER_DOMAIN.replace('.', '\.')
- self.captcha = None
- self.errmsg = None
- self.passwords = self.getPassword().splitlines()
+ self.captcha = None
+ self.errmsg = None
super(XFSHoster, self).prepare()
@@ -271,8 +270,9 @@ class XFSHoster(SimpleHoster):
if 'op' in inputs:
if "password" in inputs:
- if self.passwords:
- inputs['password'] = self.passwords.pop(0)
+ password = self.getPassword()
+ if password:
+ inputs['password'] = password
else:
self.fail(_("Missing password"))