diff --git a/RandomVideo.sh b/RandomVideo.sh index 7e6bd72..da79e09 100755 --- a/RandomVideo.sh +++ b/RandomVideo.sh @@ -29,6 +29,6 @@ if $(command -v pgrep) omxplayer > /dev/null; then else playerpath=$(command -v "$player") - $playerpath "$(find "$folder" -maxdepth 1 ! -name "$(basename $folder)"|sort -R |head -n1)" & + $playerpath "$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)" & fi