From 5d4443c144323bef78faa354d9aba47e672a7327 Mon Sep 17 00:00:00 2001 From: Radek Senfeld Date: Fri, 14 Nov 2014 01:47:39 +0100 Subject: [UlozTo] Fixed hoster and account Conflicts: pyload/plugins/account/UlozTo.py --- pyload/plugins/account/UlozTo.py | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'pyload/plugins/account/UlozTo.py') diff --git a/pyload/plugins/account/UlozTo.py b/pyload/plugins/account/UlozTo.py index 105a962cd..fefc334e9 100644 --- a/pyload/plugins/account/UlozTo.py +++ b/pyload/plugins/account/UlozTo.py @@ -2,13 +2,15 @@ import re +from urlparse import urljoin + from pyload.plugins.base.Account import Account class UlozTo(Account): __name__ = "UlozTo" __type__ = "account" - __version__ = "0.06" + __version__ = "0.07" __description__ = """Uloz.to account plugin""" __license__ = "GPLv3" @@ -20,9 +22,10 @@ class UlozTo(Account): def loadAccountInfo(self, user, req): - #this cookie gets lost somehow after each request - self.phpsessid = req.cj.getCookie("ULOSESSID") + self.phpsessid = req.cj.getCookie("ULOSESSID") #@NOTE: this cookie gets lost somehow after each request + html = req.load("http://www.ulozto.net/", decode=True) + req.cj.setCookie(".ulozto.net", "ULOSESSID", self.phpsessid) m = re.search(self.TRAFFIC_LEFT_PATTERN, html) @@ -37,12 +40,13 @@ class UlozTo(Account): action = re.findall('
' in html: self.wrongPassword() -- cgit v1.2.3