<?xml version="1.0" encoding="utf-8"?>
<parser delay="1500" referer="true" date="2019.11.21">
    <url><![CDATA[https?://(?:www\.)?yy\.com/.*/(?<id>[^.]+)(?:\.html)?]]></url>
    <title><![CDATA[title="([^"]+)"]]></title>
    <thumbnail><![CDATA[thumbnail=([^,]+)]]></thumbnail>
    <duration><![CDATA[duration=([^,]+)]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            var title = window.pageInfo.title ? window.pageInfo.title : window.pageInfo.worksName;
            var video_url = window.pageInfo.video ? window.pageInfo.video : window.pageInfo.worksUrl;
            var thumbnail = window.pageInfo.pic ? window.pageInfo.pic : window.pageInfo.snapshot;
            var duration = (document.getElementsByClassName('yc__play-time__total-time').length != 0) ? document.getElementsByClassName('yc__play-time__total-time')[0].innerText : 0;
            var html = 'title=\"' + title + '\",thumbnail=' + thumbnail + ',duration=' + duration + ',cr_video_url=' + video_url;
            document.body.innerHTML = html + '$' + document.body.innerHTML;
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>