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