ошибочка

pull/1/head
inpos 2016-03-19 22:14:32 +03:00
parent 3ecaa41dbb
commit efbfd8beff
1 changed files with 2 additions and 1 deletions

View File

@ -267,12 +267,13 @@ class TorrentFS(object):
self.waitForMetadata() self.waitForMetadata()
self.save_path = localize_path(self.root.torrentParams['save_path']) self.save_path = localize_path(self.root.torrentParams['save_path'])
self.priorities = list(self.handle.file_priorities()) self.priorities = list(self.handle.file_priorities())
self.files = {}
num_files = self.info.num_files() num_files = self.info.num_files()
for i in range(num_files): for i in range(num_files):
self.setPriority(i, 0) self.setPriority(i, 0)
def file(self, index): def file(self, index):
file_ = self.__file_at_(index) file_ = self.__file_at_(index)
self.files = {file_.name: file_} self.files[file_.name] = file_
#self.handle.set_piece_deadline(self.files[startIndex].startPiece, 50) #self.handle.set_piece_deadline(self.files[startIndex].startPiece, 50)
self.setPriority(index, 1) self.setPriority(index, 1)
return file_ return file_