<?xml version="1.0" encoding="utf-8"?>
<parser delay="2500" crpj="true" date="2020.01.04">
    <url><![CDATA[https?://(?:www\.)?lizhi\.\w+/\d+/(?<id>\d+)]]></url>
    <title><![CDATA[<h1[^>]+>([^<]+)</h1>]]></title>
    <thumbnail><![CDATA[<img[^>]+src="([^"]+\.jpg)"]]></thumbnail>
    <duration><![CDATA[data-duration="([^"]+)"]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            var url = window.external.url || window.location.href;
            var data_id = url.match(/\/\d+\/(\d+)/)[1];
            var url = 'https://www.lizhi.fm/media/url/' + data_id;
            var data = window.external.getHtmlCode(url);
            var jo = JSON.parse(data);
            var video_url = jo.data.url;
            document.body.innerHTML = 'cr_video_url=' + video_url + '$' + document.body.innerHTML;
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>