prevent repeating videos
This commit is contained in:
parent
c406d695cc
commit
a5baa46807
|
@ -30,5 +30,11 @@ fi
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
file="$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)"
|
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
|
$player $playerparam $file
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue