Пример #1
0
def evaluate(host):
    try:
        if 'openload' in host:
            try:
                from resources.lib.resolvers import openload
                host = openload.get_video_openload(host)
                return host
            except:
                host = resolveurl.resolve(host)

        elif 'gamovideo' in host:
            cookie = client.request(host, output='cookie', close=False)
            OPEN = client.request(host, cookie=cookie, referer=BASEURL)
            host = re.compile('file: "(.+?)"', re.DOTALL).findall(OPEN)[1]
            return host

        elif 'streamin' in host:
            host = resolveurl.resolve(host)

        elif resolveurl.HostedMediaFile(host):
            host = resolveurl.resolve(host)

        return host
    except:
        pass
Пример #2
0
def evaluate(host):
    try:
        if 'openload' in host:
            try:
                from resources.lib.resolvers import openload
                oplink = openload.get_video_openload(host)
                host = resolveurl.resolve(oplink) if oplink == '' else oplink
            except BaseException:
                host = resolveurl.resolve(host)

        elif resolveurl.HostedMediaFile(host):
            host = resolveurl.resolve(host)

        return host
    except BaseException:
        pass