<?xml version="1.0" encoding="utf-8"?>
<parser delayLoad="1500" date="2019.09.29">
    <url><![CDATA[https?://yoo\.qq\.com/.*?/video.html\?id=(?<id>[^&]+)]]></url>
    <title><![CDATA[VIDEO_INFO.*?title":"([^"]+)"]]></title>
    <thumbnail><![CDATA[VIDEO_INFO.*?pic_.*?":"([^"]+)"]]></thumbnail>
    <duration><![CDATA[VIDEO_INFO.*?duration":"([^"]+)"]]></duration>
    <mediaUrl><![CDATA[qq_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            var vid = VIDEO_INFO.vid;
            var url = 'http://vv.video.qq.com/getinfo?vid=' + vid + '&platform=101001&charge=0&otype=json&defn=shd';
            var html = window.external.GetHtmlCode(url);
            var data = html.slice('QZOutputJson='.length, -1);
            var jo = JSON.parse(data);
            var video_url = jo.vl.vi[0].ul.ui[0].url
                + jo.vl.vi[0].fn
                + '?vkey='
                + jo.vl.vi[0].fvkey;
            document.body.innerHTML = 'qq_video_url=' + video_url + '$' + document.body.innerHTML;
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>