From: Marcel van der Veldt Date: Sat, 19 Oct 2024 19:15:24 +0000 (+0200) Subject: Small tweak to HLSPlaylist exception X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=2802bc015668da5ac1d07a30064b34527afb1953;p=music-assistant-server.git Small tweak to HLSPlaylist exception --- diff --git a/music_assistant/server/helpers/playlists.py b/music_assistant/server/helpers/playlists.py index 2d15b2ae..e3cef702 100644 --- a/music_assistant/server/helpers/playlists.py +++ b/music_assistant/server/helpers/playlists.py @@ -167,7 +167,9 @@ async def fetch_playlist( raise InvalidDataError(msg) from err if raise_on_hls and "#EXT-X-VERSION:" in playlist_data or "#EXT-X-STREAM-INF:" in playlist_data: - raise IsHLSPlaylist(encrypted="#EXT-X-KEY:" in playlist_data) + exc = IsHLSPlaylist() + exc.encrypted = "#EXT-X-KEY:" in playlist_data + raise exc if url.endswith((".m3u", ".m3u8")): playlist = parse_m3u(playlist_data)