Commits

Luke Plant  committed 2aae25e

Fixed MPRIS backend to not catch MPRIS2 interfaces.

  • Participants
  • Parent commits aa9ec9d

Comments (0)

Files changed (1)

File playerdo/backends/mpris.py

     import dbus
     bus = dbus.SessionBus()
     return [str(s) for s in bus.list_names()
-            if str(s).startswith('org.mpris.')]
-
+            if str(s).startswith('org.mpris.')
+            and not str(s).startswith('org.mpris.MediaPlayer2')]
 
 def get_sorted_candidate_buses(player_object_name):
     candidates = get_all_mpris_buses()
 
 class MprisPlayer(Player):
 
-    _friendly_name = "Any MPRIS player"
+    _friendly_name = "Any MPRIS 1 player"
     player_object_name = "/Player"
 
     @property