diff options
author | mkaay <mkaay@mkaay.de> | 2009-12-23 00:04:36 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-12-23 00:04:36 +0100 |
commit | a5ff0482ede8bd7bd932482887f2f7cdae5039d9 (patch) | |
tree | 0d59800acd09c72ddb9c1e360d6a9c065cf184b7 /module/file_list.py | |
parent | more docstrings, small design changes (diff) | |
download | pyload-a5ff0482ede8bd7bd932482887f2f7cdae5039d9.tar.xz |
core: downloadlimit is not far away ;) gui: restart download action
Diffstat (limited to 'module/file_list.py')
-rw-r--r-- | module/file_list.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/module/file_list.py b/module/file_list.py index 1d3b1a68f..f156e2c0d 100644 --- a/module/file_list.py +++ b/module/file_list.py @@ -350,6 +350,15 @@ class File_List(object): pyfile.package = pypack pypack.files.append(pyfile) packager.file_list.data[key][n] = pypack + + def resetFileStatus(packager, fileid): + packager.file_list.lock.acquire() + try: + key, n, pyfile, pypack, pid = packager._getFileFromID(fileid) + pyfile.init() + pyfile.status.type = None + finally: + packager.file_list.lock.release() #oooops, duplicate? def removeFileFromPackage(packager, id, pid): @@ -380,6 +389,9 @@ class PyLoadFile(): self.core = file_list.core self.package = None self.filename = "n/a" + self.init() + + def init(self): self.active = False pluginName = self._get_my_plugin() if pluginName: |