Skip to content

Commit

Permalink
Apple Music: Fix condition for hls substream optimization. (#1574)
Browse files Browse the repository at this point in the history
Fix condition for hls substream optimization.
  • Loading branch information
MarvinSchenkel authored Aug 18, 2024
1 parent e303813 commit 8cf33e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music_assistant/server/helpers/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8cf33e6

Please sign in to comment.