mpris: handle empty player_priority option like *
@@ -413,7 +413,8 @@ class Py3status:
identity = player.Identity
name = self._mpris_names.get(identity)
- if name not in self.player_priority and '*' not in self.player_priority:
+ if self.player_priority != [] and name not in self.player_priority \
+ and '*' not in self.player_priority:
return False
if identity not in self._mpris_name_index:
@@ -423,7 +424,8 @@ class Py3status:
state_priority = WORKING_STATES.index(status)
index = self._mpris_name_index[identity]
self._mpris_name_index[identity] += 1
- subscription = player.PropertiesChanged.connect(self._player_monitor(player_id))
+ subscription = player.PropertiesChanged.connect(
+ self._player_monitor(player_id))
self._mpris_players[player_id] = {
'_dbus_player': player,
