<?xml version="1.0" encoding="utf-8"?>
<parser delay="1500" crpj="true" referer="true" date="2021.03.15">
    <url><![CDATA[https?://(?:www\.)?duboku\.\w+/vodplay/(?<id>[^.]+)\.html?]]></url>
    <title><![CDATA[data-name="([^"]+)]]></title>
    <thumbnail><![CDATA[data-pic="([^"]+)]]></thumbnail>
    <duration><![CDATA[]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            //https://www.duboku.co/vodplay/1583-1-1.html
            var html = '', video_url = '';
            if (!this.player_data) {
                var html = window.external.getHtmlCode(window.external.url);
                var video_url = html.match(/\"([^\"]+\.m3u8)/)[1].replace(/\\/g, '');
            }
            else
                video_url = this.player_data.url;
            html = 'cr_video_url=' + video_url + '$' + html;
            document.body.innerHTML = html + '$' + document.body.innerHTML;
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>