summaryrefslogtreecommitdiffstats
path: root/Plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-28 16:20:49 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-28 16:20:49 +0200
commit51dfdc552fd474f20f0768818584e8b3c78a5e30 (patch)
treec98310a97e88b5a276a9258afbd4e19eab701a06 /Plugins
parentmissing plugin config (diff)
downloadpyload-51dfdc552fd474f20f0768818584e8b3c78a5e30.tar.xz
rapidshare premium fix
Diffstat (limited to 'Plugins')
-rw-r--r--Plugins/RapidshareCom.py11
1 files changed, 5 insertions, 6 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'])