<?xml version="1.0" encoding="utf-8"?>
<parser delay="2500" crpj="true" date="2020.05.04">
    <url><![CDATA[https?://(?:www\.)?ballislife\.com/(?<id>[^/]{9,})]]></url>
    <title><![CDATA[<meta\s+content="([^"]+)"\s+property="og:title">]]></title>
    <thumbnail><![CDATA[<meta\s+content="([^"]+)"\s+property="og:image">]]></thumbnail>
    <duration><![CDATA[]]></duration>
    <mediaUrl><![CDATA[cr_video_url=([^\$]+)]]></mediaUrl>
    <jsCode><![CDATA[
        try {
            var video_url = window.location.href;
            if (document.getElementsByClassName(' airtvplayer-iframe').length != 0) {
                var html = document.getElementsByClassName(' airtvplayer-iframe')[0].contentDocument.body.innerHTML;
                if (html.indexOf('youtube_id') != -1)
                    video_url = 'https://www.youtube.com/watch?v=' + html.match(/youtube_id\":\"([^\"]+)/)[1];
            }
            document.body.innerHTML = 'cr_video_url=' + video_url + '$' + document.body.innerHTML;
        }
        catch (ex) {
        }
    ]]></jsCode>
</parser>