<?xml version="1.0" encoding="utf-8"?>
<parser delay="2500" crpj="true" date="2019.11.04">
    <url><![CDATA[https?://(?:www\.)?boosj\.com/(?<id>[^.]+)\.html?]]></url>
    <title><![CDATA[videoName\s+:(?:'|")([^'"]+)]]></title>
    <thumbnail><![CDATA[bigImageUrl\s+:(?:'|")([^'"]+)]]></thumbnail>
    <duration><![CDATA[playLength":"([^"]+)"]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        var url = 'http://gslb.boosj.com/ips.json';
        var data = window.external.getHtmlCode(url);
        try {
            var vid = PlayVideoInfo.vid;
            var jo = JSON.parse(data);
            var country = jo.country;
            var area = jo.area;
            var region = jo.region;
            var isp = jo.isp;
            var ip = jo.ip;
            var s = jo.s;
            var gslb = jo.gslb;
            url = 'http://gslb.boosj.com/gslb?_id=' + vid + '&country=' + country + '&area=' + area + '&region=' + region + '&isp=' + isp + '&ip=' + ip + '&s=' + s + '&gslb=' + gslb;

            data = window.external.getHtmlCode(url);
            jo = JSON.parse(data);
            var video_url = jo.url + '?' + jo.t;
            document.body.innerHTML = 'cr_video_url=' + video_url + '$' + document.body.innerHTML;
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>