Advertisement
Guest User

Untitled

a guest
Nov 20th, 2012
2,197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.17 KB | None | 0 0
  1. @ECHO Off
  2. IF NOT EXIST "%PROGRAMFILES(X86)%" ( GOTO main32
  3. ) ELSE ( GOTO main
  4. )
  5.  
  6. :main32
  7. ECHO Livestreamer Batch script
  8. ECHO Input the url of the streamer.
  9. ECHO Example:own3d.tv/SaintVicious or twitch.tv/wingsofdeath
  10. Set /p Input=Go:
  11. ECHO It will show the quality possibilities of streaming.
  12. timeout /T 2 > NUL
  13. "%PROGRAMFILES%\Livestreamer\livestreamer.exe" %Input% 2> tmp.txt
  14. find /c /i "error" tmp.txt > NUL
  15. IF %ERRORLEVEL% EQU 1 ( goto start32
  16. ) ELSE (
  17. goto main322
  18. )
  19.  
  20. :main322
  21. del tmp.txt
  22. ECHO _______________________________
  23. ECHO Wrong input or streamer is offline
  24. ECHO _______________________________
  25. ECHO Input the url of the streamer.
  26. ECHO Example:own3d.tv/SaintVicious or twitch.tv/wingsofdeath
  27. Set /p Input=Go:
  28. ECHO It will show the quality possibilities of streaming.
  29. timeout /T 2 > NUL
  30. "%PROGRAMFILES%\Livestreamer\livestreamer.exe" %Input% 2> tmp.txt
  31. find /c /i "error" tmp.txt > NUL
  32. IF %ERRORLEVEL% EQU 1 ( goto start32
  33. ) ELSE (
  34. goto main322
  35. )
  36.  
  37. :start32
  38. del tmp.txt
  39. set /p quality=Now write the quality you want to watch in:
  40. "C:\Program Files\Livestreamer\livestreamer.exe" %Input% %quality% > nul
  41.  
  42. :main
  43. ECHO Livestreamer Batch script
  44. ECHO Input the url of the streamer.
  45. ECHO Example:own3d.tv/SaintVicious or twitch.tv/wingsofdeath
  46. Set /p Input=Go:
  47. ECHO It will show the quality possibilities of streaming.
  48. timeout /T 2 > NUL
  49. "%PROGRAMFILES(X86)%\Livestreamer\livestreamer.exe" %Input% 2> tmp.txt
  50. find /c /i "error" tmp.txt > NUL
  51. IF %ERRORLEVEL% EQU 1 ( goto start
  52. ) ELSE (
  53. goto main2
  54. )
  55.  
  56. :main2
  57. del tmp.txt
  58. ECHO _______________________________
  59. ECHO Wrong input or streamer is offline
  60. ECHO _______________________________
  61. ECHO Input the url of the streamer.
  62. ECHO Example:own3d.tv/SaintVicious or twitch.tv/wingsofdeath
  63. Set /p Input=Go:
  64. ECHO It will show the quality possibilities of streaming.
  65. timeout /T 2 > NUL
  66. "%PROGRAMFILES(X86)%\Livestreamer\livestreamer.exe" %Input% 2> tmp.txt
  67. find /c /i "error" tmp.txt > NUL
  68. IF %ERRORLEVEL% EQU 1 ( goto start
  69. ) ELSE (
  70. goto main2
  71. )
  72.  
  73. :start
  74. del tmp.txt
  75. set /p quality=Now write the quality you want to watch in:
  76. "C:\Program Files (x86)\Livestreamer\livestreamer.exe" %Input% %quality% > nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement