<?xml version="1.0" encoding="utf-8"?>
<parser delay="9500" crpj="true"  cookies="false" headers="false" date="2021.03.04">
    <url><![CDATA[https?://(?:\w+\.)?91porn\.com/.*?viewkey=(?<id>[^&]+)]]></url>
    <title><![CDATA[title="([^"]+)"]]></title>
    <thumbnail><![CDATA[thumbnail=([^,]+)]]></thumbnail>
    <duration><![CDATA[duration=([^,]+)]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <ckSign><![CDATA[ignore]]></ckSign>
    <jsCode><![CDATA[
        try {
            //http://91porn.com/view_video.php?viewkey=c05ed21b6115c904cbb5
            //长些延时，以绕过Cloudflare 5秒检测
            var title = (document.getElementsByTagName('h4').length != 0) ? document.getElementsByTagName('h4')[0].innerText : document.title;
            var thumbnail = document.getElementById('player_one') ? document.getElementById('player_one').outerHTML.match(/poster=\"([^\"]+)/)[1] : '';
            var duration = document.getElementById('useraction') ? document.getElementById('useraction').innerHTML.match(/video-info-span\">([^<]+)/)[1] : '';
            var video_url = '';
            if (document.getElementsByTagName('video').length != 0) {
                var html = document.getElementsByTagName('video')[0].innerHTML;
                html = html.substr(html.indexOf('</script>') + 9);
                video_url = html.match(/source\s+src=\"([^\"]+)/)[1];
            }
            if (!video_url)
                video_url = (document.getElementsByTagName('video').length != 0) ? document.getElementsByTagName('video')[0].src : window.location.href;
            document.body.innerHTML = 'title=\"' + title + '\",thumbnail=' + thumbnail + ',duration=' + duration + ',cr_video_url=' + video_url + '$';
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>