Apparently we can basically just lie about what MIME type the music file is...

This commit is contained in:
Sumner Evans
2019-08-31 21:09:21 -06:00
parent 6e0ef1b1b8
commit c61ebee1d4
2 changed files with 1 additions and 1 deletions

View File

@@ -444,7 +444,6 @@ class LibremsonicApp(Gtk.Application):
uri, stream = CacheManager.get_song_filename_or_stream( uri, stream = CacheManager.get_song_filename_or_stream(
song, song,
force_stream=self.state.config.always_stream, force_stream=self.state.config.always_stream,
format='mp3',
) )
self.state.current_song = song self.state.current_song = song

View File

@@ -337,6 +337,7 @@ class ChromecastPlayer(Player):
cover_art_url = CacheManager.get_cover_art_url(song.id, 1000) cover_art_url = CacheManager.get_cover_art_url(song.id, 1000)
self.chromecast.media_controller.play_media( self.chromecast.media_controller.play_media(
file_or_url, file_or_url,
# Just pretend that whatever we send it is mp3, even if it isn't.
'audio/mp3', 'audio/mp3',
current_time=progress, current_time=progress,
title=song.title, title=song.title,