pull/1/head
DiMartinoXBMC 2015-06-08 22:35:28 +03:00
parent e4adaef1ae
commit cb7f1af5a5
1 changed files with 2 additions and 3 deletions

View File

@ -368,9 +368,8 @@ class Libtorrent:
self.startPart = selectedFileInfo['offset'] / self.piece_length self.startPart = selectedFileInfo['offset'] / self.piece_length
self.endPart = int((selectedFileInfo['offset'] + selectedFileInfo['size']) / self.piece_length) self.endPart = int((selectedFileInfo['offset'] + selectedFileInfo['size']) / self.piece_length)
#print 'part ' + str(self.startPart)+ str(' ')+ str(self.endPart) #print 'part ' + str(self.startPart)+ str(' ')+ str(self.endPart)
pieceMB=float(self.piece_length) / (1024 * 1024) multiplier=self.partOffset/5
multiplier=int(10/pieceMB) print 'continueSession: multiplier '+str(multiplier)
#print 'continueSession: pieceMB '+str(pieceMB)+' multiplier '+str(multiplier)
for i in range(self.startPart, self.startPart + self.partOffset): for i in range(self.startPart, self.startPart + self.partOffset):
if i <= self.endPart: if i <= self.endPart:
self.torrentHandle.piece_priority(i, 7) self.torrentHandle.piece_priority(i, 7)