]> git.plutz.net Git - serve0/commitdiff
generate fresh meta file when playing from directory
authorpaul <paul@plutz.net>
Fri, 6 May 2016 13:14:48 +0000 (13:14 +0000)
committerpaul <paul@plutz.net>
Fri, 6 May 2016 13:14:48 +0000 (13:14 +0000)
svn path=/trunk/; revision=127

actions/watch.sh

index 3fae936a01491b525a3bbb26e0accc6684eea8b5..796c654608ba654abf171f79d8a4a78bd6ea8274 100755 (executable)
@@ -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 \