Let ffmpeg auto detect the content type
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 15 Jun 2024 05:18:08 +0000 (07:18 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 15 Jun 2024 05:18:08 +0000 (07:18 +0200)
music_assistant/server/providers/tunein/__init__.py

index 0090073bc5a278c6590e36870feb2f358341e131..ad51d912d7c2f84592073c305f7b76d57e42d18a 100644 (file)
@@ -261,9 +261,8 @@ class TuneInProvider(MusicProvider):
             return StreamDetails(
                 provider=self.domain,
                 item_id=item_id,
-                audio_format=AudioFormat(
-                    content_type=ContentType(stream["media_type"]),
-                ),
+                # set contenttype to unknown so ffmpeg can auto detect it
+                audio_format=AudioFormat(content_type=ContentType.UNKNOWN),
                 media_type=MediaType.RADIO,
                 stream_type=StreamType.HTTP,
                 path=stream["url"],