From: Andrew Karpow Date: Mon, 22 Jan 2018 03:58:17 +0000 (+0100) Subject: Merge branch 'master' of https://github.com/lesderid/ympd into lesderid-master X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=ceee8bd90a7eb53e485bed6376e8262e6cb76237;p=ympd.git Merge branch 'master' of https://github.com/lesderid/ympd into lesderid-master --- ceee8bd90a7eb53e485bed6376e8262e6cb76237 diff --cc contrib/init.debian index 163b7ef,31c00d3..943e4de --- a/contrib/init.debian +++ b/contrib/init.debian @@@ -35,7 -36,7 +36,7 @@@ DIRBLE_API_TOKEN=2e223c9909593b94fc6577 # Load the VERBOSE setting and other rcS variables [ -f /etc/default/rcS ] && . /etc/default/rcS - DAEMON_OPT="--user $YMPD_USER --mpdpass '$MPD_PASSWORD' --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT" -DAEMON_OPT="--user $YMPD_USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT --dirbletoken $DIRBLE_API_TOKEN" ++DAEMON_OPT="--user $YMPD_USER --mpdpass '$MPD_PASSWORD' --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT --dirbletoken $DIRBLE_API_TOKEN" do_start() { diff --cc contrib/ympd.default index e5e7c74,c74b860..cb3ca72 --- a/contrib/ympd.default +++ b/contrib/ympd.default @@@ -1,5 -1,5 +1,6 @@@ MPD_HOST=localhost MPD_PORT=6600 +MPD_PASSWORD= WEB_PORT=8080 YMPD_USER=nobody + DIRBLE_API_TOKEN=2e223c9909593b94fc6577361a diff --cc contrib/ympd.service index 023b926,7516818..7b42ebb --- a/contrib/ympd.service +++ b/contrib/ympd.service @@@ -5,11 -5,11 +5,12 @@@ Requires=network.target local-fs.targe [Service] Environment=MPD_HOST=localhost Environment=MPD_PORT=6600 +Environment=MPD_PASSWORD= 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 -ExecStart=/usr/bin/ympd --user $YMPD_USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT --dirbletoken $DIRBLE_API_TOKEN ++ExecStart=/usr/bin/ympd --user $YMPD_USER --mpdpass "$MPD_PASSWORD" --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT --dirbletoken $DIRBLE_API_TOKE Type=simple [Install] diff --cc htdocs/js/mpd.js index 56984aa,6e57d26..5c8a8d1 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@@ -29,7 -29,8 +29,9 @@@ var dirble_selected_cat = "" var dirble_catid = ""; var dirble_page = 1; var isTouch = Modernizr.touch ? 1 : 0; +var filter = undefined; + var dirble_api_token = ""; + var dirble_stations = false; var app = $.sammy(function() { diff --cc src/ympd.c index 304f5b8,caa02f7..00b82ee --- a/src/ympd.c +++ b/src/ympd.c @@@ -122,8 -124,8 +128,9 @@@ int main(int argc, char **argv " -p, --port \t\tconnect to mpd at port [6600]\n" " -w, --webport [ip:]\tlisten interface/port for webserver [8080]\n" " -u, --user \t\tdrop priviliges to user after socket bind\n" + " -d, --dirbletoken \tDirble API token\n" " -V, --version\t\t\tget version\n" + " -m, --mpdpass \tspecifies the password to use when connecting to mpd\n" " --help\t\t\t\tthis help\n" , argv[0]); return EXIT_FAILURE;