From b11195512eb0ea4ebd7a250a5bdbe15ee45942a1 Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 6 May 2016 13:14:48 +0000 Subject: [PATCH] generate fresh meta file when playing from directory svn path=/trunk/; revision=127 --- actions/watch.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 \ -- 2.39.2