diff options
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r-- | module/plugins/Plugin.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index bfe10845d..00cb2401f 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -220,7 +220,8 @@ class Plugin(object): content = self.load(url, get=get, post=post, cookies=cookies) - temp = open(join("tmp","tmpCaptcha_%s" % self.__name__ ), "wb") + id = ("%.2f" % time())[-6:] + temp = open(join("tmp","tmpCaptcha_%s_%s" % (id, self.__name__)), "wb") temp.write(content) temp.close() @@ -279,6 +280,8 @@ class Plugin(object): self.pyfile.setStatus("downloading") + self.pyfile.size = 0 + download_folder = self.config['general']['download_folder'].decode("utf8") location = join(download_folder.encode(sys.getfilesystemencoding(), "replace"), self.pyfile.package().folder.replace(":", "").encode(sys.getfilesystemencoding(), "replace")) # remove : for win compability |