<?xml version="1.0" encoding="utf-8"?>
<parser delay="1500" crpj="true" date="2021.01.03">
    <url><![CDATA[https?://(?:www\.)?lrts\.me/book/\d+/(?<id>\d+)]]></url>
    <title><![CDATA[]]></title>
    <thumbnail><![CDATA[]]></thumbnail>
    <duration><![CDATA[]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            var href = window.location.href;
            var video_url = '';
            var id = href.match(/book\/(\d+)/)[1];
            var section = href.match(/book\/\d+\/(\d+)/)[1];
            var base_url = 'http://m.lrts.me/ajax/getPlayPath?entityId=' + id + '&entityType=3&opType=1&type=0&sections=';
            var data = window.external.getHtmlCode(base_url + '[' + section + ']');
            if (data) {
                var jo = JSON.parse(data);
                if (jo.list && jo.list.length != 0)
                    video_url = jo.list[0].path;
            }
            document.body.innerHTML = 'cr_video_url=' + video_url + '$';
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>