<?xml version="1.0" encoding="utf-8"?>
<parser delay="1500" crpj="true" referer="true" date="2020.03.29">
    <url><![CDATA[https?://(?:www\.)?hanjutv\.com/player/(?<id>[^.]+)\.html?]]></url>
    <title><![CDATA[title="([^"]+)"]]></title>
    <thumbnail><![CDATA[thumbnail=([^,]+)]]></thumbnail>
    <duration><![CDATA[]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            var title = document.getElementsByTagName('h1')[0].innerText;
            var info_url = document.getElementsByTagName('h1')[0].firstElementChild.href;
            var html = window.external.getHtmlCode(info_url);
            var thumbnail = html.match(/bdPic\":\s+\"([^\"]+)/)[1];
            var video_url = document.getElementById('playPath').src.match(/path=([^\"]+)/)[1];
            document.body.innerHTML = 'title=\"' + title + '\",thumbnail=' + thumbnail + ',cr_video_url=' + video_url + '$';
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>