diff options
author | 2015-05-18 08:53:40 +0200 | |
---|---|---|
committer | 2015-05-18 08:53:40 +0200 | |
commit | d86120df4f413c309ec87a3bc1ae7bd63d399e7b (patch) | |
tree | bf4189576dd1f63301499637502f83901d965bea /module/plugins/internal/XFSAccount.py | |
parent | [SimpleHoster] Fix https://github.com/pyload/pyload/issues/1421 (diff) | |
download | pyload-d86120df4f413c309ec87a3bc1ae7bd63d399e7b.tar.xz |
[XFSAccount] Fix https://github.com/pyload/pyload/issues/1420
Diffstat (limited to 'module/plugins/internal/XFSAccount.py')
-rw-r--r-- | module/plugins/internal/XFSAccount.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/module/plugins/internal/XFSAccount.py b/module/plugins/internal/XFSAccount.py index 41e1bde4d..e619cb038 100644 --- a/module/plugins/internal/XFSAccount.py +++ b/module/plugins/internal/XFSAccount.py @@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import parseHtmlForm, set_cookies class XFSAccount(Account): __name__ = "XFSAccount" __type__ = "account" - __version__ = "0.36" + __version__ = "0.37" __description__ = """XFileSharing account plugin""" __license__ = "GPLv3" @@ -170,9 +170,12 @@ class XFSAccount(Account): inputs.update({'login' : user, 'password': data['password']}) - if not action: - action = self.HOSTER_URL - html = req.load(action, post=inputs, decode=True) + if action: + url = urlparse.urljoin("http://", action) + else: + url = self.HOSTER_URL + + html = req.load(url, post=inputs, decode=True) if re.search(self.LOGIN_FAIL_PATTERN, html): self.wrongPassword() |