<?xml version="1.0" encoding="utf-8"?>
<parser delay="16000" date="2021.01.03">
    <url><![CDATA[https?://(?:item|detail|traveldetail)\.(?:taobao|tmall|fliggy)\.com/item\.htm.*?id=(?<id>[^&]+)]]></url>
    <title><![CDATA[<title>([^-]+).*?</title>]]></title>
    <thumbnail><![CDATA[<video[^>]+\bposter="([^"]+)"]]></thumbnail>
    <duration><![CDATA[TotalTime">([^<]+)</em>]]></duration>
    <mediaUrl><![CDATA[<video.*?><source\s+src="([^"]+)"]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            //https://detail.tmall.com/item.htm?&id=616188832706 single
            //https://detail.tmall.com/item.htm?id=629614457345
            //https://item.taobao.com/item.htm?id=630499255344 m3u8
            //https://traveldetail.fliggy.com/item.htm?id=539842111154&scene=taobao_shop
            if (document.getElementById('sufei-dialog-close'))
                document.getElementById('sufei-dialog-close').click();
            if (document.getElementsByClassName('video-mask-holder video-mask-holder-start').length != 0)
                document.getElementsByClassName('video-mask-holder video-mask-holder-start')[0].click();
            if (document.getElementById('detail'))
                document.body.innerHTML = document.getElementById('detail').innerHTML;
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>