From: paul Date: Fri, 6 May 2016 13:14:48 +0000 (+0000) Subject: generate fresh meta file when playing from directory X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=b11195512eb0ea4ebd7a250a5bdbe15ee45942a1;p=serve0 generate fresh meta file when playing from directory svn path=/trunk/; revision=127 --- diff --git a/actions/watch.sh b/actions/watch.sh index 3fae936..796c654 100755 --- a/actions/watch.sh +++ b/actions/watch.sh @@ -64,8 +64,12 @@ case "${_COOKIE[watch]}" in debug PLAYURI "$playuri" - [ -f "$metafile" ] && cp "$metafile" "$playmeta" \ - || "${_EXEC}"/helpers/genmeta.sh "$playuri" "$playmeta" >/dev/null + if [ -f "$metafile" ]; done + cp "$metafile" "$playmeta" + else + rm "$playmeta" + "${_EXEC}"/helpers/genmeta.sh "$playuri" "$playmeta" >/dev/null + fi DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1006 \ nohup /usr/bin/mplayer -ao pulse \