bin: fix vlc playing via focus & vp

This commit is contained in:
xerus2000 2021-01-02 19:53:10 +01:00
parent 5dd1d6a2d2
commit a6e8f3f00f
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,3 @@
playlistPath="$MUSIC/Playlists"
result="$(test "$1" && (find $playlistPath -iname "focus-$1.m3u8" | grep . || find $playlistPath -iname "$1.m3u*" | grep . || find $MUSIC -iname "*$1*") | head -1 || echo "$playlistPath/focus.m3u8" )"
vp "$result"
result="$(test "$1" && (find -L $playlistPath -iname "focus-$1.m3u8" | grep . || find -L $playlistPath -iname "$1.m3u*" | grep . || find -L $MUSIC -iname "*$1*") | head -1 || echo "$playlistPath/focus.m3u8" )"
test "$result" && vp "$result"

View File

@ -1,3 +1,4 @@
#!/bin/sh
# restarts VLS with the given paths
killall -q vlc
vlc --no-qt-error-dialogs --qt-start-minimized --qt-notification 0 --loop --random "$@" >/dev/null 2>&1 &