diff options
author | spoob <spoob@gmx.de> | 2010-04-14 14:31:54 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2010-04-14 14:31:54 +0200 |
commit | c7233c3c1301b47c2574b5baec268ca98529fde7 (patch) | |
tree | f73cd97f1266f342e97e5d4762d2a2ebe7976ac0 /module/plugins/hoster/UploadedTo.py | |
parent | Fixed Zippyshare (diff) | |
download | pyload-c7233c3c1301b47c2574b5baec268ca98529fde7.tar.xz |
Fixed Rapidshare
Diffstat (limited to 'module/plugins/hoster/UploadedTo.py')
-rw-r--r-- | module/plugins/hoster/UploadedTo.py | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index ae9ed0b14..8020b2ba2 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -32,38 +32,36 @@ class UploadedTo(Plugin): self.start_dl = False - def prepare(self, thread): - pyfile = self.parent - + def prepare(self, thread): self.want_reconnect = False tries = 0 - while not pyfile.status.url: + while not self.pyfile.status.url: self.req.clear_cookies() self.download_html() - pyfile.status.exists = self.file_exists() + self.pyfile.status.exists = self.file_exists() - if not pyfile.status.exists: + if not self.pyfile.status.exists: return False self.download_api_data() - pyfile.status.filename = self.get_file_name() + self.pyfile.status.filename = self.get_file_name() if self.config['premium']: - pyfile.status.url = self.parent.url + self.pyfile.status.url = self.parent.url return True self.get_waiting_time() - pyfile.status.waituntil = self.time_plus_wait - pyfile.status.url = self.get_file_url() - pyfile.status.want_reconnect = self.want_reconnect + self.pyfile.status.waituntil = self.time_plus_wait + self.pyfile.status.url = self.get_file_url() + self.pyfile.status.want_reconnect = self.want_reconnect thread.wait(self.parent) - pyfile.status.filename = self.get_file_name() + self.pyfile.status.filename = self.get_file_name() tries += 1 if tries > 5: |