X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fplugins%2Fcore%2Funiq.py;fp=sima%2Fplugins%2Fcore%2Funiq.py;h=1abdd62a8f492ee805f53f877afc4d34567f80ba;hb=042c6454f3431900850d92f9196d2775681738d6;hp=17b17e2487cbe3377301a24d92a29ba2fd5f2cd9;hpb=dbc3e9b29cc4c760063d1a2a4cf917b2211b9998;p=mpd-sima.git 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