diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-28 16:20:49 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-28 16:20:49 +0200 |
commit | 51dfdc552fd474f20f0768818584e8b3c78a5e30 (patch) | |
tree | c98310a97e88b5a276a9258afbd4e19eab701a06 | |
parent | missing plugin config (diff) | |
download | pyload-51dfdc552fd474f20f0768818584e8b3c78a5e30.tar.xz |
rapidshare premium fix
-rw-r--r-- | Plugins/RapidshareCom.py | 11 | ||||
-rw-r--r-- | pluginconfig | 6 |
2 files changed, 8 insertions, 9 deletions
diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py index 0f4f0528c..df746cc3b 100644 --- a/Plugins/RapidshareCom.py +++ b/Plugins/RapidshareCom.py @@ -29,9 +29,8 @@ class RapidshareCom(Plugin): self.read_config() - if self.config['premium']: + if bool(self.config['premium']): self.multi_dl = True - def set_parent_status(self): """ sets all available Statusinfos about a File in self.parent.status @@ -68,7 +67,7 @@ class RapidshareCom(Plugin): def get_wait_time(self): - if self.config['premium'] == "True": + if bool(self.config['premium']): self.time_plus_wait = 0 return True @@ -104,7 +103,7 @@ class RapidshareCom(Plugin): def get_file_url(self): """ returns the absolute downloadable filepath """ - if self.config['premium'] == True: + if bool(self.config['premium']): return self.parent.url if self.html[1] == None: @@ -117,7 +116,7 @@ class RapidshareCom(Plugin): return re.search(file_url_pattern, self.html[1]).group(1) else: return False - + def get_file_name(self): if self.html[1] == None: self.download_serverhtml() @@ -129,7 +128,7 @@ class RapidshareCom(Plugin): def proceed(self, url, location): - if self.config['premium'] == True: + if bool(self.config['premium']): self.req.add_auth(self.config['user'], self.config['pw']) diff --git a/pluginconfig b/pluginconfig index cb8b7ab01..72aaf1de2 100644 --- a/pluginconfig +++ b/pluginconfig @@ -1,4 +1,4 @@ [RapidshareCom] -premium = False -user = user -pw = pw
\ No newline at end of file +premium = True +user = 8732085 +pw = yEEaKRC6
\ No newline at end of file |