Fix "NowPlaying: KeyError: None" (#784)
This commit is contained in:
parent
fadd3167fd
commit
48775e4b87
@ -194,6 +194,10 @@ https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html
|
|||||||
if hasattr(self, "data"):
|
if hasattr(self, "data"):
|
||||||
del self.data
|
del self.data
|
||||||
return
|
return
|
||||||
|
except KeyError:
|
||||||
|
if self.hide_no_player:
|
||||||
|
self.output = None
|
||||||
|
return
|
||||||
|
|
||||||
def playpause(self):
|
def playpause(self):
|
||||||
self.player_command('PlayPause')
|
self.player_command('PlayPause')
|
||||||
|
Loading…
Reference in New Issue
Block a user