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