Rev3106, Cancel other part downloads when delete optional file
This commit is contained in:
parent
3f52f78af2
commit
807dc866e5
2 changed files with 6 additions and 1 deletions
|
@ -322,6 +322,11 @@ class ContentManagerPlugin(object):
|
|||
sha512 = file_info["sha512"]
|
||||
if sha512 in self.site.storage.piecefields:
|
||||
del self.site.storage.piecefields[sha512]
|
||||
|
||||
# Also remove other pieces of the file from download queue
|
||||
for key in self.site.bad_files.keys():
|
||||
if key.startswith(inner_path + "|"):
|
||||
del self.site.bad_files[key]
|
||||
return super(ContentManagerPlugin, self).optionalRemove(inner_path, hash, size)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue