def get_video_url(plugin,
                  item_id,
                  video_url,
                  download_mode=False,
                  **kwargs):

    resp = urlquick.get(video_url)

    if len(re.compile(r'source src\=\"(.*?)\"').findall(resp.text)) > 0:
        stream_url = re.compile(
            r'source src\=\"(.*?)\"').findall(resp.text)[0]

        if download_mode:
            return download.download_video(stream_url)
        return stream_url

    video_id = re.compile(r'www.youtube.com\/embed\/(.*?)\"').findall(resp.text)[0]
    return resolver_proxy.get_stream_youtube(plugin, video_id, download_mode)