fix mpeg stream format
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 27 Sep 2020 18:09:23 +0000 (20:09 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 27 Sep 2020 18:09:23 +0000 (20:09 +0200)
music_assistant/stream_manager.py

index 8dbe4c469d77600c95e025242f807fa9d29c489a..a10fb7390dd0d95cda217b20f50606155bd70a71 100755 (executable)
@@ -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 -'