diff --git a/music_assistant/server/providers/jellyfin/__init__.py b/music_assistant/server/providers/jellyfin/__init__.py index d6997a187..dccc2cd41 100644 --- a/music_assistant/server/providers/jellyfin/__init__.py +++ b/music_assistant/server/providers/jellyfin/__init__.py @@ -95,6 +95,7 @@ ITEM_TYPE_ARTIST, ITEM_TYPE_AUDIO, MAX_IMAGE_WIDTH, + SUPPORTED_CONTAINER_FORMATS, USER_APP_NAME, ) @@ -812,7 +813,9 @@ async def get_audio_stream( self, streamdetails: StreamDetails, seek_position: int = 0 ) -> AsyncGenerator[bytes, None]: """Return the audio stream for the provider item.""" - url = API.audio_url(self._jellyfin_server.jellyfin, streamdetails.item_id) + url = API.audio_url( + self._jellyfin_server.jellyfin, streamdetails.item_id, SUPPORTED_CONTAINER_FORMATS + ) async for chunk in get_http_stream(self.mass, url, streamdetails, seek_position): yield chunk diff --git a/music_assistant/server/providers/jellyfin/const.py b/music_assistant/server/providers/jellyfin/const.py index 220539496..677af9694 100644 --- a/music_assistant/server/providers/jellyfin/const.py +++ b/music_assistant/server/providers/jellyfin/const.py @@ -54,6 +54,8 @@ SUPPORTED_COLLECTION_TYPES: Final = [COLLECTION_TYPE_MUSIC] +SUPPORTED_CONTAINER_FORMATS: Final = "ogg,flac,mp3,aac,mpeg,alac,wav,aiff,wma,m4a,m4b,dsf,opus,wv" + PLAYABLE_ITEM_TYPES: Final = [ITEM_TYPE_AUDIO]