prevent repeating videos

This commit is contained in:
mmaster 2021-09-21 23:48:25 +02:00
parent c406d695cc
commit a5baa46807
1 changed files with 6 additions and 0 deletions

View File

@ -30,5 +30,11 @@ fi
while true; do
file="$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)"
while [ "$file" == "$oldfile" ]; do
file="$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)"
done
oldfile="$file"
$player $playerparam $file
done