self.sub_chan()
def is_capable(self):
- 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
+ # Groove Basin compatibility
+ # For some reason Groove Basin have channels command but no
+ # subscribe command‽
+ return {'channels', 'subscribe'}.issubset(set(self.player.commands()))
def get_channels(self):
return [chan for chan in self.player.channels() if
self.log.warning(' '.join(channels))
def sub_chan(self):
- self.log.debug('Registering as {}'.format(self.chan))
+ self.log.debug('Registering as %s', self.chan)
try:
self.player.subscribe(self.chan)
self._registred = True