diff options
Diffstat (limited to 'Py_Load_File.py')
-rw-r--r-- | Py_Load_File.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Py_Load_File.py b/Py_Load_File.py index dc1c2ba75..157d51bfd 100644 --- a/Py_Load_File.py +++ b/Py_Load_File.py @@ -19,9 +19,10 @@ class PyLoadFile: def prepareDownload(self): - self.status.exists = True #self.plugin.file_exists() - self.status.filename = self.plugin.get_file_name() - self.status.waituntil = self.plugin.time_plus_wait - self.status.url = self.plugin.get_file_url() - self.status.want_reconnect = self.plugin.want_reconnect + self.status.exists = self.plugin.file_exists() + if self.status.exists: + self.status.filename = self.plugin.get_file_name() + self.status.waituntil = self.plugin.time_plus_wait + self.status.url = self.plugin.get_file_url() + self.status.want_reconnect = self.plugin.want_reconnect |