From 661c15613f8f1c6590e70a9404bcc7ec47c83060 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Tue, 18 Jun 2019 22:34:41 +0200 Subject: [PATCH] Update qobuz.py --- music_assistant/modules/musicproviders/qobuz.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/music_assistant/modules/musicproviders/qobuz.py b/music_assistant/modules/musicproviders/qobuz.py index 7acd3e98..2e85f8e7 100644 --- a/music_assistant/modules/musicproviders/qobuz.py +++ b/music_assistant/modules/musicproviders/qobuz.py @@ -254,6 +254,7 @@ class QobuzProvider(MusicProvider): async def get_stream_details(self, track_id): ''' return the content details for the given track when it will be streamed''' + streamdetails = None for format_id in [27, 7, 6, 5]: # it seems that simply requesting for highest available quality does not work # from time to time the api response is empty for this request ?! @@ -538,7 +539,7 @@ class QobuzProvider(MusicProvider): LOGGER.error(url) LOGGER.error(params) LOGGER.error(result) - result = None + return None return result async def __post_data(self, endpoint, params={}, data={}): -- 2.34.1