From 80834b989f8e755e0b7761c924acca3fc571e985 Mon Sep 17 00:00:00 2001 From: eb041592 <35889760+eb041592@users.noreply.github.com> Date: Sun, 28 Jan 2018 21:22:06 +0100 Subject: [PATCH 01/14] Update FreeBSD RC script - removed /usr/sbin/daemon's option "-t" (first appeared in FreeBSD 11, leading to an error in previous versions; since the [t]itle defaults to the daemonized invocation anyways, this shouldn't make a difference for FreeBSD 11+) - removed /usr/sbin/daemon's option "-u" and the respective variable in the script (ympd has to be started as root to be able to bind to port 80) - allow for additional arguments via ympd_flags="" in rc.conf (which would again allow to drop privileges after binding to the port) --- contrib/ympd.freebsd | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/contrib/ympd.freebsd b/contrib/ympd.freebsd index 4dcbedd..532a90c 100755 --- a/contrib/ympd.freebsd +++ b/contrib/ympd.freebsd @@ -12,18 +12,17 @@ name="ympd" rcvar="${name}_enable" -command="/usr/local/bin/ympd" +command="/usr/local/bin/${name}" pidfile="/var/run/${name}.pid" start_cmd="ympd_start" -load_rc_config "$name" +load_rc_config "${name}" : ${ympd_enable:="NO"} -: ${ympd_user:="nobody"} ympd_start() { check_startmsgs && echo "Starting ${name}." - /usr/sbin/daemon -f -p "${pidfile}" -t "${name}" -u "${ympd_user}" "${command}" + /usr/sbin/daemon -f -p "${pidfile}" "${command}" "${rc_flags}" } run_rc_command "$1" From cf572b705efd678662fd9eae896c1da6bfe79793 Mon Sep 17 00:00:00 2001 From: eb041592 <35889760+eb041592@users.noreply.github.com> Date: Fri, 2 Feb 2018 02:14:31 +0100 Subject: [PATCH 02/14] Added artist and album to both queue and search results; minor spelling --- htdocs/index.html | 6 +++--- htdocs/js/mpd.js | 26 +++++++++++++------------- src/mpd_client.c | 42 ++++++++++++++++++++++++++++++------------ 3 files changed, 46 insertions(+), 28 deletions(-) diff --git a/htdocs/index.html b/htdocs/index.html index 9d8f9a3..3996042 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -34,7 +34,7 @@ -
+
From b4084034d0f87bbec1ae23781d62bc49d75f066e Mon Sep 17 00:00:00 2001 From: eb041592 <35889760+eb041592@users.noreply.github.com> Date: Sun, 4 Feb 2018 13:24:44 +0100 Subject: [PATCH 13/14] Reverted some formatting; aligned CSS --- htdocs/css/mpd.css | 14 +++++++------- htdocs/index.html | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/htdocs/css/mpd.css b/htdocs/css/mpd.css index 88987e2..5d6afd3 100644 --- a/htdocs/css/mpd.css +++ b/htdocs/css/mpd.css @@ -22,10 +22,10 @@ body { } #counter { - font-size: 24px; - margin-top: -6px; - margin-left: 10px; - min-width: 50px; + font-size: 24px; + margin-top: -6px; + margin-left: 10px; + min-width: 50px; } #search { @@ -33,7 +33,7 @@ body { } .btn-group-hover { - opacity: 20%; + opacity: 20%; } .btn:active, @@ -60,8 +60,8 @@ body { } #salamisandwich td:nth-child(2) span { - font-style:italic; - font-size:90%; + font-style:italic; + font-size:90%; } tbody { diff --git a/htdocs/index.html b/htdocs/index.html index 726d193..683f860 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -177,15 +177,15 @@
From d4865aca9d1c45bcd8cc5aa86c6f5198b8f61b89 Mon Sep 17 00:00:00 2001 From: Archphile Date: Mon, 5 Mar 2018 13:54:46 +0200 Subject: [PATCH 14/14] fixed a typo Replaced $DIRBLE_API_TOKE with $DIRBLE_API_TOKEN in order for the service to be functional. --- contrib/ympd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ympd.service b/contrib/ympd.service index 7b42ebb..49559c7 100644 --- a/contrib/ympd.service +++ b/contrib/ympd.service @@ -10,7 +10,7 @@ Environment=WEB_PORT=8080 Environment=YMPD_USER=nobody Environment=DIRBLE_API_TOKEN=2e223c9909593b94fc6577361a EnvironmentFile=/etc/default/ympd -ExecStart=/usr/bin/ympd --user $YMPD_USER --mpdpass "$MPD_PASSWORD" --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT --dirbletoken $DIRBLE_API_TOKE +ExecStart=/usr/bin/ympd --user $YMPD_USER --mpdpass "$MPD_PASSWORD" --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT --dirbletoken $DIRBLE_API_TOKEN Type=simple [Install]