changed it again so it's actually a GET request but it doesn't download the track

This commit is contained in:
uh_wot 2020-05-13 16:01:26 +02:00
parent 2199e4913c
commit 722087ce30
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ def getPreferredBitrate(dz, track, bitrate, fallback=True):
for formatNum in formats:
if formatNum <= int(bitrate):
request = head(dz.get_track_stream_url(track['id'], track['MD5'], track['mediaVersion'], formatNum))
request = get(dz.get_track_stream_url(track['id'], track['MD5'], track['mediaVersion'], formatNum), stream=True)
try:
request.raise_for_status()
except HTTPError: # if the format is not available, Deezer returns a 403 error