Fixed lib not decrypting tracks

This commit is contained in:
RemixDev
2021-07-25 12:51:46 +02:00
parent 7536597495
commit d0cf20db8f
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ def streamTrack(outputStream, track, start=0, downloadObject=None, listener=None
if downloadObject.isCanceled: raise DownloadCanceled
headers= {'User-Agent': USER_AGENT_HEADER}
chunkLength = start
isCryptedStream = "/mobile/" in track.downloadUrl
isCryptedStream = "/mobile/" in track.downloadURL or "/media/" in track.downloadURL
itemData = {
'id': track.id,
@ -52,7 +52,7 @@ def streamTrack(outputStream, track, start=0, downloadObject=None, listener=None
}
try:
with get(track.downloadUrl, headers=headers, stream=True, timeout=10) as request:
with get(track.downloadURL, headers=headers, stream=True, timeout=10) as request:
request.raise_for_status()
if isCryptedStream:
blowfish_key = generateBlowfishKey(str(track.id))