<?xml version="1.0" encoding="utf-8"?>
<parser delay="1500" date="2020.05.15">
    <url><![CDATA[https?://(?:\w+\.)?tudou\.com/\w+/(?<id>[^.?]+)]]></url>
    <title><![CDATA[title="([^"]+)"]]></title>
    <thumbnail><![CDATA[thumbnail=([^,]+)]]></thumbnail>
    <duration><![CDATA[timeFormat":"([^"]+)"]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            var title = window.__INITIAL_STATE__.videoDesc.detail.name || window.__INITIAL_STATE__.active;
            var thumbnail = window.__INITIAL_STATE__.videoDesc.detail.img;
            var vid = window.__INITIAL_STATE__.videoId;
            var video_url = 'https://v.youku.com/v_show/id_' + vid + '.html';
            document.body.innerHTML = 'title=\"' + title + '\",thumbnail=' + thumbnail + ',cr_video_url=' + video_url + '$' + document.body.innerHTML;
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>