mirror of https://github.com/nathom/streamrip.git
Fix last byte missing error with deezer (#608)
This commit is contained in:
parent
87d59648cf
commit
39aada312c
|
@ -141,7 +141,7 @@ class DeezerDownloadable(Downloadable):
|
||||||
async with aiofiles.open(path, "wb") as audio:
|
async with aiofiles.open(path, "wb") as audio:
|
||||||
buflen = len(buf)
|
buflen = len(buf)
|
||||||
for i in range(0, buflen, self.chunk_size):
|
for i in range(0, buflen, self.chunk_size):
|
||||||
data = buf[i : min(i + self.chunk_size, buflen - 1)]
|
data = buf[i : min(i + self.chunk_size, buflen)]
|
||||||
if len(data) >= 2048:
|
if len(data) >= 2048:
|
||||||
decrypted_chunk = (
|
decrypted_chunk = (
|
||||||
self._decrypt_chunk(blowfish_key, data[:2048])
|
self._decrypt_chunk(blowfish_key, data[:2048])
|
||||||
|
|
Loading…
Reference in New Issue