code: def _set_player(self):
          players = []
          for name, p in self._mpris_players.items():
              if "_priority" not in p:
                  if self.player_priority:
                      try:
                          priority = self.player_priority.index(p["name"])
                      except ValueError:
                          try:
                              priority = self.player_priority.index("*")
                          except ValueError:
                              priority = None
                  else:
                      priority = 0
                  if priority is not None:
                      p["_priority"] = priority
              if p.get("_priority") is not None:
                  players.append((p["_state_priority"], p["_priority"], p["index"], name))
          if players:
              top_player = self._mpris_players.get(sorted(players)[0][3])
          else:
              top_player = {}
          self._player = top_player.get("_dbus_player")
          self._player_details = top_player
          self.py3.update()