add support for user defined mpd host, password and port in config file
This commit is contained in:
@@ -165,6 +165,13 @@ int main(int argc, char *argv[])
|
||||
if (getenv("MPD_PASSWORD"))
|
||||
Mpd->SetPassword(getenv("MPD_PASSWORD"));
|
||||
|
||||
if (Config.mpd_host != "localhost")
|
||||
Mpd->SetHostname(Config.mpd_host);
|
||||
if (Config.mpd_port != 6600)
|
||||
Mpd->SetPort(Config.mpd_port);
|
||||
if (!Config.mpd_password.empty())
|
||||
Mpd->SetPassword(Config.mpd_password);
|
||||
|
||||
Mpd->SetTimeout(Config.mpd_connection_timeout);
|
||||
|
||||
if (argc > 1)
|
||||
|
||||
Reference in New Issue
Block a user