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
#
-class ConfMan(object): # CONFIG MANAGER CLASS
+class ConfMan: # CONFIG MANAGER CLASS
"""
Configuration manager.
Default configuration is stored in DEFAULT_CONF dictionnary.
# honor MPD_HOST format as in mpc(1) for command line option --host
if self.startopt.get('host'):
if '@' in self.startopt.get('host'):
- print(self.startopt.get('host').split('@'))
passwd, host = self.startopt.get('host').split('@')
self.config.set('MPD', 'password', passwd)
self.config.set('MPD', 'host', host)