From 8cf33e6fe34e746bbaf4cca5f07cec9812bc7458 Mon Sep 17 00:00:00 2001 From: Marvin Schenkel Date: Sun, 18 Aug 2024 14:41:53 +0200 Subject: [PATCH] Apple Music: Fix condition for hls substream optimization. (#1574) Fix condition for hls substream optimization. --- music_assistant/server/helpers/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/server/helpers/audio.py b/music_assistant/server/helpers/audio.py index 5c47b7c6..54b55248 100644 --- a/music_assistant/server/helpers/audio.py +++ b/music_assistant/server/helpers/audio.py @@ -565,7 +565,7 @@ async def get_hls_substream( charset = resp.charset or "utf-8" master_m3u_data = await resp.text(charset) substreams = parse_m3u(master_m3u_data) - if any(x for x in substreams if x.length): + if any(x for x in substreams if x.length and not x.key): # this is already a substream! return PlaylistItem( path=url, -- 2.34.1