Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions musicdl/modules/utils/deezerutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import hashlib
import binascii
import functools
from Cryptodome.Cipher import AES, Blowfish
from Crypto.Cipher import AES, Blowfish


'''DeezerMusicClientUtils'''
Expand Down Expand Up @@ -61,4 +61,4 @@ def decryptdownloadedaudiofile(src_path: str, dst_path: str, blowfish_key: str):
while True:
if not (data := src.read(encrypt_chunk_size)): break
decrypted_chunk = DeezerMusicClientUtils.decryptchunk(blowfish_key, data[:2048]) + data[2048:] if len(data) >= 2048 else data
dst.write(decrypted_chunk)
dst.write(decrypted_chunk)
Loading