<?xml version="1.0" encoding="utf-8"?>
<parser delay="1500" date="2021.03.31">
    <url><![CDATA[https?://(?:www\.)?mingtian\d+\.com/play/(?<id>[^./]+)\.html?]]></url>
    <title><![CDATA[title="([^"]+)"]]></title>
    <thumbnail><![CDATA[thumbnail=([^,]+)]]></thumbnail>
    <duration><![CDATA[]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            //https://www.mingtian6.com/play/4330-0-16.html
            var title = window.playn + ((playp && playp.indexOf('第') != -1) ? '-' + playp : '') || document.title;
            var vid = window.location.href.match(/play\/(\d+)/)[1];
            var html = window.external.getHtmlCode('https://www.mingtian6.com/html/' + vid + '.html');
            var thumbnail = '';
            if (html.indexOf('background: url(') != -1)
                thumbnail = html.match(/background:\s+url\(([^\)]+)/)[1];
            var video_url = parent.now || window.location.href;

            document.body.innerHTML = 'title=\"' + title + '\",thumbnail=' + thumbnail + ',cr_video_url=' + video_url + '$';
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>