<?xml version="1.0" encoding="utf-8"?>
<parser delay="1500" crpj="true" referer="true" date="2020.07.01">
    <url><![CDATA[https?://(?:www\.)?(?:idyjy|dy1234)\.\w+/player/(?<id>[^.]+)\.html?]]></url>
    <title><![CDATA[title="([^"]+)"]]></title>
    <thumbnail><![CDATA[thumbnail=([^,]+)]]></thumbnail>
    <duration><![CDATA[]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            //http://www.dy1234.net/player/32587-0-0.html...置document.getElementsByTagName('html')[0].innerHTML不行，清空head.innerHTML也不行！
            var play = document.getElementById('play');
            var url = unescape(play.innerHTML.match(/u=([^&]+)/)[1]);
            var domain = url.match(/https?:\/\/[^/]+/)[0];
            var html = window.external.getHtmlCode(url);
            var title = window.xTitle || html.match(/<title>([^<]+)<\/title>/)[1];
            var video_url = domain + html.match(/main\s+=\s+\"([^\"]+)/)[1];
            var thumbnail = domain + html.match(/pic\s+=\s+\"([^\"]+)/)[1];
            document.body.innerHTML = 'vtitle=\"' + title + '\",thumbnail=' + thumbnail + ',cr_video_url=' + video_url + '$';
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>