From eb1de8d5c9a5beaa58347d839e4666bdcea57c1e Mon Sep 17 00:00:00 2001 From: spoob Date: Wed, 16 Dec 2009 14:51:31 +0100 Subject: Fixed Rapidshare Traffic Share Bug --- config | 1 - module/plugins/RapidshareCom.py | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config b/config index 03307f1a4..5093f18f2 100644 --- a/config +++ b/config @@ -20,7 +20,6 @@ adress = None port = None pw = None - [log] file_log = True log_folder = Logs diff --git a/module/plugins/RapidshareCom.py b/module/plugins/RapidshareCom.py index 3e3934888..ee1d84a75 100644 --- a/module/plugins/RapidshareCom.py +++ b/module/plugins/RapidshareCom.py @@ -30,7 +30,6 @@ class RapidshareCom(Plugin): self.url = self.parent.url self.read_config() if self.config['premium']: - self.multi_dl = True else: self.multi_dl = False @@ -44,7 +43,6 @@ class RapidshareCom(Plugin): self.download_api_data() if self.api_data["status"] == "1": - pyfile.status.filename = self.get_file_name() if self.config["premium"]: self.logger.info("Rapidshare: Use Premium Account (%sGB left)" % (self.props["premkbleft"]/1000000)) @@ -60,6 +58,11 @@ class RapidshareCom(Plugin): pyfile.status.url = self.get_file_url() + return True + elif self.api_data["status"] == "2": + self.logger.info("Rapidshare: Traffic Share (direct download)") + pyfile.status.filename = self.get_file_name() + pyfile.status.url = self.parent.url return True else: raise Exception, "The file was not found on the server." -- cgit v1.2.3