From 7bc73de128eebe1d88904bf6962563872d12ede0 Mon Sep 17 00:00:00 2001 From: Hellow <74311245+HeIIow2@users.noreply.github.com> Date: Fri, 26 Apr 2024 01:13:57 +0200 Subject: [PATCH] fix: accidentally cached all songs, it is supposed to download --- music_kraken/connection/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_kraken/connection/connection.py b/music_kraken/connection/connection.py index 75de4b5..d9982bc 100644 --- a/music_kraken/connection/connection.py +++ b/music_kraken/connection/connection.py @@ -155,7 +155,7 @@ class Connection: raise AttributeError("method is not set.") method = method.upper() headers = dict() if headers is None else headers - disable_cache = headers.get("Cache-Control", "").lower() == "no-cache" if disable_cache is None else disable_cache + disable_cache = (headers.get("Cache-Control", "").lower() == "no-cache" if disable_cache is None else disable_cache) or kwargs.get("stream", False) accepted_response_codes = self.ACCEPTED_RESPONSE_CODES if accepted_response_codes is None else accepted_response_codes current_kwargs = copy.copy(locals())