]> kaliko git repositories - mpd-goodies.git/blobdiff - lib/mpdclass.py
* [mfade] convert mfade to use the new framework
[mpd-goodies.git] / lib / mpdclass.py
index 5a8f4f9f127fac9c24bd4188ace42f38990dd831..63a2f06d3a87355bd59ae63f7b1ab245717f0634 100755 (executable)
@@ -18,11 +18,11 @@ class MPDClass(object):
     def __init__(self):
         self.client = MPDClient()
 
-    def mpdConnect(self, con_id):#{{{
+    def mpdConnect(self):#{{{
         """
         Simple wrapper to connect MPD.
-        con_id = {'host': 'MPD_server', 'port': 'MPD_server port'}
         """
+        con_id = dict({'host':self.cli_options.host, 'port':self.cli_options.port})
         try:
             self.client.connect(**con_id)
         except SocketError: