Пример #1
0
def resolve(url):
    try:
        url = url.replace('/embed-', '/')
        url = re.compile('//.+?/([\w]+)').findall(url)[0]
        url = 'http://streamin.to/embed-%s.html' % url

        result = client.request(url, mobile=True)
        client.log(">>>>>>>>> %s" % result)
        url = re.compile("file *: *[\'|\"](http.+?)[\'|\"]").findall(result)[-1]
        return url
    except:
        return
Пример #2
0
def resolve(url):
    try:
        url = url.replace('/embed-', '/')
        url = re.compile('//.+?/([\w]+)').findall(url)[0]
        url = 'http://streamin.to/embed-%s.html' % url

        result = client.request(url, mobile=True)
        client.log(">>>>>>>>> %s" % result)
        url = re.compile("file *: *[\'|\"](http.+?)[\'|\"]").findall(
            result)[-1]
        return url
    except:
        return