Advertisement
njordHu

sorozat.bash

Sep 30th, 2018
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. #!/bin/bash
  2. # Telepitsd fel a a shuff es a dialog programot.
  3. # Sorozat lejatszas Online
  4. #$(while true ; do clear ;
  5. # $(shuf -i1-10 -n1)_evad/$(shuf -i1-10 -n1)_resz/ ; clear ; done)
  6.  
  7. DIALOG_CANCEL="1"
  8. DIALOG_ESC="255"
  9. HEIGHT="0"
  10. WIDTH="0"
  11. PLAY="mpv -fs -start 0:50 --volume 65"
  12. WEB="http://jobbmintatv.hu/online/"
  13. SOR1="A_Simpson_csalad/"
  14. SOR2="South_Park/"
  15. SOR3="Agymenok/"
  16. SOR4="Archer/"
  17. SOR5="Rick_es_Morty/"
  18. SOR6="Brickleberry/"
  19. SOR7=""
  20. SOR8=''
  21. SOR9=""
  22. SOR10=""
  23. SOR11=""
  24. SOR12=""
  25. SOR13=""
  26. SOR14=""
  27. SOR15=""
  28. display_result() {
  29. dialog --title "$1" \
  30. --no-collapse \
  31. --msgbox "$result" 0 0
  32. }
  33.  
  34. while true; do
  35. exec 3>&1
  36. selection=$(dialog \
  37. --backtitle "Sorozatok lejatszasa Online. Dialog mpv shuf mps-youtube programok kellenek, " \
  38. --title "SOROZAT" \
  39. --clear \
  40. --cancel-label "KILEPES" \
  41. --menu "VALASSZ EGYET:" $HEIGHT $WIDTH 4 \
  42. "1" "$SOR1" \
  43. "2" "$SOR2" \
  44. "3" "$SOR3" \
  45. "4" "$SOR4" \
  46. "5" "$SOR5" \
  47. "6" "$SOR6" \
  48. "7" "$SOR7" \
  49. "8" "$SOR8" \
  50. "9" "$SOR9" \
  51. "10" "$SOR10" \
  52. "11" "$SOR11" \
  53. "12" "$SOR12" \
  54. "13" "$SOR13" \
  55. "14" "$SOR14" \
  56. "15" "$SOR15" \
  57. 2>&1 1>&3)
  58. exit_status=$?
  59. exec 3>&-
  60. case $exit_status in
  61. $DIALOG_CANCEL)
  62. clear
  63. echo "Program terminated."
  64. exit
  65. ;;
  66. $DIALOG_ESC)
  67. clear
  68. echo "Program aborted." >&2
  69. exit 1
  70. ;;
  71. esac
  72. case $selection in
  73. 0 )
  74. clear
  75. echo "Program terminated."
  76. ;;
  77.  
  78. 1 )
  79. result=$(while true ; do clear ; $PLAY $WEB$SOR1$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  80. display_result "$SOR1"
  81. ;;
  82. 2 )
  83. result=$(while true ; do clear ; $PLAY $WEB$SOR2$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  84. display_result "$SOR2"
  85.  
  86. ;;
  87. 3 )
  88.  
  89. result=$(while true ; do clear ; $PLAY $WEB$SOR3$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  90. display_result "$SOR3"
  91.  
  92. ;;
  93.  
  94. 4 )
  95.  
  96. result=$(while true ; do clear ; $PLAY $WEB$SOR4$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  97. display_result "$SOR4"
  98.  
  99. ;;
  100. 5 )
  101.  
  102. result=$(while true ; do clear ; $PLAY $WEB$SOR5$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  103. display_result "$SOR5"
  104.  
  105. ;;
  106. 6 )
  107. result=$(while true ; do clear ; $PLAY $WEB$SOR6$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  108. display_result "$SOR6"
  109. ;;
  110.  
  111.  
  112. 7 )
  113. result=$(while true ; do clear ; $PLAY $WEB$SOR7$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  114. display_result "$SOR7"
  115. ;;
  116.  
  117. 8 )
  118. result=$(while true ; do clear ; $PLAY $WEB$SOR8$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  119. display_result "$SOR8"
  120. ;;
  121. 9 )
  122. result=$(while true ; do clear ; $PLAY $WEB$SOR9$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  123. display_result "$SOR9"
  124. ;;
  125. 10 )
  126. result=$(while true ; do clear ; $PLAY $WEB$SOR10$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  127. display_result "$SOR10"
  128. ;;
  129. 11 ) result=$(while true ; do clear ; $PLAY $WEB$SOR11$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  130. display_result "$SOR11"
  131. ;;
  132. 12 ) result=$(while true ; do clear ; $PLAY $WEB$SOR12$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  133. display_result "$SOR12"
  134. ;;
  135. 13 )
  136. result=$(while true ; do clear ; $PLAY $WEB$SOR13$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  137. display_result "$SOR13"
  138. ;;
  139. 14 ) result=$(while true ; do clear ; $PLAY $WEB$SOR14$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  140. display_result "$SOR14"
  141. ;;
  142. 15 )
  143. result=$(while true ; do clear ; $PLAY $WEB$SOR15$(shuf -i1-30 -n1)_evad/$(shuf -i1-30 -n1)_resz/ ; done)
  144. display_result "$SOR15"
  145. ;;
  146. esac
  147. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement