From: Marvin Schenkel Date: Sun, 18 Aug 2024 12:41:53 +0000 (+0200) Subject: Apple Music: Fix condition for hls substream optimization. (#1574) X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=8cf33e6fe34e746bbaf4cca5f07cec9812bc7458;p=music-assistant-server.git Apple Music: Fix condition for hls substream optimization. (#1574) Fix condition for hls substream optimization. --- 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,