diff options
author | spoob <spoob@gmx.de> | 2009-05-28 23:15:10 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-05-28 23:15:10 +0200 |
commit | a1057b7cb56c45b5086d9c7bcdac2cbec1d508b2 (patch) | |
tree | 8942dbbbc72108c0892b0db941cffe2fb191c084 /Plugins/RapidshareCom.py | |
parent | rapidshare premium fix (diff) | |
download | pyload-a1057b7cb56c45b5086d9c7bcdac2cbec1d508b2.tar.xz |
premium and free download works with rapidshare
Diffstat (limited to 'Plugins/RapidshareCom.py')
-rw-r--r-- | Plugins/RapidshareCom.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py index df746cc3b..3af2333c8 100644 --- a/Plugins/RapidshareCom.py +++ b/Plugins/RapidshareCom.py @@ -28,10 +28,9 @@ class RapidshareCom(Plugin): self.multi_dl = False self.read_config() - - if bool(self.config['premium']): + if self.config['premium'] == "True": self.multi_dl = True - + def set_parent_status(self): """ sets all available Statusinfos about a File in self.parent.status """ @@ -64,10 +63,9 @@ class RapidshareCom(Plugin): self.html_old = time() self.get_wait_time() - def get_wait_time(self): - if bool(self.config['premium']): + if self.config['premium'] == "True": self.time_plus_wait = 0 return True @@ -103,7 +101,7 @@ class RapidshareCom(Plugin): def get_file_url(self): """ returns the absolute downloadable filepath """ - if bool(self.config['premium']): + if self.config['premium'] == "True": return self.parent.url if self.html[1] == None: @@ -128,8 +126,7 @@ class RapidshareCom(Plugin): def proceed(self, url, location): - if bool(self.config['premium']): - self.req.add_auth(self.config['user'], self.config['pw']) - + if self.config['premium'] == "True": + self.req.add_auth(self.config['username'], self.config['password']) self.req.download(url, location) |