1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-06-27 15:13:15 +00:00

Removed obsolet options

This commit is contained in:
jcorporation 2018-06-14 21:24:26 +01:00
parent 290d591c39
commit 325094f6e7
3 changed files with 2 additions and 7 deletions

View File

@ -5,5 +5,3 @@ MPD_PASSWORD=
WEB_PORT=80
MYMPD_USER=nobody
COVERIMAGE=--coverimage folder.jpg
#DIGEST=--digest /path/to/htdigest
#LOCALPORT=--localport 80

View File

@ -8,11 +8,9 @@ Environment=MPD_PORT=6600
Environment=MPD_PASSWORD=
Environment=WEB_PORT=80
Environment=MYMPD_USER=nobody
Environment=DIGEST=
Environment=LOCALPORT=
Environment=COVERIMAGE=--coverimage folder.jpg
EnvironmentFile=/etc/default/mympd
ExecStart=/usr/bin/mympd --user $MYMPD_USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT $COVERIMAGE $DIGEST $LOCALPORT
ExecStart=/usr/bin/mympd --user $MYMPD_USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT $COVERIMAGE
Type=simple
[Install]

View File

@ -79,7 +79,6 @@ static void ev_handler(struct mg_connection *nc, int ev, void *ev_data) {
#endif
if (mg_vcmp(&hm->uri, "/api") == 0) {
handle_api(nc, hm);
}
else {
mg_serve_http(nc, hm, s_http_server_opts);
@ -131,7 +130,7 @@ int main(int argc, char **argv)
{0, 0, 0, 0 }
};
while((n = getopt_long(argc, argv, "D:h:p:l:w:u:d:vm:s:i:",
while((n = getopt_long(argc, argv, "D:h:p:w:u:vm:s:i:",
long_options, &option_index)) != -1) {
switch (n) {
case 'D':