From: Marcel van der Veldt Date: Sun, 27 Sep 2020 18:09:23 +0000 (+0200) Subject: fix mpeg stream format X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=669753aece8c10021770e1888a4be176ec45be1c;p=music-assistant-server.git fix mpeg stream format --- diff --git a/music_assistant/stream_manager.py b/music_assistant/stream_manager.py index 8dbe4c46..a10fb739 100755 --- a/music_assistant/stream_manager.py +++ b/music_assistant/stream_manager.py @@ -426,8 +426,8 @@ class StreamManager: if audio_data: stream_type = StreamType.CACHE - # support for AAC created with ffmpeg in between - if streamdetails.content_type == ContentType.AAC: + # support for AAC/MPEG created with ffmpeg in between + if streamdetails.content_type in [ContentType.AAC, ContentType.MPEG]: stream_type = StreamType.EXECUTABLE streamdetails.content_type = ContentType.FLAC stream_path = f'ffmpeg -v quiet -i "{stream_path}" -f flac -'