Modify remove_overwrap

This commit is contained in:
taizan-hokuto
2020-01-26 14:21:18 +09:00
parent 03b901d59c
commit 5ba61db4f3

View File

@@ -128,7 +128,6 @@ class Downloader:
jmp = False
ret.append(blocks[0])
while a < len(blocks)-2:
while is_overwrap(a,b):
b+=1
if b == len(blocks)-1:
@@ -136,14 +135,12 @@ class Downloader:
break
if jmp: break
if b-a == 1:
ret.append(blocks[b])
a = b
b+=1
continue
else:
ret.append(blocks[b-1])
a = b-1
ret.append(blocks[a])
b = a+1
ret.append(blocks[-1])
self.blocks = ret
return self