MikeYankeeOscarBeta / PiFMPlay

Its a terminal music player addon, for use with pifm(FM-Transmitter) on a raspberry pi mini computer.
100 stars 37 forks source link

how to repeat all the songs again and again? #7

Open theshubhamk opened 9 years ago

theshubhamk commented 9 years ago

It stops after playing all the songs in the folder. but i want to repeat the songs in folder and never stop till i press cntrl+c

theshubhamk commented 9 years ago

Well i have found the solution myself. open pifmplay shell file. u can type ' nano pifmplay '. and the find the lines given below

playfolder() {

could and should be recursive, but meh.

echo "DEBUG: playfolder"
#this should play all the files in the folder
for file in $1/*;
do
{
    playit "$file" $2
}
done

in the above line just add while : infinite loop as shown below

playfolder() {

could and should be recursive, but meh.

echo "DEBUG: playfolder"
#this should play all the files in the folder
    while :
    do
     for file in $1/*;
do
{
    playit "$file" $2
}
done
   done

thank you