diff options
author | mkaay <mkaay@mkaay.de> | 2010-05-07 15:39:28 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-05-07 15:39:28 +0200 |
commit | f5a65922f5272c8cb5630d462725534e7d72d7db (patch) | |
tree | d7b4c01cea505911531b5ac944d7483441a0b797 /module/plugins | |
parent | modified hookmanager (diff) | |
download | pyload-f5a65922f5272c8cb5630d462725534e7d72d7db.tar.xz |
better cookie handling, rapidshare fix
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/accounts/RapidshareCom.py | 6 | ||||
-rw-r--r-- | module/plugins/hoster/RapidshareCom.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/accounts/RapidshareCom.py b/module/plugins/accounts/RapidshareCom.py index bd1b944b3..f18fadd15 100644 --- a/module/plugins/accounts/RapidshareCom.py +++ b/module/plugins/accounts/RapidshareCom.py @@ -33,6 +33,6 @@ class RapidshareCom(Account): def login(self): for account in self.accounts: req = self.core.requestFactory.getRequest(self.__name__, account[0]) - html = req.load("http://ssl.rapidshare.com/cgi-bin/premiumzone.cgi", get={"login":account[0], "password":account[1]}, cookies=True) - with open("dump%s.html" % account[0], "w") as f: - f.write(html) + html = req.load("https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi", post={"login":account[0], "password":account[1], "uselandingpage":1}, cookies=True) + + diff --git a/module/plugins/hoster/RapidshareCom.py b/module/plugins/hoster/RapidshareCom.py index da38d4b3a..6f7283d2f 100644 --- a/module/plugins/hoster/RapidshareCom.py +++ b/module/plugins/hoster/RapidshareCom.py @@ -178,9 +178,9 @@ class RapidshareCom(Hoster): return self.url.split("/")[-1] def proceed(self, url, location): - #if self.config['premium']: - # data = self.account.getAccountData(self) - # self.req.add_auth(data[0], data[1]) + if self.config['premium']: + data = self.account.getAccountData(self) + self.req.add_auth(data[0], data[1]) self.download(url, location, cookies=True) def check_file(self, local_file): |