Thread: i24NEWS Live
View Single Post
  #47  
Old 09-14-2021, 06:54 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: i24NEWS Live


Latest news...

Latest streamlink version streamlink-2.4.0_10.gde5b27b.exe can play hls url.
Lately I discovered english only broadcast on some Swiss web sites but Swiss VPN is mandatory.
Here is my latest script that plays either broadcast depending on if my VPN is on or off.

Code:
If ProcessExists("openvpn.exe") Then  
    $url = "https://zattoo.com/live/i24news_english"
    run('cmd.exe /c streamlink.exe --player="mpv.exe --vf=scale=960:540" --zattoo-email ***** --zattoo-password ***** --zattoo-stream-type dash '& $url &' best','',@SW_MINIMIZE)
Else
    $header = '"Accept: application/json;pk=BCpkADawqM1UIU4favtR1Jj4rqM0ZAkYwMEbgN9bsEpJ2150CdxJmRIG8jK-Up_9w4w37x3tP1AsoO_MZhD_XoAGkdKWxymaaw4OHuhPn_lEJczODTm3AO7S08gLFPnLnb-FcKJwXhbxCQ10"'
    $url = ' "https://edge.api.brightcove.com/playback/v1/accounts/5377161796001/videos/6168209415001"'
    $iPID = Run('cmd.exe /c curl.exe -k -H '& $header & $url,'',@SW_MINIMIZE,2)
    ProcessWaitClose($iPID)
    $s = StdoutRead($iPID)
    $s = StringTrimLeft($s,StringInStr($s,'"https://i24alive2'))
    $s = StringTrimRight($s,(StringLen($s)+1)-StringInStr($s,'"'))
    $s = stringreplace($s,'\u0026','&')
    run('cmd /c streamlink.exe --loglevel debug --player=mpv.exe hls://"'& $s &'" 540p & pause')
EndIf

Last edited by j_cool : 09-14-2021 at 07:24 PM.
Reply With Quote