return True#}}}
-def mconnect():#{{{
+def mconnect(host=None, port=None):#{{{
""""""
- ## get connection id
+ ## get connection id from ENV VAR
con_id, passwd = get_mpd_environ()
+ if host:
+ con_id.update({'host': host})
+ if port:
+ con_id.update({'port': port})
## MPD object instance
client = MPDClient()
if mpdConnect(client, con_id):