From 73737b97d8ba81def43a0cb6890f13fa1b263abc Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Sun, 23 Aug 2020 20:32:56 -0600 Subject: [PATCH] Fixed issues preventing Chromecast playback from working --- sublime/players/chromecast.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sublime/players/chromecast.py b/sublime/players/chromecast.py index 6fdfe02..c89bbd0 100644 --- a/sublime/players/chromecast.py +++ b/sublime/players/chromecast.py @@ -49,6 +49,7 @@ class ChromecastPlayer(Player): return {} return {SERVE_FILES_KEY: bool, LAN_PORT_KEY: int} + @property def supported_schemes(self) -> Set[str]: schemes = {"http", "https"} if bottle_imported and self.config.get(SERVE_FILES_KEY): @@ -307,7 +308,7 @@ class ChromecastPlayer(Player): )[0] cover_art_url = AdapterManager.get_cover_art_uri( song.cover_art, scheme, size=1000 - ) + ).result() self._current_chromecast.media_controller.play_media( uri, # Just pretend that whatever we send it is mp3, even if it isn't.