From 661268bdbdc3cffd6eea4f69fd96cab4d41fea76 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sun, 2 Apr 2023 18:06:54 +0200 Subject: [PATCH] fix playback of pls radio streams in tunein --- music_assistant/server/providers/tunein/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/server/providers/tunein/__init__.py b/music_assistant/server/providers/tunein/__init__.py index 6a7f182a..d17dfbf0 100644 --- a/music_assistant/server/providers/tunein/__init__.py +++ b/music_assistant/server/providers/tunein/__init__.py @@ -202,7 +202,7 @@ class TuneInProvider(MusicProvider): # check if the radio stream is not a playlist url = stream["url"] direct = None - if url.endswith("m3u8") or url.endswith("m3u") or url.endswith("pls"): # noqa: SIM102 + if stream.get("playlist_type"): # noqa: SIM102 if playlist := await fetch_playlist(self.mass, url): if len(playlist) > 1 or ".m3u" in playlist[0] or ".pls" in playlist[0]: # this is most likely an mpeg-dash stream, let ffmpeg handle that -- 2.34.1