]> kaliko git repositories - mpd-sima.git/commitdiff
More robust client2client discovery
authorkaliko <kaliko@azylum.org>
Tue, 3 Feb 2015 14:10:49 +0000 (15:10 +0100)
committerkaliko <kaliko@azylum.org>
Tue, 3 Feb 2015 14:10:49 +0000 (15:10 +0100)
sima/plugins/core/uniq.py

index b61afa616278d2aec52ebac5d348a3b80e4666e8..1abdd62a8f492ee805f53f877afc4d34567f80ba 100644 (file)
@@ -52,7 +52,10 @@ class Uniq(Plugin):
         self.sub_chan()
 
     def is_capable(self):
-        if 'channels' in self.player.commands():
+        if {'channels', 'subscribe'}.issubset(set(self.player.commands())):
+            # Groove Basin compatibility
+            # For some reason Groove Basin have channels command but no
+            # subscribe command‽
             return True
 
     def get_channels(self):