|
|
@ -1,6 +1,6 @@
|
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
#ajw v1.50 - jukebox for asterisk wizard
|
|
|
|
#ajw v1.51 - jukebox for asterisk wizard
|
|
|
|
#Jay Moore/NQ4T - https://git.pickmy.org/dewdude/Asterisk_Jukebox
|
|
|
|
#Jay Moore/NQ4T - https://git.pickmy.org/dewdude/Asterisk_Jukebox
|
|
|
|
#Twitter: @Music_OnHold
|
|
|
|
#Twitter: @Music_OnHold
|
|
|
|
#Licensed under GPL-3.0-or-later
|
|
|
|
#Licensed under GPL-3.0-or-later
|
|
|
@ -36,7 +36,7 @@ printf "same = n,GoTo(cart-player,*\${EXTEN:-2},1)\n\n"
|
|
|
|
|
|
|
|
|
|
|
|
# main
|
|
|
|
# main
|
|
|
|
interactive() {
|
|
|
|
interactive() {
|
|
|
|
printf "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n |a|j|w| - asterisk jukebox wizard\n version 1.50 - Jay Moore/NQ4T\ngit.pickmy.org/dewdude/Asterisk_Jukebox\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n\n\n"
|
|
|
|
printf "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n |a|j|w| - asterisk jukebox wizard\n version 1.51 - Jay Moore/NQ4T\ngit.pickmy.org/dewdude/Asterisk_Jukebox\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n\n\n"
|
|
|
|
printf "Pick a name/identifier for this jukebox: "
|
|
|
|
printf "Pick a name/identifier for this jukebox: "
|
|
|
|
read -r name
|
|
|
|
read -r name
|
|
|
|
printf "\nEnter the folder your jukebox roots live under. (Leave blank if they're under %s): " "$asd"
|
|
|
|
printf "\nEnter the folder your jukebox roots live under. (Leave blank if they're under %s): " "$asd"
|
|
|
@ -63,7 +63,7 @@ bye;
|
|
|
|
|
|
|
|
|
|
|
|
# album context loop
|
|
|
|
# album context loop
|
|
|
|
loop() {
|
|
|
|
loop() {
|
|
|
|
dir=$(find "$asd""$rootfolder" -mindepth 1 -type d -printf '%f\n' | sort -n)
|
|
|
|
dir=$(find "$asd""$rootfolder" -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort -n)
|
|
|
|
a=0
|
|
|
|
a=0
|
|
|
|
for folder in $dir
|
|
|
|
for folder in $dir
|
|
|
|
do
|
|
|
|
do
|
|
|
|