bin: fix vlc playing via focus & vp
This commit is contained in:
parent
5dd1d6a2d2
commit
a6e8f3f00f
|
@ -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"
|
||||
|
|
|
@ -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 &
|
||||
|
|
Loading…
Reference in New Issue