summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-08 00:30:48 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-08 00:30:48 +0200
commit0e9ba8a76e88ee98497db8dc7f25d8d160f10fa4 (patch)
tree4f84bf4fb927f14fab6a07514971497c06af7674 /module
parentNew __authors__ key replaces __author_name__ and __author_mail__ + Whitespace... (diff)
downloadpyload-0e9ba8a76e88ee98497db8dc7f25d8d160f10fa4.tar.xz
[XFSPAccount] Fix missing COOKIE typecheck
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/XFSPAccount.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/internal/XFSPAccount.py b/module/plugins/internal/XFSPAccount.py
index b2fb6179e..2cda54615 100644
--- a/module/plugins/internal/XFSPAccount.py
+++ b/module/plugins/internal/XFSPAccount.py
@@ -13,7 +13,7 @@ from module.utils import parseFileSize
class XFSPAccount(Account):
__name__ = "XFSPAccount"
__type__ = "account"
- __version__ = "0.09"
+ __version__ = "0.10"
__description__ = """XFileSharingPro base account plugin"""
__authors__ = [("zoidberg", "zoidberg@mujmail.cz"),
@@ -77,7 +77,8 @@ class XFSPAccount(Account):
def login(self, user, data, req):
- set_cookies(req.cj, self.COOKIES)
+ if isinstance(self.COOKIES, list):
+ set_cookies(req.cj, self.COOKIES)
url = urljoin(self.HOSTER_URL, "login.html")
html = req.load(url, decode=True)