url='https://www.huya.com/adgll' stream=$( curl -sk $url | grep -Eo '"stream": "(.*)"' ) streamJson=$( echo {$stream} | jq -M -r '.stream | @base64d' ) HlsUrls=( $(echo $streamJson | jq -M -r '.data[].gameStreamInfoList[]|.sFlvUrl +"/"+ .sStreamName+"."+.sFlvUrlSuffix +"?"+.sFlvAntiCode' | sed 's/amp;//g') ) ffplay -hide_banner -user_agent "HYSDK(Windows, 20000308)" -i "${HlsUrls[0]}" -vf scale=-1:720