<?xml version="1.0" encoding="utf-8"?>
<parser delay="1500" date="2021.03.17">
    <url><![CDATA[https?://(?:www\.)?fun\.tv/vplay/(?<id>[^/]+)]]></url>
    <title><![CDATA[title="([^"]+)"]]></title>
    <thumbnail><![CDATA[thumbnail=([^,]+)]]></thumbnail>
    <duration><![CDATA[duration=([^,]+)]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <ckSign><![CDATA[userid]]></ckSign>
    <jsCode><![CDATA[
        try {
            var title = (document.getElementsByClassName('cru-tit').length != 0) ? document.getElementsByClassName('cru-tit')[0].innerText : window.vplay.vtitle;
            var thumbnail = window.list_json.pic_poster || window.vplayInfo.dvideos[0].videos[0].pic;
            var duration = window.vplayInfo.dvideos[0].videos[0].duration || 0;
            document.body.innerHTML = 'title=\"' + title + '\",thumbnail=' + thumbnail + ',duration=' + duration + ',cr_video_url=' + window.location.href + '$';
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>