<?xml version="1.0" encoding="utf-8"?>
<parser delay="500" date="2020.11.10">
    <url><![CDATA[https?://(?:\w+\.)?meijutt\.\w+/vod/(?<id>[^.]+)\.html?]]></url>
    <title><![CDATA[<title>(.+?)</title>]]></title>
    <thumbnail><![CDATA[]]></thumbnail>
    <duration><![CDATA[]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            var video_url = window.location.href;
            var iframes = document.getElementsByTagName('iframe');
            for (var i = 0; i <= iframes.length - 1; i++) {
                var src = iframes[i].src;
                if (src && src.indexOf('=http') != -1) {
                    var html = window.external.getHtmlCode(src, window.location.href);
                    if (html.match(/url: '([^']+)/))
                        video_url = html.match(/url: '([^']+)/)[1];
                    else
                        video_url = src.substr(src.indexOf('=http') + 1);
                    break;
                }
            }
            document.body.innerHTML = 'cr_video_url=' + video_url + '$' + document.body.innerHTML;
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>