<?xml version="1.0" encoding="utf-8"?>
<parser delay="500" date="2020.04.12">
    <url><![CDATA[https?://(?:www\.)?missevan\.com/sound/(?:player\?id=(?<id>[^&]+)|(?<id>\d+))]]></url>
    <title><![CDATA[cover-title">([^<]+)</div>]]></title>
    <thumbnail><![CDATA[cover-img"><img\s+src="([^"]+)"]]></thumbnail>
    <duration><![CDATA[duration=([^,]+)]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            var href = window.location.href
            var id = href.match(/id=([^&]+)/)[1];
            var api_url = 'https://www.missevan.com/sound/getsound?soundid=' + id;
            var data = window.external.getHtmlCode(api_url, href);
            var jo = JSON.parse(data);
            var duration = jo.info.sound.duration / 1000;
            var video_url = jo.info.sound.soundurl;
            document.body.innerHTML = 'duration=' + duration + ',cr_video_url=' + video_url + '$' + document.body.innerHTML;
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>