Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- SETLOCAL EnableDelayedExpansion
- for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
- set "DEL=%%a"
- )
- REM ------------------------------------------------------------
- REM Hello user,
- REM If the script could not find the location of your VLC Media Player
- REM and asked you to edit the .bat file, this is what you need to do.
- REM 1) Find the path to your VLC Media Player installation
- REM 2) Add it to the "set vlcpath=" line below
- REM Example: set vlcpath=C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
- set vlcpath=
- REM 3) Save this document and exit, then try again
- REM ------------------------------------------------------------
- echo.
- echo -------------------------------------------------------------------------------
- echo.
- call :ColorText 0e "STARCRAFT STREAM VIEWER FOR STREAMLINK + VLC MEDIA PLAYER"
- echo.
- call :Colortext 0d "This bat file requires Streamlink and VLC to be installed"
- echo.
- if "%vlcpath%"=="" (
- for /f "delims=" %%F in ('dir /b /s "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" 2^>nul') do set vlcpath=%%F
- for /f "delims=" %%F in ('dir /b /s "C:\Program Files\VideoLAN\VLC\vlc.exe" 2^>nul') do set vlcpath=%%F
- for /f "delims=" %%F in ('dir /b /s "C:\VideoLAN\VLC\vlc.exe" 2^>nul') do set vlcpath=%%F
- for /f "delims=" %%F in ('dir /b /s "C:\VLC\vlc.exe" 2^>nul') do set vlcpath=%%F
- for /f "delims=" %%F in ('dir /b /s "D:\Program Files (x86)\VideoLAN\VLC\vlc.exe" 2^>nul') do set vlcpath=%%F
- for /f "delims=" %%F in ('dir /b /s "D:\Program Files\VideoLAN\VLC\vlc.exe" 2^>nul') do set vlcpath=%%F
- for /f "delims=" %%F in ('dir /b /s "D:\VideoLAN\VLC\vlc.exe" 2^>nul') do set vlcpath=%%F
- for /f "delims=" %%F in ('dir /b /s "D:\VLC\vlc.exe" 2^>nul') do set vlcpath=%%F
- )
- if "%vlcpath%"=="" (
- echo.
- echo -------------------------------------------------------------------------------
- echo.
- echo ERROR: VLC PATH NOT FOUND
- echo.
- call :ColorText 0c "a) You EITHER do not have VLC Media Player installed, or"
- echo.
- call :ColorText 0c "b) You have VLC Media Player installed to a custom folder"
- echo.
- echo.
- echo If b, you will need to edit this .bat file to point to the proper location.
- echo Open the .bat file in a text editor and follow the instructions at the top.
- echo.
- call :ColorText 0c "Press any key to exit"
- echo.
- echo.
- echo -------------------------------------------------------------------------------
- echo.
- pause>nul
- EXIT
- )
- REM Set CDN options for Afreeca
- :CDN
- echo.
- echo -------------------------------------------------------------------------------
- echo.
- call :ColorText 0e "Set Afreeca CDN server"
- echo.
- call :ColorText 0c "Only impacts Afreeca. Switch CDN if Afreeca lags for you"
- echo.
- echo.
- call :ColorText 0d " 1"
- call :ColorText 0f " Amazon AWS
- echo.
- call :ColorText 0d " 2"
- call :ColorText 0f " GSCDN
- echo.
- echo.
- set /p cdn="> "
- 2>NUL CALL :CDN_%cdn%
- IF ERRORLEVEL 1 CALL :DEFAULT_CDN
- :CDN_1
- set cdn=aws
- echo.
- call :ColorText 0f "CDN set to"
- call :ColorText 0c " Amazon AWS"
- echo.
- GOTO STREAM
- :CDN_2
- set cdn=gs
- echo.
- call :ColorText 0f "CDN set to"
- call :ColorText 0c " GSCDN"
- echo.
- GOTO STREAM
- :DEFAULT_CDN
- set cdn=gs
- echo.
- call :ColorText 0f "Unintelligible garbage input by user, defaulted to GSCDN"
- echo.
- GOTO STREAM
- :STREAM
- echo.
- echo -------------------------------------------------------------------------------
- echo.
- call :ColorText 0d "Name"
- call :ColorText 0f " or"
- call :ColorText 0d " ID"
- call :ColorText 0f " of player"
- call :ColorText 0f " [or"
- call :ColorText 0d " .help"
- call :ColorText 0f ", "
- call :ColorText 0d " .setup"
- call :ColorText 0f ", "
- call :ColorText 0d " .online"
- call :ColorText 0f ", "
- call :ColorText 0d " .tl"
- call :ColorText 0f "]"
- echo.
- :loop
- REM Set default service, changes if no Afreeca streamer is found
- set service=Afreeca
- set /p name="> "
- :TRY_AGAIN
- 2>NUL CALL :CASE_%name%
- IF ERRORLEVEL 1 CALL :DEFAULT_CASE
- :CASE_.online
- start "" https://bwstreams.appspot.com
- start "" https://www.twitch.tv/directory/game/StarCraft
- echo Launching online players lists in your browser...
- GOTO STREAM
- :CASE_.tl
- :CASE_.teamliquid
- start "" http://www.teamliquid.net/forum/brood-war/512913-guide-watch-afreeca-sc-bw-streams-with-vlc
- echo Launching TeamLiquid thread in your browser...
- GOTO STREAM
- :CASE_.setup
- GOTO CDN
- :CASE_.help
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo -------------------------------------------------------------------------------
- echo.
- call :ColorText 0e "HOW TO USE"
- echo.
- echo.
- echo ^> Bisu
- echo.
- echo To begin watching a stream, enter a nickname or stream ID. The script will try
- echo to find the live stream on Afreeca or Twitch. When prompted, set the desired
- echo quality option. If a Twitch stream is not partnered, use SOURCE.
- echo.
- echo If the script cannot find the specified player, you will be asked if you wish
- echo to attempt to connect to that ID regardless. You can connect to any Afreeca or
- echo Twitch stream this way so long as you know the ID.
- echo.
- echo.
- call :ColorText 0e "SHOW ONLINE PLAYERS"
- echo.
- echo.
- echo ^> .online
- echo.
- echo Launches the following URLs in your browser:
- echo https://bwstreams.appspot.com/
- echo https://www.twitch.tv/directory/game/StarCraft
- echo.
- echo.
- call :ColorText 0e "SET CDN OPTIONS"
- echo.
- echo.
- echo ^> .setup
- echo.
- echo If Afreeca streams lag or buffer frequently, switching the Afreeca CDN server
- echo may help. This only impacts Afreeca streams.
- echo.
- echo.
- call :ColorText 0e "TROUBLESHOOTING"
- echo.
- echo.
- echo 1) If an AFREECA stream is buffering, switching the CDN can help. If it still
- echo lags, try a lower quality option. Switching CDN usually helps, but not always.
- echo.
- echo 2) If an AFREECA stream displays a countdown timer, close VLC and try again.
- echo This happens some times, possibly due to CDN or ad-service problems.
- echo.
- echo 3) Some TWITCH streams do not have quality options available. If lower options
- echo fail, select SOURCE.
- echo.
- echo 4) For further info, read the TeamLiquid thread by typing .tl or .teamliquid
- GOTO STREAM
- REM Afreeca players (mostly Korean pros)
- :CASE_41tv
- :CASE_isee1541
- set id=isee1541
- GOTO PLAYER_START
- :CASE_910
- :CASE_kuyol
- set id=kuyol
- GOTO PLAYER_START
- :CASE_action
- :CASE_tjdeosks
- set id=tjdeosks
- GOTO PLAYER_START
- :CASE_air
- :CASE_rudwk1220
- set id=rudwk1220
- GOTO PLAYER_START
- :CASE_ample
- :CASE_sasin
- :CASE_hoonykkk
- set id=hoonykkk
- GOTO PLAYER_START
- :CASE_anytime
- :CASE_zeusboy2714
- set id=zeusboy2714
- GOTO PLAYER_START
- :CASE_asl
- :CASE_aslkor
- :CASE_afstar1
- :CASE_starleague
- set id=afstar1
- GOTO PLAYER_START
- :CASE_asleng
- :CASE_asleng1
- :CASE_aslenglish
- :CASE_asl english
- set id=aslenglish
- GOTO PLAYER_START
- :CASE_asleng2
- :CASE_aslenglish2
- :CASE_asl english 2
- :CASE_asl2eng2
- set id=asl2eng2
- GOTO PLAYER_START
- :CASE_autumn
- :CASE_onstyles
- set id=onstyles
- GOTO PLAYER_START
- :CASE_backho
- :CASE_cksdnddldhkd
- set id=cksdnddldhkd
- GOTO PLAYER_START
- :CASE_bctv
- :CASE_1a2a3a
- set id=1a2a3a
- GOTO PLAYER_START
- :CASE_beast
- :CASE_rjsrkdgkwk12
- set id=rjsrkdgkwk12
- GOTO PLAYER_START
- :CASE_best
- :CASE_wodnrdldia
- set id=wodnrdldia
- GOTO PLAYER_START
- :CASE_bisu
- :CASE_rlaxordyd
- set id=rlaxordyd
- GOTO PLAYER_START
- :CASE_boxer
- :CASE_sblyh119
- set id=sblyh119
- GOTO PLAYER_START
- :CASE_brave
- :CASE_xorbzzang111
- set id=xorbzzang111
- GOTO PLAYER_START
- :CASE_britney
- :CASE_khm11903
- set id=khm11903
- GOTO PLAYER_START
- :CASE_spire
- :CASE_by.spire
- :CASE_idch0726
- set id=idch0726
- GOTO PLAYER_START
- :CASE_calm
- :CASE_brainzerg7
- set id=brainzerg7
- GOTO PLAYER_START
- :CASE_carry
- :CASE_imcarry
- set id=imcarry
- GOTO PLAYER_START
- :CASE_casy
- set id=casy
- GOTO PLAYER_START
- :CASE_cola
- :CASE_nojaesang
- set id=nojaesang
- GOTO PLAYER_START
- :CASE_dongrae
- set id=dongrae
- GOTO PLAYER_START
- :CASE_eagle
- :CASE_cjsdkxjddlf
- set id=cjsdkxjddlf
- GOTO PLAYER_START
- :CASE_effort
- :CASE_momo130
- set id=momo130
- GOTO PLAYER_START
- :CASE_envy.bisu
- :CASE_tjdwo0000
- set id=tjdwo0000
- GOTO PLAYER_START
- :CASE_ErOs_LYH
- :CASE_kisszzang14
- set id=kisszzang14
- GOTO PLAYER_START
- :CASE_ETStarTV
- :CASE_scv306306
- set id=scv306306
- GOTO PLAYER_START
- :CASE_firebathero
- :CASE_fbh
- set id=firebathero
- GOTO PLAYER_START
- :CASE_fishcast
- set id=fishcast
- GOTO PLAYER_START
- :CASE_flash
- :CASE_byflash
- :CASE_by.flash
- set id=byflash
- GOTO PLAYER_START
- :CASE_force
- :CASE_force[name]
- :CASE_bs1369
- set id=bs1369
- GOTO PLAYER_START
- :CASE_free
- :CASE_pretty
- :CASE_dbsdydx
- set id=dbsdydx
- GOTO PLAYER_START
- :CASE_garimto
- :CASE_garimtoi
- set id=garimtoi
- GOTO PLAYER_START
- :CASE_ggaemo
- :CASE_kkmkhh1234
- set id=kkmkhh1234
- GOTO PLAYER_START
- :CASE_gorush
- :CASE_cztaemin
- set id=cztaemin
- GOTO PLAYER_START
- :CASE_great
- :CASE_myunghwan
- set id=myunghwan
- GOTO PLAYER_START
- :CASE_guemchi
- :CASE_iammang
- :CASE_rlatldgus
- set id=rlatldgus
- GOTO PLAYER_START
- :CASE_he)jy
- :CASE_hejy
- set id=chassisle
- GOTO PLAYER_START
- :CASE_hero
- :CASE_byhero
- set id=byhero
- GOTO PLAYER_START
- :CASE_hint
- :CASE_hackanim
- :CASE_kyuhoikim
- set id=kyuhoikim
- GOTO PLAYER_START
- :CASE_hiya
- :CASE_aisiteru99
- set id=aisiteru99
- GOTO PLAYER_START
- :CASE_hoejja
- :CASE_gkm905
- set id=gkm905
- GOTO PLAYER_START
- :CASE_hogil
- :CASE_nspzerg
- set id=nspzerg
- GOTO PLAYER_START
- :CASE_horang2
- :CASE_rudals5467
- set id=rudals5467
- GOTO PLAYER_START
- :CASE_hwan
- :CASE_wlghks910903
- set id=wlghks910903
- GOTO PLAYER_START
- :CASE_hwasin
- :CASE_piroopirong
- set id=piroopirong
- GOTO PLAYER_START
- :CASE_hyun
- :CASE_understay
- set id=understay
- GOTO PLAYER_START
- :CASE_hyuk
- :CASE_rlekfu6
- set id=rlekfu6
- GOTO PLAYER_START
- :CASE_hyvaa
- :CASE_youszlls14
- set id=youszlls14
- GOTO PLAYER_START
- :CASE_icarus
- :CASE_psn1555
- set id=psn1555
- GOTO PLAYER_START
- :CASE_intotherainbow
- :CASE_erosrainbow
- set id=erosrainbow
- GOTO PLAYER_START
- :CASE_iris
- :CASE_berserker
- :CASE_bht0205
- set id=bht0205
- GOTO PLAYER_START
- :CASE_jaedong
- :CASE_jaedong23
- set id=Jaedong23
- GOTO PLAYER_START
- :CASE_jaehoon
- :CASE_rlawogns019
- set id=rlawogns019
- GOTO PLAYER_START
- :CASE_jangbi
- :CASE_mycou
- set id=mycou
- GOTO PLAYER_START
- :CASE_jat.tv
- :CASE_yyy2222
- set id=yyy2222
- GOTO PLAYER_START
- :CASE_jsmtv
- :CASE_hiji0312
- set id=hiji0312
- GOTO PLAYER_START
- :CASE_july
- :CASE_julyzerg
- set id=julyzerg
- GOTO PLAYER_START
- :CASE_kal
- :CASE_goojila
- :CASE_rngusdl
- set id=rngusdl
- GOTO PLAYER_START
- :CASE_kcm
- :CASE_cjfals28
- set id=cjfals28
- GOTO PLAYER_START
- :CASE_kds
- :CASE_cantob
- set id=cantob
- GOTO PLAYER_START
- :CASE_killer
- :CASE_h78ert
- set id=h78ert
- GOTO PLAYER_START
- :CASE_kimeunho
- :CASE_dmsghdlekd
- set id=dmsghdlekd
- GOTO PLAYER_START
- :CASE_koala
- :CASE_cyskkscv
- set id=cyskkscv
- GOTO PLAYER_START
- :CASE_kwanro
- :CASE_ehrflq2013
- set id=ehrflq2013
- GOTO PLAYER_START
- :CASE_larva
- :CASE_hong9
- :CASE_dpfgc3
- set id=dpfgc3
- GOTO PLAYER_START
- :CASE_last
- :CASE_rlatjdgus228
- set id=rlatjdgus228
- GOTO PLAYER_START
- :CASE_lazy
- :CASE_hateliar
- set id=hateliar
- GOTO PLAYER_START
- :CASE_leta
- :CASE_palko1
- set id=palko1
- GOTO PLAYER_START
- :CASE_leto
- :CASE_sereniss87
- set id=sereniss87
- GOTO PLAYER_START
- :CASE_light
- :CASE_scv6256
- set id=scv6256
- GOTO PLAYER_START
- :CASE_lovetv
- :CASE_sr629
- set id=sr629
- GOTO PLAYER_START
- :CASE_m18m
- :CASE_minho
- :CASE_djwp0531
- set id=djwp0531
- GOTO PLAYER_START
- :CASE_minooli
- set id=minooli
- GOTO PLAYER_START
- :CASE_mahell
- :CASE_alsd1323
- set id=alsd1323
- GOTO PLAYER_START
- :CASE_midas
- :CASE_sangwk
- set id=sangwk
- GOTO PLAYER_START
- :CASE_mind
- :CASE_peros777
- set id=peros777
- GOTO PLAYER_START
- :CASE_mini
- :CASE_bye1013
- set id=bye1013
- GOTO PLAYER_START
- :CASE_miso
- :CASE_hdy4546
- set id=hdy4546
- GOTO PLAYER_START
- :CASE_modesty
- :CASE_tearstt
- set id=tearstt
- GOTO PLAYER_START
- :CASE_mong
- :CASE_cksgmldbs
- set id=cksgmldbs
- GOTO PLAYER_START
- :CASE_mook
- :CASE_limtaemook
- set id=limtaemook
- GOTO PLAYER_START
- :CASE_movie
- :CASE_jyh8610
- set id=jyh8610
- GOTO PLAYER_START
- :CASE_nada
- :CASE_nada11200
- set id=nada11200
- GOTO PLAYER_START
- :CASE_nal_ra
- :CASE_nalra
- :CASE_ra
- :CASE_nalra82
- set id=nalra82
- GOTO PLAYER_START
- :CASE_noble
- :CASE_rnjsgurwls15
- set id=rnjsgurwls15
- GOTO PLAYER_START
- :CASE_onicle
- set id=onicle
- GOTO PLAYER_START
- :CASE_perfectman
- :CASE_row6400
- set id=row6400
- GOTO PLAYER_START
- :CASE_piano
- :CASE_organ
- :CASE_organ333
- set id=organ333
- GOTO PLAYER_START
- :CASE_pure
- :CASE_psj0436
- set id=psj0436
- GOTO PLAYER_START
- :CASE_pusan
- :CASE_jou1025
- set id=jou1025
- GOTO PLAYER_START
- :CASE_rain
- :CASE_sun
- :CASE_by.rain
- :CASE_by.sun
- :CASE_ioioiobb
- set id=ioioiobb
- GOTO PLAYER_START
- :CASE_rapsodytoss
- :CASE_younggunz91
- set id=younggunz91
- GOTO PLAYER_START
- :CASE_reach
- :CASE_reach12
- :CASE_mantoss
- set id=reach12
- GOTO PLAYER_START
- :CASE_really
- :CASE_sea.really
- :CASE_theferrari
- set id=theferrari
- GOTO PLAYER_START
- :CASE_rock
- :CASE_therock
- :CASE_nal_rock
- :CASE_aghhi
- set id=aghhi
- GOTO PLAYER_START
- :CASE_roro
- :CASE_skwangs7
- set id=skwangs7
- GOTO PLAYER_START
- :CASE_rush
- :CASE_yoo376
- set id=yoo376
- GOTO PLAYER_START
- :CASE_s2
- :CASE_ssoov227
- set id=ssoov227
- GOTO PLAYER_START
- :CASE_saber
- :CASE_ryul2
- :CASE_jackpot
- set id=jackpot
- GOTO PLAYER_START
- :CASE_sabitv
- :CASE_zzzz2z
- set id=zzzz2z
- GOTO PLAYER_START
- :CASE_savior
- :CASE_mjy1123
- set id=mjy1123
- GOTO PLAYER_START
- :CASE_scat.horang2
- :CASE_comby4343
- set id=comby4343
- GOTO PLAYER_START
- :CASE_sea
- :CASE_yuambo
- set id=yuambo
- GOTO PLAYER_START
- :CASE_sea.kh
- :CASE_youngskh
- set id=youngskh
- GOTO PLAYER_START
- :CASE_sexy
- :CASE_rfvtgb778
- set id=rfvtgb778
- GOTO PLAYER_START
- :CASE_shark
- :CASE_starbell87
- set id=starbell87
- GOTO PLAYER_START
- :CASE_sharp
- :CASE_sharpragu
- set id=sharpragu
- GOTO PLAYER_START
- :CASE_shine
- :CASE_lyh8808
- set id=lyh8808
- GOTO PLAYER_START
- :CASE_shinee
- :CASE_onlysibar
- set id=onlysibar
- GOTO PLAYER_START
- :CASE_shuttle
- :CASE_eyewater
- :CASE_jk890202
- set id=jk890202
- GOTO PLAYER_START
- :CASE_sky
- :CASE_gksmfaowj
- set id=gksmfaowj
- GOTO PLAYER_START
- :CASE_skyhigh
- :CASE_chobs0309
- set id=chobs0309
- GOTO PLAYER_START
- :CASE_smile
- :CASE_worud0608
- set id=worud0608
- GOTO PLAYER_START
- :CASE_snow
- :CASE_by.snow
- :CASE_tmsh401
- set id=tmsh401
- GOTO PLAYER_START
- :CASE_sonic
- :CASE_sogoodtt
- set id=sogoodtt
- GOTO PLAYER_START
- :CASE_soulblacktv
- :CASE_goodplay
- set id=goodplay
- GOTO PLAYER_START
- :CASE_soulkey
- :CASE_g_soulkey
- :CASE_neo.g_soulkey
- :CASE_minchul
- set id=minchul
- GOTO PLAYER_START
- :CASE_spotimes
- :CASE_bsscamp
- set id=bsscamp
- GOTO PLAYER_START
- :CASE_ssak
- :CASE_ghtjs3833
- set id=ghtjs3833
- GOTO PLAYER_START
- :CASE_starcue
- :CASE_jimeang
- set id=jimeang
- GOTO PLAYER_START
- :CASE_stork
- :CASE_koreasbg
- set id=koreasbg
- GOTO PLAYER_START
- :CASE_tamoo
- :CASE_zlzl1514
- set id=zlzl1514
- GOTO PLAYER_START
- :CASE_terror
- :CASE_y1026
- set id=y1026
- GOTO PLAYER_START
- :CASE_trot
- :CASE_tjdwnls123
- set id=tjdwnls123
- GOTO PLAYER_START
- :CASE_tyson
- :CASE_subeom12
- set id=subeom12
- GOTO PLAYER_START
- :CASE_yellow
- :CASE_lifeisjust
- set id=lifeisjust
- GOTO PLAYER_START
- :CASE_zelot
- :CASE_jh3697
- set id=jh3697
- GOTO PLAYER_START
- :CASE_zergman
- :CASE_jun10280
- set id=jun10280
- GOTO PLAYER_START
- :CASE_zero
- :CASE_kimmyungwun
- set id=kimmyungwun
- GOTO PLAYER_START
- :CASE_zeus
- :CASE_70jeontaekyu
- set id=70jeontaekyu
- GOTO PLAYER_START
- REM Twitch players (mostly foreigners or tournaments)
- :CASE_artosis
- set id=artosis
- set service=Twitch
- GOTO PLAYER_START
- :CASE_asltwitch
- :CASE_asl twitch
- set id=asl
- set service=Twitch
- GOTO PLAYER_START
- :CASE_bonyth
- set id=bonyth
- set service=Twitch
- GOTO PLAYER_START
- :CASE_bratok
- :CASE_pavelbratok
- set id=pavelbratok
- set service=Twitch
- GOTO PLAYER_START
- :CASE_cane
- :CASE_canecraft
- REM This is me, the author of the batch file. Testing shit, remove later.
- set id=canecraft
- set service=Twitch
- GOTO PLAYER_START
- :CASE_day9
- :CASE_day[9]
- :CASE_day9tv
- set id=day9tv
- set service=Twitch
- GOTO PLAYER_START
- :CASE_demuslim
- set id=demuslim
- set service=Twitch
- GOTO PLAYER_START
- :CASE_draco
- :CASE_naldraco
- :CASE_nal_draco
- set id=nal_draco
- set service=Twitch
- GOTO PLAYER_START
- :CASE_dragon
- set id=dragon
- set service=Twitch
- GOTO PLAYER_START
- :CASE_dr_shrinker
- :CASE_drshrinker
- :CASE_shrinker
- set id=dr_shrinker
- set service=Twitch
- GOTO PLAYER_START
- :CASE_eonzerg
- :CASE_[sc1f]eonzerg
- :CASE_imeonzerg
- set id=imeonzerg
- set service=Twitch
- GOTO PLAYER_START
- :CASE_hui
- :CASE_wayne379
- set id=wayne379
- set service=Twitch
- GOTO PLAYER_START
- :CASE_incontrol
- :CASE_incontroltv
- set id=incontroltv
- set service=Twitch
- GOTO PLAYER_START
- :CASE_lancerx
- :CASE_must_die
- set id=must_die
- set service=Twitch
- GOTO PLAYER_START
- :CASE_lastscan
- :CASE_scan
- :CASE_skryoo1004
- set id=skryoo1004
- set service=Twitch
- GOTO PLAYER_START
- :CASE_mana
- :CASE_liquidmana
- set id=liquidmana
- set service=Twitch
- GOTO PLAYER_START
- :CASE_medry
- :CASE_medrybw
- set id=medrybw
- set service=Twitch
- GOTO PLAYER_START
- :CASE_nony
- :CASE_liquidnony
- :CASE_tyler
- :CASE_liquidtyler
- set id=nony
- set service=Twitch
- GOTO PLAYER_START
- :CASE_oystein
- :CASE_øystein
- set id=oystein
- set service=Twitch
- GOTO PLAYER_START
- :CASE_raelcun
- :CASE_nuclearbackwards
- set id=raelcun
- set service=Twitch
- GOTO PLAYER_START
- :CASE_ret
- :CASE_liquidret
- :CASE_liquid`ret
- set id=liquidret
- set service=Twitch
- GOTO PLAYER_START
- :CASE_schamtoo
- :CASE_haveatyou
- :CASE_have at you
- set id=schamtoo
- set service=Twitch
- GOTO PLAYER_START
- :CASE_sero
- :CASE_seroqt
- set id=seroqt
- set service=Twitch
- GOTO PLAYER_START
- :CASE_sscait
- :CASE_sscaitournament
- :CASE_sscai tournament
- set id=sscait
- set service=Twitch
- GOTO PLAYER_START
- :CASE_starcraft
- set id=starcraft
- set service=Twitch
- GOTO PLAYER_START
- :CASE_terrorterran
- set id=terrorterran
- set service=Twitch
- GOTO PLAYER_START
- :CASE_winter
- :CASE_winterstarcraft
- :CASE_wintergaming
- set id=wintergaming
- set service=Twitch
- GOTO PLAYER_START
- :CASE_
- echo.
- call :ColorText 0e "User fat-fingered the "
- call :ColorText 0c " enter "
- call :ColorText 0e " key, please type a command or playername"
- echo.
- echo.
- set /p name="> "
- GOTO TRY_AGAIN
- REM If no player was found, ask for clarification
- :DEFAULT_CASE
- echo.
- call :ColorText 0e "Player "
- call :ColorText 0c " %name% "
- call :ColorText 0e " not found."
- echo.
- call :ColorText 0e "Input another name or command, or select from options menu below."
- echo.
- echo.
- call :ColorText 0d " 1"
- call :ColorText 0f " Attempt to connect to "
- call :ColorText 0c " %name% "
- call :ColorText 0f " on "
- call :ColorText 0c " Afreeca.com"
- echo.
- call :ColorText 0d " 2"
- call :ColorText 0f " Attempt to connect to "
- call :ColorText 0c " %name% "
- call :ColorText 0f " on "
- call :ColorText 0c " Twitch.tv"
- echo.
- echo.
- set /p serv="> "
- 2>NUL CALL :SERVICE_%serv%
- IF ERRORLEVEL 1 CALL :DEFAULT_SERVICE
- :SERVICE_1
- echo.
- call :ColorText 0f "Service set to"
- call :ColorText 0c " Afreeca.com"
- echo.
- set service=Afreeca
- set id="%name%"
- GOTO PLAYER_START
- :SERVICE_2
- echo.
- call :ColorText 0f "Service set to"
- call :ColorText 0c " Twitch.tv"
- echo.
- set service=Twitch
- set id="%name%"
- GOTO PLAYER_START
- :DEFAULT_SERVICE
- set name=%serv%
- echo.
- GOTO TRY_AGAIN
- :PLAYER_START
- :QUALITY
- echo.
- call :ColorText 0e "Set stream quality"
- echo.
- echo.
- call :ColorText 0d " 1"
- call :ColorText 0f " Source (1080p)"
- echo.
- call :ColorText 0d " 2"
- call :ColorText 0f " HD (720p)"
- echo.
- call :ColorText 0d " 3"
- call :ColorText 0f " SD (480p)"
- echo.
- echo.
- set /p quality="> "
- 2>NUL CALL :QUALITY_%quality%
- IF ERRORLEVEL 1 CALL :DEFAULT_QUALITY
- :QUALITY_1
- set quality=original
- echo.
- call :ColorText 0f "Attempting to connect to "
- call :ColorText 0c " %name%"
- call :ColorText 0f " on "
- call :ColorText 0c " %service%"
- call :ColorText 0f " in "
- call :ColorText 0c " SOURCE"
- echo ...
- echo.
- call :ColorText 0f "If the stream is live, VLC Media Player should open in 5-30 seconds"
- echo .
- call :ColorText 0f "You can type in additional names below if you wish to multistream."
- echo :
- GOTO LAUNCH
- :QUALITY_2
- set quality=hd
- echo.
- call :ColorText 0f "Attempting to connect to "
- call :ColorText 0c " %name%"
- call :ColorText 0f " on "
- call :ColorText 0c " %service%"
- call :ColorText 0f " in "
- call :ColorText 0c " HD"
- echo ...
- echo.
- call :ColorText 0f "If the stream is live, VLC Media Player should open in 5-30 seconds"
- echo .
- call :ColorText 0f "You can type in additional names below if you wish to multistream."
- echo :
- GOTO LAUNCH
- :QUALITY_3
- set quality=sd
- echo.
- call :ColorText 0f "Attempting to connect to "
- call :ColorText 0c " %name%"
- call :ColorText 0f " on "
- call :ColorText 0c " %service%"
- call :ColorText 0f " in "
- call :ColorText 0c " SD"
- echo ...
- echo.
- call :ColorText 0f "If the stream is live, VLC Media Player should open in 5-30 seconds"
- echo .
- call :ColorText 0f "You can type in additional names below if you wish to multistream."
- echo :
- GOTO LAUNCH
- :DEFAULT_QUALITY
- set quality=hd
- echo.
- call :ColorText 0f "Unintelligible garbage input by user, quality defaulted to SOURCE"
- echo.
- echo.
- call :ColorText 0f "Attempting to connect to "
- call :ColorText 0c " %name%"
- call :ColorText 0f " on "
- call :ColorText 0c " %service%"
- call :ColorText 0f " in "
- call :ColorText 0c " SOURCE"
- echo ...
- echo.
- call :ColorText 0f "If the stream is live, VLC Media Player should open in 5-30 seconds"
- echo .
- call :ColorText 0f "You can type in additional names below if you wish to multistream."
- echo :
- GOTO LAUNCH
- :LAUNCH
- if "%service%"=="Twitch" (
- set url="twitch.tv"
- if "%quality%"=="original" (
- set output=best
- )
- if "%quality%"=="hd" (
- set output=720p
- )
- if "%quality%"=="sd" (
- set output=480p
- )
- )
- if "%service%"=="Afreeca" (
- set url="afreeca.com"
- set output="%cdn%"_"%quality%"
- )
- start /B streamlink --loglevel=error --player="%vlcpath% --file-caching=5000 --network-caching=5000 --meta-title=%name%" %url%/%id% %output%
- GOTO STREAM
- :ColorText
- echo off
- <nul set /p ".=%DEL%" > "%~2"
- findstr /v /a:%1 /R "^$" "%~2" nul
- del "%~2" > nul 2>&1
- goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement