<?xml version="1.0" encoding="utf-8"?>
<parser delay="2500" crpj="true" date="2020.12.31">
    <url><![CDATA[xiaoeknow\.com/content_page/[^?]+]]></url>
    <title><![CDATA[title="([^"]+)"]]></title>
    <thumbnail><![CDATA[thumbnail=([^,]+)]]></thumbnail>
    <duration><![CDATA[]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <ckSign><![CDATA[ko_token]]></ckSign>
    <jsCode><![CDATA[
        try {
            //https://appieewu0pk2027.h5.xiaoeknow.com/content_page/eyJ0eXBlIjoxMiwicmVzb3VyY2VfdHlwZSI6NCwicmVzb3VyY2VfaWQiOiJsXzVmZTVhN2IxZTRiMDRkYjdjMDk3MWVkMiIsInByb2R1Y3RfaWQiOiIiLCJhcHBfaWQiOiJhcHBJRWVXVTBQazIwMjciLCJleHRyYV9kYXRhIjowfQ?entry=2&entry_type=2001
            var url = window.external.url;
            var cookie = window.external.getCookie(url);
            if (cookie) {
                var data = atob(url.match(/content_page\/([^?]+)/)[1]);
                var jo = JSON.parse(data);
                var app_id = jo.app_id;
                var res_id = jo.resource_id;
                var api_url = 'https://' + app_id + '.h5.xiaoeknow.com/_alive/alivePageData';
                var args = 'buz_data%5Balive_id%5D=' + res_id;
                cookie = 'ko_token=4885cde3a242bd9d75b2bf9ef432b8b9';
                var headers = 'Content-Type: application/x-www-form-urlencoded\r\nReferer: ' + url + '\r\nCookie: ' + cookie;
                data = window.external.getPostResultEx(api_url, args, headers);
                if (data) {
                    jo = JSON.parse(data);
                    if (jo.data && jo.data.pageData) {
                        var pd = jo.data.pageData;
                        document.body.innerHTML = 'title=\"' + pd.title + '\",thumbnail=' + pd.cover_img_url + ',cr_video_url=' + pd.alive_video_url + '$';
                    }
                }
            }
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>