From: kaliko Date: Tue, 3 Feb 2015 13:59:35 +0000 (+0100) Subject: More robust client2client discovery X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=refs%2Fheads%2FGrooveBasin;p=mpd-sima.git More robust client2client discovery --- diff --git a/sima/plugins/core/uniq.py b/sima/plugins/core/uniq.py index 17b17e2..1abdd62 100644 --- a/sima/plugins/core/uniq.py +++ b/sima/plugins/core/uniq.py @@ -52,11 +52,11 @@ class Uniq(Plugin): self.sub_chan() def is_capable(self): - if 'channels' in self.player.commands(): - if 'subscribe' in self.player.commands(): # Groove Basin compatibility - # For some reason Groove Basin have channels command but no - # subscribe command‽ - return True + 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): return [chan for chan in self.player.channels() if