3 lines
246 B
Text
Executable file
3 lines
246 B
Text
Executable file
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"
|