diff --git a/CMakeLists.txt b/CMakeLists.txt index fb4945d..58ef158 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,6 +43,7 @@ file(GLOB RESOURCES htdocs/css/*.css htdocs/fonts/* htdocs/index.html + htdocs/player.html ) set(SOURCES diff --git a/README.md b/README.md index bc14cb8..4bf91f2 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ Run flags ``` Usage: ./ympd [OPTION]... + -D, --digest path to htdigest file for authorization + (realm ympd) [no authorization] -h, --host connect to mpd at host [localhost] -p, --port connect to mpd at port [6600] -w, --webport [ip:] listen interface/port for webserver [8080] @@ -52,6 +54,12 @@ To run ympd with SSL support: # ./ympd -w "ssl://8081:/path/to/ssl.pem" ``` +Dirble support +-------------- + +1. Get an API-key from http://dirble.com +2. Add the key at ```var TOKEN = "";```, in ```mpd.js```. + Copyright --------- diff --git a/contrib/init.debian b/contrib/init.debian index 943e4de..012adf1 100755 --- a/contrib/init.debian +++ b/contrib/init.debian @@ -25,6 +25,7 @@ MPD_HOST=localhost MPD_PORT=6600 WEB_PORT=8080 DIRBLE_API_TOKEN=2e223c9909593b94fc6577361a +#DIGEST=--digest /path/to/htdigest # Exit if the package is not installed @@ -36,7 +37,7 @@ DIRBLE_API_TOKEN=2e223c9909593b94fc6577361a # 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 --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 $DIGEST" do_start() { diff --git a/contrib/ympd.default b/contrib/ympd.default index cb3ca72..27e9ebb 100644 --- a/contrib/ympd.default +++ b/contrib/ympd.default @@ -4,3 +4,4 @@ MPD_PASSWORD= WEB_PORT=8080 YMPD_USER=nobody DIRBLE_API_TOKEN=2e223c9909593b94fc6577361a +#DIGEST=--digest /path/to/htdigest diff --git a/contrib/ympd.service b/contrib/ympd.service index 7b42ebb..4151534 100644 --- a/contrib/ympd.service +++ b/contrib/ympd.service @@ -9,8 +9,9 @@ Environment=MPD_PASSWORD= Environment=WEB_PORT=8080 Environment=YMPD_USER=nobody Environment=DIRBLE_API_TOKEN=2e223c9909593b94fc6577361a +Environment=DIGEST= 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_TOKE $DIGEST Type=simple [Install] diff --git a/htdocs/css/mpd.css b/htdocs/css/mpd.css index 647bfc7..85401cb 100644 --- a/htdocs/css/mpd.css +++ b/htdocs/css/mpd.css @@ -15,6 +15,12 @@ body { margin-bottom: 0; } + +button { + overflow: hidden; +} + + #volume-icon { float: left; margin-right: 10px; diff --git a/htdocs/index.html b/htdocs/index.html index 9d8f9a3..2ce9359 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -34,7 +34,7 @@