From 5f1c75fd93af98a5d870424971f0383ac4614058 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 29 May 2009 00:16:22 +0200 Subject: socket server basic --- Plugins/RapidshareCom.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Plugins/RapidshareCom.py') diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py index 3af2333c8..ebe526903 100644 --- a/Plugins/RapidshareCom.py +++ b/Plugins/RapidshareCom.py @@ -28,7 +28,7 @@ class RapidshareCom(Plugin): self.multi_dl = False self.read_config() - if self.config['premium'] == "True": + if self.config['premium']: self.multi_dl = True def set_parent_status(self): @@ -65,7 +65,7 @@ class RapidshareCom(Plugin): def get_wait_time(self): - if self.config['premium'] == "True": + if self.config['premium']: self.time_plus_wait = 0 return True @@ -101,7 +101,7 @@ class RapidshareCom(Plugin): def get_file_url(self): """ returns the absolute downloadable filepath """ - if self.config['premium'] == "True": + if self.config['premium']: return self.parent.url if self.html[1] == None: @@ -126,7 +126,7 @@ class RapidshareCom(Plugin): def proceed(self, url, location): - if self.config['premium'] == "True": + if self.config['premium']: self.req.add_auth(self.config['username'], self.config['password']) self.req.download(url, location) -- cgit v1.2.3