summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RapidshareCom.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2010-04-14 14:31:54 +0200
committerGravatar spoob <spoob@gmx.de> 2010-04-14 14:31:54 +0200
commitc7233c3c1301b47c2574b5baec268ca98529fde7 (patch)
treef73cd97f1266f342e97e5d4762d2a2ebe7976ac0 /module/plugins/hoster/RapidshareCom.py
parentFixed Zippyshare (diff)
downloadpyload-c7233c3c1301b47c2574b5baec268ca98529fde7.tar.xz
Fixed Rapidshare
Diffstat (limited to 'module/plugins/hoster/RapidshareCom.py')
-rw-r--r--module/plugins/hoster/RapidshareCom.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/module/plugins/hoster/RapidshareCom.py b/module/plugins/hoster/RapidshareCom.py
index 506cee6c1..45b078275 100644
--- a/module/plugins/hoster/RapidshareCom.py
+++ b/module/plugins/hoster/RapidshareCom.py
@@ -38,34 +38,33 @@ class RapidshareCom(Plugin):
self.start_dl = False
def prepare(self, thread):
- pyfile = self.parent
self.req.clear_cookies()
self.no_slots = True
self.want_reconnect = False
self.download_api_data()
if self.api_data["status"] == "1":
- pyfile.status.filename = self.get_file_name()
+ self.pyfile.status.filename = self.get_file_name()
if self.config["premium"]:
self.logger.info(_("Rapidshare: Use Premium Account (%sGB left)") % (self.props["premkbleft"]/1000000))
- pyfile.status.url = self.parent.url
+ self.pyfile.status.url = self.parent.url
return True
self.download_html()
while self.no_slots:
self.get_wait_time()
- pyfile.status.waituntil = self.time_plus_wait
- pyfile.status.want_reconnect = self.want_reconnect
- thread.wait(pyfile)
+ self.pyfile.status.waituntil = self.time_plus_wait
+ self.pyfile.status.want_reconnect = self.want_reconnect
+ thread.wait(self.pyfile)
- pyfile.status.url = self.get_file_url()
+ self.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
+ self.pyfile.status.filename = self.get_file_name()
+ self.pyfile.status.url = self.parent.url
return True
else:
return False