<?xml version="1.0" encoding="utf-8"?>
<parser delayLoad="500" date="2021.01.12">
    <url><![CDATA[weishi\.qq\.com/(?:weishi/feed|ws)/.*?id=(?<id>\w+)]]></url>
    <title><![CDATA[title":"([^"]+)]]></title>
    <thumbnail><![CDATA[image_url":"([^"]+)]]></thumbnail>
    <duration><![CDATA[duration":(\d+)\d{3}]]></duration>
    <mediaUrl><![CDATA[\{"url":"([^"]+)","size]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            //https://isee.weishi.qq.com/ws/app-pages/share/index.html?wxplay=1&id=75RvbyiNu1KWcPbBZ&spid=1407885697821351936&qua=v1_and_weishi_8.8.0_588_230011423_d&chid=100081014&pkg=3670&attach=cp_reserves3_1000370011
            //https://h5.weishi.qq.com/weishi/feed/75RvbyiNu1KWcPbBZ/wsfeed?wxplay=1&id=75RvbyiNu1KWcPbBZ&spid=1407885697821351936&qua=v1_and_weishi_8.8.0_588_230011423_d&chid=100081014&pkg=3670&attach=cp_reserves3_1000370011
            //video_url对应的url不能下载，因此取实际url
            var id = window.location.href.match(/id=([^&]+)/)[1];
            var args = 'feedid=' + id;
            var data = window.external.GetPostResult('https://h5.weishi.qq.com/webapp/json/weishi/WSH5GetPlayPage', args, 'application/x-www-form-urlencoded');
            document.body.innerHTML = data;
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>