From 669753aece8c10021770e1888a4be176ec45be1c Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sun, 27 Sep 2020 20:09:23 +0200 Subject: [PATCH] fix mpeg stream format --- music_assistant/stream_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -' -- 2.34.1