cleanup download, download from local nodes if offline, cache per download users syndb only at startup

This commit is contained in:
j 2016-02-25 12:49:53 +05:30
commit 988d030f92
4 changed files with 45 additions and 42 deletions

View file

@ -565,6 +565,7 @@ class Item(db.Model):
if state.downloads and self.id in state.downloads.transfers:
del state.downloads.transfers[self.id]
self.update()
return True
return False
def remove_file(self):