Exemplo n.º 1
0
def resolve(url):
    #try:
        s = requests.Session()

        ref = liveresolver_utils.remove_referer(url)
        result = s.get(url, headers={'User-agent':client.agent()}).text
        log(s.cookies)
Exemplo n.º 2
0
def resolve(url):
    try:
        try:
            referer = urlparse.parse_qs(
                urlparse.urlparse(url).query)['referer'][0]
        except:
            referer = url
        url = liveresolver_utils.remove_referer(url)
        result = client.request(url, referer=referer)
        json_url = re.findall('getJSON\([\"\']([^\"\']+)', result)[0]
        j = json.loads(client.request(json_url, referer=url))
        rtmp = j['rtmp']
        file = j['streamname']
        u2 = 'http://' + rtmp + '/player.php?ch=' + file
        result = client.request(u2, referer=url)
        auth = re.findall('.*?(c2V[^"\'&]+)', result)[0]
        url = 'http://' + rtmp + '/live/' + file + '.m3u8?token=' + auth
        url += '|%s' % urllib.urlencode(
            {
                'Referer': u2,
                'User-agent': client.agent(),
                'X-Requested-With': constants.get_shockwave()
            })
        return url
    except:
        return
Exemplo n.º 3
0
def resolve(url):
    #try:
    s = requests.Session()

    ref = liveresolver_utils.remove_referer(url)
    result = s.get(url, headers={'User-agent': client.agent()}).text
    log(s.cookies)
Exemplo n.º 4
0
def resolve(url):
    try:

        try:
            referer = urlparse.parse_qs(
                urlparse.urlparse(url).query)['referer'][0]
        except:
            referer = url

        url = liveresolver_utils.remove_referer(url)
        pageUrl = url

        result = client.request(url, referer=referer)

        id, channel, pk = re.findall(
            'id=(\d+)&s=([^&\'"]+).+?&pk=([^&\'"]+).*', result)[0]
        r2 = client.request(
            'http://www.streamifypublisher.com:1935/loadbalancer?%s' % channel,
            pageUrl)
        ip = r2.split('=')[1]

        url = 'rtmp://%s/live' % ip
        url = url + ' playPath=' + channel + '?id=' + id + '&pk=' + pk + ' swfVfy=1 timeout=15 live=true conn=S:OK swfUrl=http://www.streamifyplayer.com/resources/scripts/eplayer.swf flashver=' + constants.flash_ver(
        ) + ' pageUrl=' + pageUrl

        return url

    except:
        return
Exemplo n.º 5
0
def resolve(url):
    #try:
        try: referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0]
    	except: referer = url

    	url = liveresolver_utils.remove_referer(url)
        result = client.request(url, referer=referer)
        log(result)
        
        return url
Exemplo n.º 6
0
def resolve(url):
    #try:
        pageUrl = url
        try: referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0]
        except: referer = url

        url = liveresolver_utils.remove_referer(url)

        result = client.request(url, referer=referer, headers= { 'Host': urlparse.urlparse(url).netloc} )
        
        file = re.findall('file=([^&]+)',result)[0]
        streamer = re.findall('streamer=([^&]+)',result)[0]
        swf = re.findall('[\"\'](.+?.swf)[\"\']',result)[0]
        url = streamer + ' playpath=' + file + ' swfUrl=' + swf + ' live=1 token=Fo5_n0w?U.rA6l3-70w47ch flashver=' + constants.flash_ver() + ' timeout=13 swfVfy=1 pageUrl=' + pageUrl
        return url
Exemplo n.º 7
0
def resolve(url):
    try:
        try: referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0]
        except: referer = url
        url = liveresolver_utils.remove_referer(url)

        result = client.request(url, referer = referer)
        streamer = re.findall("'streamer',\s*'(.+?)'\);",result)[0]
        file = re.findall("'file',\s*'(.+?)'\);",result)[0]

        token = re.findall("'token',\s*'(.+?)'\);",result)[0]
        url = streamer +' playpath='+ file + ' swfUrl=http://www.castfree.me/player.swf flashver=' + constants.flash_ver() + ' token='+ token.decode('ascii','ignore') +' live=1 timeout=14 swfVfy=1 pageUrl=' + url
        return url
    except:
        return
Exemplo n.º 8
0
def resolve(url):
    try:
        pageUrl = url
        try: referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0]
        except: referer = url

        url = liveresolver_utils.remove_referer(url)

        result = client.request(url, referer=referer, headers= { 'Host': urlparse.urlparse(url).netloc} )
        file = re.findall('file=([^&]+)',result)[0]
        streamer = re.findall('streamer=([^&]+)',result)[0]
        swf = re.findall('[\"\'](.+?.swf)[\"\']',result)[0]
        url = streamer + ' playpath=' + file + ' swfUrl=' + swf + ' live=1 token=Fo5_n0w?U.rA6l3-70w47ch flashver=' + constants.flash_ver() + ' timeout=13 swfVfy=1 pageUrl=' + pageUrl
        return url
    except:
        return
Exemplo n.º 9
0
def resolve(url):
    try:
        try:
            referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0]
        except:
            referer=url
        url = liveresolver_utils.remove_referer(url)

        result = client.request(url, referer=referer, mobile=True)
        r2 = client.request('http://cdn.mipspublisher.com:1935/loadbalancer')
        ipad = re.findall('redirect=([^$]+)',r2)[0]
        m3u8 = 'http://' + ipad + re.findall('[\"\'](:.+?m3u8[^\"\']+)',result)[0]
        m3u8 += '|%s' % urllib.urlencode({'Referer':referer,'User-agent':client.agent(),'X-Requested-With':constants.get_shockwave()})
        return m3u8 
        
    except:
        return
Exemplo n.º 10
0
def resolve(url):
    #try:
        s = requests.Session()
        try:
            referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0]
        except:
            referer= url 


        ref = liveresolver_utils.remove_referer(url)
        result = s.get(url, headers={'Referer':referer,'User-agent':client.agent()}).text
        curl = re.findall('curl\s*=\s*[\"\']([^\"\']+)',result)[0]
        url = base64.b64decode(curl)
        token = json.loads(s.get('http://bro.adcast.tech/getToken.php').text)['token']
        url+= 'wfNz6Pz_jNZfR8wmB8JEPw'
        url+='|%s' % urllib.urlencode({'User-agent':'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36','Referer':ref,'X-Requested-With':constants.get_shockwave(),'Host':urlparse.urlparse(url).netloc,'Accept-Encoding':'gzip, deflate, lzma, sdch'})
        return url
Exemplo n.º 11
0
def resolve(url):
    try:
        try:
            referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0]
        except:
            referer= url 


        url = liveresolver_utils.remove_referer(url)

        result = client.request(url,referer=referer)
        result = decryptionUtils.doDemystify(result)
        rtmp = re.findall('.*file:"([^"]+)"',result)[0]
        token = re.findall('token:"([^"]+)"',result)[0]
        url = rtmp +' swfUrl=http://akamaistreaming.com/YjFlMTI0MT/jwplayer.flash.swf token='+token+' flashver=' + constants.flash_ver() + ' live=1 timeout=15 pageUrl=' + url
        return url 
    except:
        return
Exemplo n.º 12
0
def resolve(url):
    #try:
        s = requests.Session()
        try:
            referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0]
        except:
            referer= url 


        ref = liveresolver_utils.remove_referer(url)
        result = s.get(url, headers={'Referer':referer,'User-agent':client.agent()}).text
        log(result)
        curl = re.findall('curl\s*=\s*[\"\']([^\"\']+)',result)[0]
        url = base64.b64decode(curl)
        token = json.loads(s.get('http://bro.adcast.tech/getToken.php').text)['token']
        url+=token

        url+='|%s' % urllib.urlencode({'User-agent':client.agent(),'Referer':ref,'X-Requested-With':constants.get_shockwave(),'Host':urlparse.urlparse(url).netloc})
        return url
Exemplo n.º 13
0
def resolve(url):
    try:
        try:
            referer = urlparse.parse_qs(
                urlparse.urlparse(url).query)['referer'][0]
        except:
            referer = url

        url = liveresolver_utils.remove_referer(url)

        result = client.request(url, referer=referer)
        result = decryptionUtils.doDemystify(result)
        rtmp = re.findall('.*file:"([^"]+)"', result)[0]
        token = re.findall('token:"([^"]+)"', result)[0]
        url = rtmp + ' swfUrl=http://akamaistreaming.com/YjFlMTI0MT/jwplayer.flash.swf token=' + token + ' flashver=' + constants.flash_ver(
        ) + ' live=1 timeout=15 pageUrl=' + url
        return url
    except:
        return
Exemplo n.º 14
0
def resolve(url):
    try:
        try:
            referer = urlparse.parse_qs(
                urlparse.urlparse(url).query)['referer'][0]
        except:
            referer = url
        url = liveresolver_utils.remove_referer(url)

        result = client.request(url, referer=referer)
        streamer = re.findall("'streamer',\s*'(.+?)'\);", result)[0]
        file = re.findall("'file',\s*'(.+?)'\);", result)[0]

        token = re.findall("'token',\s*'(.+?)'\);", result)[0]
        url = streamer + ' playpath=' + file + ' swfUrl=http://www.castfree.me/player.swf flashver=' + constants.flash_ver(
        ) + ' token=' + token.decode(
            'ascii', 'ignore') + ' live=1 timeout=14 swfVfy=1 pageUrl=' + url
        return url
    except:
        return
Exemplo n.º 15
0
def resolve(url):
    try:
        try:
            referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0]
        except:
            referer= url 
        url = liveresolver_utils.remove_referer(url)
        result = client.request(url, referer=referer)
        json_url = re.findall('getJSON\([\"\']([^\"\']+)',result)[0]
        j = json.loads(client.request(json_url, referer=url))
        rtmp = j['rtmp']
        file = j['streamname']
        u2 = 'http://'+rtmp+'/player.php?ch='+file
        result = client.request(u2, referer=url)
        auth = re.findall('.*?(c2V[^"\'&]+)',result)[0]
        url = 'http://'+rtmp+'/live/'+file+'.m3u8?token='+auth
        url += '|%s' %urllib.urlencode({'Referer':u2,'User-agent':client.agent(),'X-Requested-With':constants.get_shockwave()})
        return url
    except:
        return
Exemplo n.º 16
0
def resolve(url):
    try:
        s = requests.Session()
        try:
            referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0]
        except:
            referer= url 


        ref = liveresolver_utils.remove_referer(url)
        result = s.get(url, headers={'Referer':referer,'User-agent':client.agent()}).text
        curl = re.findall('.*url\s*=\s*["\']([^"\']+).*',result)[0]
        url = base64.b64decode(curl)
        token = json.loads(s.get('http://bro.adca.st/getToken.php').text)['token']
        url+= '2iJlpi2DMMr7q_DP8E9d9g'
        url+='|%s' % urllib.urlencode({'User-agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36','Referer':ref,'X-Requested-With':constants.get_shockwave()})
        return url

    
    except:
        return
Exemplo n.º 17
0
def resolve(url):
    try:
    	

        try: referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0]
    	except: referer = url
        url = liveresolver_utils.remove_referer(url)
        page = url
        result = client.request(url, referer=referer)
        try:
            url = urllib.unquote(re.findall('.*file["]*\s*:\s*["\']([^"\']+)',result)[0])
        except:
            id = urlparse.parse_qs(urlparse.urlparse(url).query)['id'][0]
            url = 'http://aliez.tv/redir/c.php?i=' + id
            url2 = client.request(url,output='geturl')
            page = url2
            result = client.request(url2,referer='http://aliez.tv')
            url = urllib.unquote(re.findall('.*file["]*\s*:\s*["\']([^"\']+)',result)[0])

        url += ' live=true swfVfy=1 swfUrl=http://i.aliez.me/swf/playernew.swf flashver=%s pageUrl='%constants.flash_ver() + page
        return url
    except:
        return
Exemplo n.º 18
0
def resolve(url):
    try:
        
        try:
            referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0]
        except:
            referer=url
        
        url = liveresolver_utils.remove_referer(url)
        pageUrl=url

        result = client.request(url, referer=referer)

        id,channel,pk = re.findall('id=(\d+)&s=([^&\'"]+).+?&pk=([^&\'"]+).*',result)[0]
        r2 = client.request('http://www.streamifypublisher.com:1935/loadbalancer?%s'%channel,pageUrl)
        ip = r2.split('=')[1]

        url = 'rtmp://%s/live'%ip
        url = url + ' playPath=' + channel + '?id=' + id + '&pk='+pk+' swfVfy=1 timeout=15 live=true conn=S:OK swfUrl=http://www.streamifyplayer.com/resources/scripts/eplayer.swf flashver=' + constants.flash_ver() + ' pageUrl=' + pageUrl

        return url
    
    except:
        return
Exemplo n.º 19
0
def resolve(url):
    try:
        try:
            referer = urlparse.parse_qs(
                urlparse.urlparse(url).query)['referer'][0]
        except:
            referer = url
        url = liveresolver_utils.remove_referer(url)

        result = client.request(url, referer=referer, mobile=True)
        r2 = client.request('http://cdn.mipspublisher.com:1935/loadbalancer')
        ipad = re.findall('redirect=([^$]+)', r2)[0]
        m3u8 = 'http://' + ipad + re.findall('[\"\'](:.+?m3u8[^\"\']+)',
                                             result)[0]
        m3u8 += '|%s' % urllib.urlencode(
            {
                'Referer': referer,
                'User-agent': client.agent(),
                'X-Requested-With': constants.get_shockwave()
            })
        return m3u8

    except:
        return