- passwd, host = self.startopt.get('host').split('@')
- self.config.set('MPD', 'password', passwd)
- self.config.set('MPD', 'host', host)
+ host, passwd = utils.parse_mpd_host(self.startopt.get('host'))
+ if passwd:
+ self.config.set('MPD', 'password', passwd)
+ if host:
+ self.config.set('MPD', 'host', host)