mirror of
https://github.com/nathom/streamrip.git
synced 2024-09-18 18:58:46 -04:00
Fix last byte missing error with deezer (#608)
This commit is contained in:
parent
87d59648cf
commit
39aada312c
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ class DeezerDownloadable(Downloadable):
|
|||
async with aiofiles.open(path, "wb") as audio:
|
||||
buflen = len(buf)
|
||||
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:
|
||||
decrypted_chunk = (
|
||||
self._decrypt_chunk(blowfish_key, data[:2048])
|
||||
|
|
Loading…
Reference in a new issue