Guest User

Untitled

a guest
Feb 6th, 2025
1,106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.80 KB | Source Code | 0 0
  1. @echo off
  2. :menu
  3. cls
  4. echo.
  5. call :check_stream "https://www.huya.com/20072620" "Table 1"
  6. call :check_stream "https://www.huya.com/20072621" "Table 2"
  7. call :check_stream "https://www.huya.com/18501408" "Table 3"
  8. call :check_stream "https://www.huya.com/18501324" "Table 4"
  9. call :check_stream "https://www.huya.com/17455465" "Table 5"
  10. call :check_stream "https://www.huya.com/18501329" "Table 6"
  11. call :check_stream "https://www.huya.com/18501166" "Table 7"
  12. call :check_stream "https://www.huya.com/17611732" "Table 8"
  13. echo 9. Exit
  14. echo.
  15. set /p choice=Enter your Table (1-8) or 9 to Exit:
  16.  
  17. if "%choice%"=="1" goto table1
  18. if "%choice%"=="2" goto table2
  19. if "%choice%"=="3" goto table3
  20. if "%choice%"=="4" goto table4
  21. if "%choice%"=="5" goto table5
  22. if "%choice%"=="6" goto table6
  23. if "%choice%"=="7" goto table7
  24. if "%choice%"=="8" goto table8
  25. if "%choice%"=="9" goto exit
  26. goto menu
  27.  
  28. :table1
  29. streamlink https://www.huya.com/20072620 best
  30. goto menu
  31.  
  32. :table2
  33. streamlink https://www.huya.com/20072621 best
  34. goto menu
  35.  
  36. :table3
  37. streamlink https://www.huya.com/18501408 best
  38. goto menu
  39.  
  40. :table4
  41. streamlink https://www.huya.com/18501324 best
  42. goto menu
  43.  
  44. :table5
  45. streamlink https://www.huya.com/17455465 best
  46. goto menu
  47.  
  48. :table6
  49. streamlink https://www.huya.com/18501329 best
  50. goto menu
  51.  
  52. :table7
  53. streamlink https://www.huya.com/18501166 best
  54. goto menu
  55.  
  56. :table8
  57. streamlink https://www.huya.com/17611732 best
  58. goto menu
  59.  
  60. :exit
  61. echo Exiting...
  62. goto :eof
  63.  
  64. :check_stream
  65. setlocal
  66. set stream_url=%1
  67. set stream_name=%2
  68. streamlink %stream_url% best --stream-url | findstr /c:"error: No playable streams found on this URL:" >nul
  69. if errorlevel 1 (
  70.     echo %stream_name% - streamlink %stream_url% best - available
  71. ) else (
  72.     echo %stream_name% - streamlink %stream_url% best - offline
  73. )
  74. endlocal
  75. goto :eof
  76.  
Advertisement
Add Comment
Please, Sign In to add comment