]> kaliko git repositories - mpd-goodies.git/blobdiff - src/lib/mpdclass.py
* reorganized source folders
[mpd-goodies.git] / src / lib / mpdclass.py
similarity index 79%
rename from lib/mpdclass.py
rename to src/lib/mpdclass.py
index 63a2f06d3a87355bd59ae63f7b1ab245717f0634..b17943eacc5e045ae94773b2027da6ea6cab5f30 100755 (executable)
@@ -18,24 +18,25 @@ class MPDClass(object):
     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():
@@ -47,4 +48,3 @@ if __name__ == '__main__':
 
 # VIM MODLINE
 # vim: ai ts=4 sw=4 sts=4 expandtab
-