From 2ed8bf528418d3ad95ab8e63c72e21837ea47ef9 Mon Sep 17 00:00:00 2001 From: spoob Date: Thu, 3 Sep 2009 21:46:13 +0200 Subject: Netload Premium Test --- Plugins/RapidshareCom.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'Plugins/RapidshareCom.py') diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py index a81affd90..731554f87 100644 --- a/Plugins/RapidshareCom.py +++ b/Plugins/RapidshareCom.py @@ -45,12 +45,16 @@ class RapidshareCom(Plugin): self.download_html() - pyfile.status.filename = self.get_file_name() - pyfile.status.exists = self.file_exists() - + if not pyfile.status.exists: raise Exception, "The file was not found on the server." + + pyfile.status.filename = self.get_file_name() + + if self.config['premium']: + pyfile.status.url = self.parent.url + return True self.download_serverhtml() pyfile.status.waituntil = self.time_plus_wait @@ -78,10 +82,6 @@ class RapidshareCom(Plugin): def download_serverhtml(self): """downloads html with the important informations """ - - if self.config['premium']: - return False - file_server_url = re.search(r"