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"
- )
- :CDN
- echo.
- echo -------------------------------------------------------------------------------
- echo.
- call :ColorText 0e "Set CDN server (just pick one, switch if you experience lag)"
- 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"
- GOTO QUALITY
- :CDN_2
- set cdn=gs
- echo.
- call :ColorText 0f "CDN set to"
- call :ColorText 0c " GSCDN"
- GOTO QUALITY
- :DEFAULT_CDN
- set cdn=gs
- echo.
- call :ColorText 0f "Unintelligible garbage input by user, defaulted to GSCDN"
- GOTO QUALITY
- :QUALITY
- echo.
- 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 "Quality set to"
- call :ColorText 0c " SOURCE"
- echo.
- echo.
- echo -------------------------------------------------------------------------------
- GOTO STREAM
- :QUALITY_2
- set quality=hd
- echo.
- call :ColorText 0f "Quality set to"
- call :ColorText 0c " HD"
- echo.
- echo.
- echo -------------------------------------------------------------------------------
- GOTO STREAM
- :QUALITY_3
- set quality=sd
- echo.
- call :ColorText 0f "Quality set to"
- call :ColorText 0c " SD"
- echo.
- echo.
- echo -------------------------------------------------------------------------------
- GOTO STREAM
- :DEFAULT_QUALITY
- set quality=hd
- echo.
- call :ColorText 0f "Unintelligible garbage input by user, defaulted to HD"
- echo.
- echo.
- echo -------------------------------------------------------------------------------
- GOTO STREAM
- :STREAM
- echo.
- call :ColorText 0d "Name"
- call :ColorText 0f " or"
- call :ColorText 0d " Afreeca ID"
- call :ColorText 0f " [or"
- call :ColorText 0d " .online"
- call :ColorText 0f ", "
- call :ColorText 0d " .setup"
- call :ColorText 0f ", "
- call :ColorText 0d " .help"
- call :ColorText 0f "]"
- echo.
- :loop
- set /p name="> "
- 2>NUL CALL :CASE_%name%
- IF ERRORLEVEL 1 CALL :DEFAULT_CASE
- :CASE_.online
- start "" https://bwstreams.appspot.com
- echo Launching online players list in your browser...
- GOTO STREAM
- :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.
- call :ColorText 0e "HOW TO USE"
- echo.
- echo.
- echo ^> Bisu
- echo.
- echo To begin watching a stream, enter the player's nickname or Afreeca ID.
- echo The stream should start in 5 to 30 seconds. Names are not case sensitive.
- echo.
- echo.
- call :ColorText 0e "SHOW ONLINE PLAYERS"
- echo.
- echo.
- echo ^> .online
- echo.
- echo Type to launch https://bwstreams.appspot.com/ in your browser.
- echo.
- echo.
- call :ColorText 0e "SET CDN AND QUALITY OPTIONS"
- echo.
- echo.
- echo ^> .setup
- echo.
- echo Type .setup to reconfigure the CDN (content distribution network) server
- echo and quality options. Try different options if you experience stream lag.
- echo GSCDN tends to be more lag free, but it depends on your region.
- echo.
- echo Different streams can have different stream qualities. Just type .setup
- echo and reconfigure the quality settings and then launch another stream. The
- echo quality options for the first stream will be preserved.
- echo.
- echo.
- call :ColorText 0e "HELP"
- echo.
- echo.
- echo ^> .help
- echo.
- echo View this help file. See n) recursion
- echo.
- echo.
- call :ColorText 0e "TROUBLESHOOTING"
- echo.
- echo.
- echo 1) If your stream lags or buffers, FIRST switch CDN. This usually helps.
- echo If it still buffers, try lowering the quality. I have been able to run
- echo GSCDN on SOURCE for every stream so far.
- echo.
- echo 2) If the stream displays a countdown timer, close the VLC window and
- echo enter the name again. This happens some times in embedded streams when
- echo watching Afreeca, possibly due to CDN or ad-service problems.
- echo.
- echo 3) For further info, read the TeamLiquid thread by typing .teamliquid
- echo.
- echo -------------------------------------------------------------------------------
- GOTO STREAM
- :CASE_41tv
- set id=isee1541
- GOTO PLAYER_START
- :CASE_910
- set id=kuyol
- GOTO PLAYER_START
- :CASE_air
- set id=rudwk1220
- GOTO PLAYER_START
- :CASE_ample
- :CASE_sasin
- set id=hoonykkk
- GOTO PLAYER_START
- :CASE_anytime
- set id=zeusboy2714
- GOTO PLAYER_START
- :CASE_asl
- :CASE_aslkor
- set id=afstar1
- GOTO PLAYER_START
- :CASE_asleng
- set id=asl2eng2
- GOTO PLAYER_START
- :CASE_autumn
- set id=onstyles
- GOTO PLAYER_START
- :CASE_backho
- set id=cksdnddldhkd
- GOTO PLAYER_START
- :CASE_beast
- set id=rjsrkdgkwk12
- GOTO PLAYER_START
- :CASE_best
- set id=wodnrdldia
- GOTO PLAYER_START
- :CASE_bisu
- set id=rlaxordyd
- GOTO PLAYER_START
- :CASE_boxer
- set id=sblyh119
- GOTO PLAYER_START
- :CASE_brave
- set id=xorbzzang111
- GOTO PLAYER_START
- :CASE_britney
- set id=khm11903
- GOTO PLAYER_START
- :CASE_spire
- :CASE_by.spire
- set id=idch0726
- GOTO PLAYER_START
- :CASE_calm
- set id=brainzerg7
- GOTO PLAYER_START
- :CASE_casy
- set id=casy
- GOTO PLAYER_START
- :CASE_cola
- set id=nojaesang
- GOTO PLAYER_START
- :CASE_dongrae
- set id=dongrae
- GOTO PLAYER_START
- :CASE_eagle
- set id=cjsdkxjddlf
- GOTO PLAYER_START
- :CASE_effort
- set id=momo130
- GOTO PLAYER_START
- :CASE_envy.bisu
- set id=tjdwo0000
- GOTO PLAYER_START
- :CASE_ErOs_LYH
- set id=kisszzang14
- GOTO PLAYER_START
- :CASE_ETStarTV
- 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]
- set id=bs1369
- GOTO PLAYER_START
- :CASE_free
- :CASE_pretty
- set id=dbsdydx
- GOTO PLAYER_START
- :CASE_ggaemo
- set id=kkmkhh1234
- GOTO PLAYER_START
- :CASE_great
- set id=myunghwan
- GOTO PLAYER_START
- :CASE_guemchi
- :CASE_iammang
- set id=rlatldgus
- GOTO PLAYER_START
- :CASE_hero
- set id=byhero
- GOTO PLAYER_START
- :CASE_hint
- :CASE_hackanim
- set id=kyuhoikim
- GOTO PLAYER_START
- :CASE_hiya
- set id=aisiteru99
- GOTO PLAYER_START
- :CASE_hoejja
- set id=gkm905
- GOTO PLAYER_START
- :CASE_hogil
- set id=nspzerg
- GOTO PLAYER_START
- :CASE_horang2
- set id=rudals5467
- GOTO PLAYER_START
- :CASE_hwan
- set id=wlghks910903
- GOTO PLAYER_START
- :CASE_hwasin
- set id=piroopirong
- GOTO PLAYER_START
- :CASE_hyun
- set id=understay
- GOTO PLAYER_START
- :CASE_hyuk
- set id=rlekfu6
- GOTO PLAYER_START
- :CASE_hyvaa
- set id=youszlls14
- GOTO PLAYER_START
- :CASE_icarus
- set id=psn1555
- GOTO PLAYER_START
- :CASE_iris
- :CASE_berserker
- set id=bht0205
- GOTO PLAYER_START
- :CASE_jaedong
- set id=Jaedong23
- GOTO PLAYER_START
- :CASE_jaehoon
- set id=rlawogns019
- GOTO PLAYER_START
- :CASE_jangbi
- set id=mycou
- GOTO PLAYER_START
- :CASE_jat.tv
- set id=yyy2222
- GOTO PLAYER_START
- :CASE_jsmtv
- set id=hiji0312
- GOTO PLAYER_START
- :CASE_july
- :CASE_julyzerg
- set id=julyzerg
- GOTO PLAYER_START
- :CASE_kal
- :CASE_goojila
- set id=rngusdl
- GOTO PLAYER_START
- :CASE_kds
- set id=cantob
- GOTO PLAYER_START
- :CASE_killer
- set id=h78ert
- GOTO PLAYER_START
- :CASE_kimeunho
- set id=dmsghdlekd
- GOTO PLAYER_START
- :CASE_koala
- set id=cyskkscv
- GOTO PLAYER_START
- :CASE_kwanro
- set id=ehrflq2013
- GOTO PLAYER_START
- :CASE_larva
- :CASE_hong9
- set id=dpfgc3
- GOTO PLAYER_START
- :CASE_last
- set id=rlatjdgus228
- GOTO PLAYER_START
- :CASE_lazy
- set id=hateliar
- GOTO PLAYER_START
- :CASE_leta
- set id=palko1
- GOTO PLAYER_START
- :CASE_leto
- set id=sereniss87
- GOTO PLAYER_START
- :CASE_light
- set id=scv6256
- GOTO PLAYER_START
- :CASE_lovetv
- set id=sr629
- GOTO PLAYER_START
- :CASE_m18m
- set id=minooli
- GOTO PLAYER_START
- :CASE_mahell
- set id=alsd1323
- GOTO PLAYER_START
- :CASE_midas
- set id=sangwk
- GOTO PLAYER_START
- :CASE_mind
- set id=peros777
- GOTO PLAYER_START
- :CASE_mini
- set id=bye1013
- GOTO PLAYER_START
- :CASE_miso
- set id=hdy4546
- GOTO PLAYER_START
- :CASE_modesty
- set id=tearstt
- GOTO PLAYER_START
- :CASE_mong
- set id=cksgmldbs
- GOTO PLAYER_START
- :CASE_mook
- set id=limtaemook
- GOTO PLAYER_START
- :CASE_movie
- set id=jyh8610
- GOTO PLAYER_START
- :CASE_nada
- set id=nada11200
- GOTO PLAYER_START
- :CASE_nal_ra
- :CASE_nalra
- :CASE_ra
- set id=nalra82
- GOTO PLAYER_START
- :CASE_noble
- set id=rnjsgurwls15
- GOTO PLAYER_START
- :CASE_onicle
- set id=onicle
- GOTO PLAYER_START
- :CASE_perfectman
- set id=row6400
- GOTO PLAYER_START
- :CASE_piano
- :CASE_organ
- set id=organ333
- GOTO PLAYER_START
- :CASE_pure
- set id=psj0436
- GOTO PLAYER_START
- :CASE_pusan
- set id=jou1025
- GOTO PLAYER_START
- :CASE_rain
- :CASE_sun
- :CASE_by.rain
- :CASE_by.sun
- set id=ioioiobb
- GOTO PLAYER_START
- :CASE_rapsodytoss
- set id=younggunz91
- GOTO PLAYER_START
- :CASE_really
- :CASE_sea.really
- set id=theferrari
- GOTO PLAYER_START
- :CASE_rock
- :CASE_therock
- :CASE_nal_rock
- set id=aghhi
- GOTO PLAYER_START
- :CASE_roro
- set id=skwangs7
- GOTO PLAYER_START
- :CASE_rush
- set id=yoo376
- GOTO PLAYER_START
- :CASE_s2
- set id=ssoov227
- GOTO PLAYER_START
- :CASE_saber
- :CASE_ryul2
- set id=jackpot
- GOTO PLAYER_START
- :CASE_sabitv
- set id=zzzz2z
- GOTO PLAYER_START
- :CASE_savior
- set id=mjy1123
- GOTO PLAYER_START
- :CASE_scat.horang2
- set id=comby4343
- GOTO PLAYER_START
- :CASE_sea
- set id=yuambo
- GOTO PLAYER_START
- :CASE_sea.kh
- set id=youngskh
- GOTO PLAYER_START
- :CASE_sexy
- set id=rfvtgb778
- GOTO PLAYER_START
- :CASE_shark
- set id=starbell87
- GOTO PLAYER_START
- :CASE_sharp
- :CASE_sharpragu
- set id=sharpragu
- GOTO PLAYER_START
- :CASE_shine
- set id=lyh8808
- GOTO PLAYER_START
- :CASE_shinee
- set id=onlysibar
- GOTO PLAYER_START
- :CASE_shuttle
- :CASE_eyewater
- set id=jk890202
- GOTO PLAYER_START
- :CASE_sky
- set id=gksmfaowj
- GOTO PLAYER_START
- :CASE_skyhigh
- set id=chobs0309
- GOTO PLAYER_START
- :CASE_smile
- set id=worud0608
- GOTO PLAYER_START
- :CASE_snow
- :CASE_by.snow
- set id=tmsh401
- GOTO PLAYER_START
- :CASE_sonic
- set id=sogoodtt
- GOTO PLAYER_START
- :CASE_soulblacktv
- set id=goodplay
- GOTO PLAYER_START
- :CASE_soulkey
- :CASE_g_soulkey
- :CASE_neo.g_soulkey
- set id=minchul
- GOTO PLAYER_START
- :CASE_spotimes
- set id=bsscamp
- GOTO PLAYER_START
- :CASE_ssak
- set id=ghtjs3833
- GOTO PLAYER_START
- :CASE_starcue
- set id=jimeang
- GOTO PLAYER_START
- :CASE_stork
- set id=koreasbg
- GOTO PLAYER_START
- :CASE_terror
- set id=y1026
- GOTO PLAYER_START
- :CASE_trot
- set id=tjdwnls123
- GOTO PLAYER_START
- :CASE_tyson
- set id=subeom12
- GOTO PLAYER_START
- :CASE_yellow
- set id=lifeisjust
- GOTO PLAYER_START
- :CASE_zelot
- set id=jh3697
- GOTO PLAYER_START
- :CASE_zergman
- set id=jun10280
- GOTO PLAYER_START
- :CASE_zero
- set id=kimmyungwun
- GOTO PLAYER_START
- :CASE_zeus
- set id=70jeontaekyu
- GOTO PLAYER_START
- :DEFAULT_CASE
- set id=%name%
- GOTO PLAYER_START
- :PLAYER_START
- call :ColorText 0f "Attempting to connect to "
- call :ColorText 0c " %name%"
- echo ...
- cd C:\Program Files (x86)\Streamlink\bin
- REM aqui você coloca o local onde está o arquivo streamlink.exe , se seu Windows for 32bits provavelmente será C:\Program Files\Streamlink\bin
- start /B streamlink --loglevel=error --player="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe --file-caching=5000 --network-caching=5000 --meta-title=%name%" afreeca.com/%id% %cdn%_%quality%
- REM em "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" substitua se necessário pelo caminho correto onde está o seu VLC
- GOTO STREAM
- :ColorText
- echo off
- <nul set /p ".=%DEL%" > "%~2"
- findstr /v /a:%1 /R "^$" "%~2" nul
- del "%~2" > nul 2>&1
- goto :eof
Add Comment
Please, Sign In to add comment