<?xml version="1.0" encoding="utf-8"?>
<parser delay="1500" crpj="true" referer="true" date="2020.01.07">
    <url><![CDATA[https?://(?:www\.)?007ys\.cn/vodplay/(?<id>[^.]+)\.html?]]></url>
    <title><![CDATA[<h1[^>]+><a[^>]+>([^<]+)]]></title>
    <thumbnail><![CDATA[data-original="([^"]+)"]]></thumbnail>
    <duration><![CDATA[]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            //https://007ys1.com/voddetail/478032.html
            //https://007ys1.com/vodplay/478032-1-1.html
            var url = window.external.url;
            var html = window.external.getHtmlCode(url, url);
            var ud = html.match(/ata-play=\"([^\"]+)/)[1];
            var video_url = x(ud).replace('@', '');
            document.body.innerHTML = 'cr_video_url=' + video_url + '$' + html;

            function x(e) {
                var keystr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
                var d = 0, r = '', o, c, y, b, p, m, w;
                for (e = e.substring(3); d < e.length; ) {
                    b = keystr.indexOf(e.charAt(d++)),
                    p = keystr.indexOf(e.charAt(d++)),
                    m = keystr.indexOf(e.charAt(d++)),
                    w = keystr.indexOf(e.charAt(d++)),
                    o = b << 2 | p >> 4, 
                    c = (15 & p) << 4 | m >> 2, 
                    y = (3 & m) << 6 | w, 
                    r += String.fromCharCode(o),
                    64 != m && (r += String.fromCharCode(c)),
                    64 != m && (r += String.fromCharCode(y));
                };
                return r;
            }
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>