Fix linter errors
This commit is contained in:
@@ -123,7 +123,6 @@ class ChromecastPlayer(Player):
|
|||||||
self, status: pychromecast.controllers.media.MediaStatus,
|
self, status: pychromecast.controllers.media.MediaStatus,
|
||||||
):
|
):
|
||||||
# Detect the end of a track and go to the next one.
|
# Detect the end of a track and go to the next one.
|
||||||
print(status)
|
|
||||||
if (
|
if (
|
||||||
status.idle_reason == "FINISHED"
|
status.idle_reason == "FINISHED"
|
||||||
and status.player_state == "IDLE"
|
and status.player_state == "IDLE"
|
||||||
|
@@ -131,7 +131,6 @@ class PlayerControls(Gtk.ActionBar):
|
|||||||
GLib.timeout_add(350, cycle_connecting, connecting_to_device_token)
|
GLib.timeout_add(350, cycle_connecting, connecting_to_device_token)
|
||||||
|
|
||||||
icon = ""
|
icon = ""
|
||||||
print(app_config.state.current_device)
|
|
||||||
if app_config.state.connecting_to_device:
|
if app_config.state.connecting_to_device:
|
||||||
icon = "-connecting-0"
|
icon = "-connecting-0"
|
||||||
self.connecting_icon_index = 0
|
self.connecting_icon_index = 0
|
||||||
|
@@ -106,6 +106,7 @@ class UIState:
|
|||||||
self.playing = False
|
self.playing = False
|
||||||
|
|
||||||
from sublime.players import PlayerManager
|
from sublime.players import PlayerManager
|
||||||
|
|
||||||
self.available_players = {
|
self.available_players = {
|
||||||
pt: set() for pt in PlayerManager.available_player_types
|
pt: set() for pt in PlayerManager.available_player_types
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user