def __init__(self):
self.client = MPDClient()
- def mpdConnect(self):#{{{
+ def mpdConnect(self):
"""
Simple wrapper to connect MPD.
"""
- con_id = dict({'host':self.cli_options.host, 'port':self.cli_options.port})
+ con_id = dict({'host': self.cli_options.host,
+ 'port': self.cli_options.port})
try:
self.client.connect(**con_id)
except SocketError:
return False
- return True#}}}
+ return True
- def mpdAuth(self, secret):#{{{
+ def mpdAuth(self, secret):
""" Authenticate"""
try:
self.client.password(secret)
except CommandError:
return False
- return True#}}}
+ return True
def main():
# VIM MODLINE
# vim: ai ts=4 sw=4 sts=4 expandtab
-