Detect players starting after py3status
@@ -310,7 +310,7 @@ class Py3status:
self._kill = True
def _name_owner_changed(self, *args):
- player_add = args[5][2]
+ player_add = args[5][0]
player_remove = args[5][1]
if player_add:
self._add_player(player_add)
@@ -382,7 +382,7 @@ class Py3status:
if not p['name'] and p['identity'] in self._mpris_names:
p['name'] = self._mpris_names[p['identity']]
p['full_name'] = u'{} {}'.format(p['name'], p['index'])
- return
+ return False
status = player.PlaybackStatus
state_priority = WORKING_STATES.index(status)
identity = player.Identity
@@ -395,7 +395,7 @@ class Py3status:
self._player_monitor(player_id)
)
except:
- return
+ return False
self._mpris_players[player_id] = {
'_dbus_player': player,
@@ -408,6 +408,7 @@ class Py3status:
'status': status,
'subscription': subscription,
}
+
return True
def _remove_player(self, player_id):
