fix streaming
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 6 Jul 2022 15:59:10 +0000 (17:59 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 6 Jul 2022 15:59:10 +0000 (17:59 +0200)
audio format is m4a

music_assistant/music_providers/ytmusic.py

index 574f88a6631a542fbe06eefd5774bd58a3a8eba7..eac5cdbfb0c4c432f0cdfdce827fb4fa92c55693 100644 (file)
@@ -416,7 +416,7 @@ class YTMusic(MusicProvider):
         stream_format = await self._parse_stream_format(track_obj)
         url = await self._parse_stream_url(stream_format=stream_format, item_id=item_id)
         return StreamDetails(
-            provider=self.type, item_id=item_id, data=url, content_type=ContentType.AAC
+            provider=self.type, item_id=item_id, data=url, content_type=ContentType.M4A
         )
 
     async def get_audio_stream(