

def resolve(url):
    try:
        url = urlparse.urlparse(url).query
        url = urlparse.parse_qsl(url)[0][1]
        url = ('http://videomega.tv/cdn.php?ref=%s' % url)
        result = client.request(url, mobile=True)
        url = client.parseDOM(result, 'source', ret='src', attrs={
            'type': 'video.+?',
        })[0]
        return url
    except:
        return

dataset/ETHPy150Open mrknow/filmkodi/plugin.video.specto/resources/lib/resolvers/videomega.py resolve/original