From 722087ce3038dc91cbeca61398ce623c3ce2006f Mon Sep 17 00:00:00 2001 From: uh_wot <3631986-uh_wot@users.noreply.gitlab.com> Date: Wed, 13 May 2020 16:01:26 +0200 Subject: [PATCH] changed it again so it's actually a GET request but it doesn't download the track --- deemix/app/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deemix/app/downloader.py b/deemix/app/downloader.py index 0ec6d3c..ddbc8d6 100644 --- a/deemix/app/downloader.py +++ b/deemix/app/downloader.py @@ -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