mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-17 03:04:47 +00:00
Removed obsolet options
This commit is contained in:
parent
290d591c39
commit
325094f6e7
@ -5,5 +5,3 @@ MPD_PASSWORD=
|
|||||||
WEB_PORT=80
|
WEB_PORT=80
|
||||||
MYMPD_USER=nobody
|
MYMPD_USER=nobody
|
||||||
COVERIMAGE=--coverimage folder.jpg
|
COVERIMAGE=--coverimage folder.jpg
|
||||||
#DIGEST=--digest /path/to/htdigest
|
|
||||||
#LOCALPORT=--localport 80
|
|
||||||
|
@ -8,11 +8,9 @@ Environment=MPD_PORT=6600
|
|||||||
Environment=MPD_PASSWORD=
|
Environment=MPD_PASSWORD=
|
||||||
Environment=WEB_PORT=80
|
Environment=WEB_PORT=80
|
||||||
Environment=MYMPD_USER=nobody
|
Environment=MYMPD_USER=nobody
|
||||||
Environment=DIGEST=
|
|
||||||
Environment=LOCALPORT=
|
|
||||||
Environment=COVERIMAGE=--coverimage folder.jpg
|
Environment=COVERIMAGE=--coverimage folder.jpg
|
||||||
EnvironmentFile=/etc/default/mympd
|
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
|
Type=simple
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -79,7 +79,6 @@ static void ev_handler(struct mg_connection *nc, int ev, void *ev_data) {
|
|||||||
#endif
|
#endif
|
||||||
if (mg_vcmp(&hm->uri, "/api") == 0) {
|
if (mg_vcmp(&hm->uri, "/api") == 0) {
|
||||||
handle_api(nc, hm);
|
handle_api(nc, hm);
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mg_serve_http(nc, hm, s_http_server_opts);
|
mg_serve_http(nc, hm, s_http_server_opts);
|
||||||
@ -131,7 +130,7 @@ int main(int argc, char **argv)
|
|||||||
{0, 0, 0, 0 }
|
{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) {
|
long_options, &option_index)) != -1) {
|
||||||
switch (n) {
|
switch (n) {
|
||||||
case 'D':
|
case 'D':
|
||||||
|
Loading…
Reference in New Issue
Block a user