From d2c229997f1bec9fe72499dfd76809929c4c21d8 Mon Sep 17 00:00:00 2001 From: panel-sk Date: Fri, 9 Feb 2018 12:52:51 +0100 Subject: [PATCH] Update startvideos.sh you have to increment "current" after playing file with index 0, because player will start from second video (current=1) --- startvideos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startvideos.sh b/startvideos.sh index 4c6c6b1..5d0db46 100755 --- a/startvideos.sh +++ b/startvideos.sh @@ -42,12 +42,12 @@ if pgrep omxplayer > /dev/null then echo 'running' else - let current+=1 if [ $current -ge $max ] then current=0 fi /usr/bin/omxplayer -r -o "$audio_source" "$FILES${vids[$current]}" + let current+=1 fi done