Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Telepitsd fel a a shuff es a dialog programot.
- # Sorozat lejatszas Online
- #$(while true ; do clear ;
- # $(shuf -i1-10 -n1)_evad/$(shuf -i1-10 -n1)_resz/ ; clear ; done)
- DIALOG_CANCEL="1"
- DIALOG_ESC="255"
- HEIGHT="0"
- WIDTH="0"
- PLAY="mpv -fs -start 0:50 --volume 65"
- WEB="http://jobbmintatv.hu/online/"
- SOR1="A_Simpson_csalad/"
- SOR2="South_Park/"
- SOR3="Agymenok/"
- SOR4="Archer/"
- SOR5="Rick_es_Morty/"
- SOR6="Brickleberry/"
- SOR7=""
- SOR8=''
- SOR9=""
- SOR10=""
- SOR11=""
- SOR12=""
- SOR13=""
- SOR14=""
- SOR15=""
- display_result() {
- dialog --title "$1" \
- --no-collapse \
- --msgbox "$result" 0 0
- }
- while true; do
- exec 3>&1
- selection=$(dialog \
- --backtitle "Sorozatok lejatszasa Online. Dialog mpv shuf mps-youtube programok kellenek, " \
- --title "SOROZAT" \
- --clear \
- --cancel-label "KILEPES" \
- --menu "VALASSZ EGYET:" $HEIGHT $WIDTH 4 \
- "1" "$SOR1" \
- "2" "$SOR2" \
- "3" "$SOR3" \
- "4" "$SOR4" \
- "5" "$SOR5" \
- "6" "$SOR6" \
- "7" "$SOR7" \
- "8" "$SOR8" \
- "9" "$SOR9" \
- "10" "$SOR10" \
- "11" "$SOR11" \
- "12" "$SOR12" \
- "13" "$SOR13" \
- "14" "$SOR14" \
- "15" "$SOR15" \
- 2>&1 1>&3)
- exit_status=$?
- exec 3>&-
- case $exit_status in
- $DIALOG_CANCEL)
- clear
- echo "Program terminated."
- exit
- ;;
- $DIALOG_ESC)
- clear
- echo "Program aborted." >&2
- exit 1
- ;;
- esac
- case $selection in
- 0 )
- clear
- echo "Program terminated."
- ;;
- 1 )
- result=$(while true ; do clear ; $PLAY $WEB$SOR1$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR1"
- ;;
- 2 )
- result=$(while true ; do clear ; $PLAY $WEB$SOR2$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR2"
- ;;
- 3 )
- result=$(while true ; do clear ; $PLAY $WEB$SOR3$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR3"
- ;;
- 4 )
- result=$(while true ; do clear ; $PLAY $WEB$SOR4$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR4"
- ;;
- 5 )
- result=$(while true ; do clear ; $PLAY $WEB$SOR5$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR5"
- ;;
- 6 )
- result=$(while true ; do clear ; $PLAY $WEB$SOR6$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR6"
- ;;
- 7 )
- result=$(while true ; do clear ; $PLAY $WEB$SOR7$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR7"
- ;;
- 8 )
- result=$(while true ; do clear ; $PLAY $WEB$SOR8$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR8"
- ;;
- 9 )
- result=$(while true ; do clear ; $PLAY $WEB$SOR9$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR9"
- ;;
- 10 )
- result=$(while true ; do clear ; $PLAY $WEB$SOR10$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR10"
- ;;
- 11 ) result=$(while true ; do clear ; $PLAY $WEB$SOR11$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR11"
- ;;
- 12 ) result=$(while true ; do clear ; $PLAY $WEB$SOR12$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR12"
- ;;
- 13 )
- result=$(while true ; do clear ; $PLAY $WEB$SOR13$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR13"
- ;;
- 14 ) result=$(while true ; do clear ; $PLAY $WEB$SOR14$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR14"
- ;;
- 15 )
- result=$(while true ; do clear ; $PLAY $WEB$SOR15$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
- display_result "$SOR15"
- ;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement