Fallback to stream.url if url_resolved is missing (#2972)
authorMarvin Schenkel <marvinschenkel@gmail.com>
Thu, 15 Jan 2026 06:53:43 +0000 (07:53 +0100)
committerGitHub <noreply@github.com>
Thu, 15 Jan 2026 06:53:43 +0000 (07:53 +0100)
Updated the RadioBrowserProvider to use stream.url as a fallback for the path if stream.url_resolved is not available. This ensures that a valid stream path is always provided.

music_assistant/providers/radiobrowser/__init__.py

index da22a34cd6a54ed13c58306eeb9e582849a7ded3..c8fd2635931d503f144d858cb9a070025ddc7766 100644 (file)
@@ -495,7 +495,7 @@ class RadioBrowserProvider(MusicProvider):
                 ),
                 media_type=MediaType.RADIO,
                 stream_type=StreamType.HTTP,
-                path=stream.url_resolved,
+                path=stream.url_resolved or stream.url,
                 can_seek=False,
                 allow_seek=False,
             )