Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 19th, 2012  |  syntax: DOS  |  size: 2.08 KB  |  views: 868  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. :main32
  2. ECHO Livestreamer Batch script
  3. ECHO Input the url of the streamer.
  4. ECHO Example:own3d.tv/SaintVicious or twitch.tv/wingsofdeath
  5. Set /p Input=Go:
  6. ECHO It will show the quality possibilities of streaming.
  7. timeout /T 2 > NUL
  8. "%PROGRAMFILES%\Livestreamer\livestreamer.exe" %Input% 2> tmp.txt
  9. find /c /i "error" tmp.txt > NUL
  10. IF %ERRORLEVEL% EQU 0 ( goto main322
  11. ) ELSE (
  12. goto start32
  13. )
  14.  
  15. :main322
  16. del tmp.txt
  17. ECHO _______________________________
  18. ECHO Wrong input or streamer is offline
  19. ECHO _______________________________
  20. ECHO Input the url of the streamer.
  21. ECHO Example:own3d.tv/SaintVicious or twitch.tv/wingsofdeath
  22. Set /p Input=Go:
  23. ECHO It will show the quality possibilities of streaming.
  24. timeout /T 2 > NUL
  25. "%PROGRAMFILES%\Livestreamer\livestreamer.exe" %Input% 2> tmp.txt
  26. find /c /i "error" tmp.txt > NUL
  27. IF %ERRORLEVEL% EQU 0 ( goto main322
  28. ) ELSE (
  29. goto start32
  30. )
  31.  
  32. :start32
  33. del tmp.txt
  34. set /p quality=Now write the quality you want to watch in:
  35. "C:\Program Files\Livestreamer\livestreamer.exe" %Input% %quality% > nul
  36.  
  37. :main
  38. ECHO Livestreamer Batch script
  39. ECHO Input the url of the streamer.
  40. ECHO Example:own3d.tv/SaintVicious or twitch.tv/wingsofdeath
  41. Set /p Input=Go:
  42. ECHO It will show the quality possibilities of streaming.
  43. timeout /T 2 > NUL
  44. "%PROGRAMFILES(X86)%\Livestreamer\livestreamer.exe" %Input% 2> tmp.txt
  45. find /c /i "error" tmp.txt > NUL
  46. IF %ERRORLEVEL% EQU 0 ( goto main2
  47. ) ELSE (
  48. goto start
  49. )
  50.  
  51. :main2
  52. del tmp.txt
  53. ECHO _______________________________
  54. ECHO Wrong input or streamer is offline
  55. ECHO _______________________________
  56. ECHO Input the url of the streamer.
  57. ECHO Example:own3d.tv/SaintVicious or twitch.tv/wingsofdeath
  58. Set /p Input=Go:
  59. ECHO It will show the quality possibilities of streaming.
  60. timeout /T 2 > NUL
  61. "%PROGRAMFILES(X86)%\Livestreamer\livestreamer.exe" %Input% 2> tmp.txt
  62. find /c /i "error" tmp.txt > NUL
  63. IF %ERRORLEVEL% EQU 0 ( goto main2
  64. ) ELSE (
  65. goto start
  66. )
  67.  
  68. :start
  69. del tmp.txt
  70. set /p quality=Now write the quality you want to watch in:
  71. "C:\Program Files (x86)\Livestreamer\livestreamer.exe" %Input% %quality% > nul