<?xml version="1.0" encoding="utf-8"?>
<parser delay="1500" crpj="true" date="2021.01.13">
    <url><![CDATA[https?://(?:www\.)?5tps\.com/play/(?<id>[^.]+)\.html?]]></url>
    <title><![CDATA[title="([^"]+)"]]></title>
    <thumbnail><![CDATA[]]></thumbnail>
    <duration><![CDATA[]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            //https://www.5tps.com/play/168_46_1_1.html
            var f = document.getElementsByTagName('iframe')[0];
            var url = f.src;
            var html = window.external.getHtmlCode(url, window.location.href, false);
            var js1 = html.substring(html.indexOf('var nexturl;'), html.indexOf('function next')).trim();
            var js2 = html.substring(html.indexOf('mp3:'), html.indexOf('}).')).trim();
            var js = js1 + '\r\nvar ' + js2.replace('mp3:', 'video_url=');
            eval(js);
            document.body.innerHTML = 'title=\"' + this.pingshu_title + '\",cr_video_url=' + video_url + '$';
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>