diff options
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) |