def nstr(pageurl,ref,body): plugintools.log("[PalcoTV 0.3.0].nstr") print 'pageurl',pageurl # http://www.direct2watch.com/embedplayer.php?width=653&height=410&channel=14&autoplay=true p1 = re.compile(ur'channel=?\'?"?([^\'"\&,;]+)') p2 = re.compile(ur'width=?\'?"?([^\'"\&,;]+)') p3 = re.compile(ur'height=?\'?"?([^\'"\&,;]+)') f1=re.findall(p1, pageurl);f2=re.findall(p2, pageurl);f3=re.findall(p3, pageurl);#res=list(set(f)); print 'f1',f1 print 'f2',f2 print 'f3',f3 c=f1[0];w=f2[0];h=f3[0] url='http://www.direct2watch.com/embedplayer.php?width='+w+'&height='+h+'&channel='+c+'&autoplay=true';body='' plugintools.log("url= "+url) plugintools.log("referer= "+ref) bodi=curl_frame(url,ref,body) print "\nURLXXX = "+url+"\nREFXXX = "+ref#+"\n"+bodi tkserv='';strmr='';plpath='';swf='';vala=''; vals=ioncube.ioncube1(bodi) print "URL = "+url;print "REF = "+ref; tkserv=vals[0][1];strmr=vals[1][1].replace("\/","/");plpath=vals[2][1].replace(".flv","");swf=vals[3][1]; ref=url;url=tkserv;bodi=curl_frame(url,ref,body); p='token":"([^"]+)';token=plugintools.find_single_match(bodi,p);#print token media_url = strmr+'/'+plpath+' swfUrl='+swf+' token='+token+' live=1 timeout=15 swfVfy=1 pageUrl='+ref plugintools.play_resolved_url(media_url) print media_url
def vipracing2(params): msg = "Resolviendo enlace ... " request_headers=[] request_headers.append(["User-Agent","Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36"]) request_headers.append(["Referer","http://vipracing.tv"]) ref = 'http://vipracing.tv' url = params.get("url");ref=url body,response_headers = plugintools.read_body_and_headers(url, headers=request_headers) data = body.replace('window\.location\.replace\(ncr\)','') ''' array('freelivetv','byetv','9stream','castalba','castamp','direct2watch','kbps','flashstreaming','cast247','ilive','freebroadcast','flexstream','mips','veemi','yocast','yukons','ilive','iguide','ucaster','ezcast','maxstream','dinozap','janjua','tutelehd') ''' pattern = '<script type="text\/javascript" src="(.*direct2watch[^"]+)' uri = plugintools.find_single_match(body,pattern) pattern = 'embed\/([^\&]+).*?width=([^\&]+).*?height=([^\&]+)' match = plugintools.find_multiple_matches_multi(uri,pattern) for id,width,height in match: plugintools.log("ID= "+id) plugintools.log("WIDTH= "+width) plugintools.log("HEIGHT= "+height) data = plugintools.read(uri) p = 'src=\'?"?([^\'"]+)' uri = plugintools.find_single_match(data,p) plugintools.log("URI= "+uri) url=uri #print "URL = "+url;print "REF = "+ref; request_headers=[] request_headers.append(["User-Agent","Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"]) request_headers.append(["Referer",ref]) body,response_headers = plugintools.read_body_and_headers(url, headers=request_headers) #print "List : ", request_headers; bodi = body import ioncube vals=ioncube.ioncube1(bodi) #print tkserv+"\n"+strmr+"\n"+plpath+"\n"+swf#print valz;# print "URL = "+url;print "REF = "+ref; tkserv=vals[0][1];strmr=vals[1][1].replace("\/","/");plpath=vals[2][1].replace(".flv","");swf=vals[3][1]; ref=url;url=tkserv;bodyi=[];bodyy='';urli=[]; from plt import curl_frame bodi=curl_frame(url,ref,body,bodyi,bodyy,urli); p='token":"([^"]+)';token=plugintools.find_single_match(bodi,p);#print token media_url = strmr+'/'+plpath+' swfUrl='+swf+' token='+token+' live=1 timeout=15 swfVfy=1 pageUrl='+ref #media_url ='http://cpliga.nmp.hls.emision.dof6.com/hls/live/201767/channelpc2/index.m3u8' #media_url ='http://cpliga.nmp.hls.emision.dof6.com/hls/live/201767/channelpc2/20141028T074633-05-15185.ts' plugintools.play_resolved_url(media_url) print media_url '''
def nstr(url,ref,res): p1 = re.compile(ur'embed\/=?\'?"?([^\'"\&,;]+)') p2 = re.compile(ur'width=?\'?"?([^\'"\&,;]+)') p3 = re.compile(ur'height=?\'?"?([^\'"\&,;]+)') f1=re.findall(p1, str(res));f2=re.findall(p2, str(res));f3=re.findall(p3, str(res));#res=list(set(f)); w=f2[0];h=f3[0];c=f1[0]; url='http://www.9stream.com/embedplayer.php?width='+w+'&height='+h+'&channel='+c+'&autoplay=true';body='';# bodi=curl_frame(url,ref,body) tkserv='';strmr='';plpath='';swf='';vala=''; vals=ioncube.ioncube1(bodi) print "URL = "+url;print "REF = "+ref; tkserv=vals[0][1];strmr=vals[1][1].replace("\/","/");plpath=vals[2][1].replace(".flv","");swf=vals[3][1]; ref=url;url=tkserv;bodi=curl_frame(url,ref,body); p='token":"([^"]+)';token=plugintools.find_single_match(bodi,p);#print token media_url = strmr+'/'+plpath+' swfUrl='+swf+' token='+token+' live=1 timeout=15 swfVfy=1 pageUrl='+ref plugintools.play_resolved_url(media_url) print "MEDIA URL="+media_url
def nstr(pageurl, ref, body): plugintools.log("[Goku 0.0.0].nstr") print 'pageurl', pageurl # http://www.direct2watch.com/embedplayer.php?width=653&height=410&channel=14&autoplay=true p1 = re.compile(ur'channel=?\'?"?([^\'"\&,;]+)') p2 = re.compile(ur'width=?\'?"?([^\'"\&,;]+)') p3 = re.compile(ur'height=?\'?"?([^\'"\&,;]+)') f1 = re.findall(p1, pageurl) f2 = re.findall(p2, pageurl) f3 = re.findall(p3, pageurl) #res=list(set(f)); print 'f1', f1 print 'f2', f2 print 'f3', f3 c = f1[0] w = f2[0] h = f3[0] url = 'http://www.direct2watch.com/embedplayer.php?width=' + w + '&height=' + h + '&channel=' + c + '&autoplay=true' body = '' plugintools.log("url= " + url) plugintools.log("referer= " + ref) bodi = curl_frame(url, ref, body) print "\nURLXXX = " + url + "\nREFXXX = " + ref #+"\n"+bodi tkserv = '' strmr = '' plpath = '' swf = '' vala = '' vals = ioncube.ioncube1(bodi) print "URL = " + url print "REF = " + ref tkserv = vals[0][1] strmr = vals[1][1].replace("\/", "/") plpath = vals[2][1].replace(".flv", "") swf = vals[3][1] ref = url url = tkserv bodi = curl_frame(url, ref, body) p = 'token":"([^"]+)' token = plugintools.find_single_match(bodi, p) #print token media_url = strmr + '/' + plpath + ' swfUrl=' + swf + ' token=' + token + ' live=1 timeout=15 swfVfy=1 pageUrl=' + ref plugintools.play_resolved_url(media_url) print media_url
def nstr(url,ref,res): #print str(res); p1 = re.compile(ur'embed\/=?\'?"?([^\'"\&,;]+)') p2 = re.compile(ur'width=?\'?"?([^\'"\&,;]+)') p3 = re.compile(ur'height=?\'?"?([^\'"\&,;]+)') f1=re.findall(p1, str(res));f2=re.findall(p2, str(res));f3=re.findall(p3, str(res));#res=list(set(f)); w=f2[0];h=f3[0];c=f1[0]; #print f2;sys.exit() ref=url url='http://www.9stream.com/embedplayer.php?width='+w+'&height='+h+'&channel='+c+'&autoplay=true';body='';# bodi=curl_frame(url,ref,body) print "\nURLXXX = "+url+"\nREFXXX = "+ref#+"\n"+bodi tkserv='';strmr='';plpath='';swf='';vala=''; vals=ioncube.ioncube1(bodi) print "URL = "+url;print "REF = "+ref; tkserv=vals[0][1];strmr=vals[1][1].replace("\/","/");plpath=vals[2][1].replace(".flv","");swf=vals[3][1]; ref=url;url=tkserv;bodi=curl_frame(url,ref,body); p='token":"([^"]+)';token=plugintools.find_single_match(bodi,p);#print token media_url = strmr+'/'+plpath+' swfUrl='+swf+' token='+token+' live=1 timeout=15 swfVfy=1 pageUrl='+ref plugintools.play_resolved_url(media_url) print media_url
def nstr(url, ref, res): p1 = re.compile(ur'embed\/=?\'?"?([^\'"\&,;]+)') p2 = re.compile(ur'width=?\'?"?([^\'"\&,;]+)') p3 = re.compile(ur'height=?\'?"?([^\'"\&,;]+)') f1 = re.findall(p1, str(res)) f2 = re.findall(p2, str(res)) f3 = re.findall(p3, str(res)) #res=list(set(f)); w = f2[0] h = f3[0] c = f1[0] url = 'http://www.9stream.com/embedplayer.php?width=' + w + '&height=' + h + '&channel=' + c + '&autoplay=true' body = '' # bodi = curl_frame(url, ref, body) tkserv = '' strmr = '' plpath = '' swf = '' vala = '' vals = ioncube.ioncube1(bodi) print "URL = " + url print "REF = " + ref tkserv = vals[0][1] strmr = vals[1][1].replace("\/", "/") plpath = vals[2][1].replace(".flv", "") swf = vals[3][1] ref = url url = tkserv bodi = curl_frame(url, ref, body) p = 'token":"([^"]+)' token = plugintools.find_single_match(bodi, p) #print token media_url = strmr + '/' + plpath + ' swfUrl=' + swf + ' token=' + token + ' live=1 timeout=15 swfVfy=1 pageUrl=' + ref plugintools.play_resolved_url(media_url) print "MEDIA URL=" + media_url
def vipracing2(params): msg = "Resolviendo enlace ... " request_headers = [] request_headers.append([ "User-Agent", "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36" ]) request_headers.append(["Referer", "http://vipracing.tv"]) ref = 'http://vipracing.tv' url = params.get("url") ref = url body, response_headers = plugintools.read_body_and_headers( url, headers=request_headers) data = body.replace('window\.location\.replace\(ncr\)', '') ''' array('freelivetv','byetv','9stream','castalba','castamp','direct2watch','kbps','flashstreaming','cast247','ilive','freebroadcast','flexstream','mips','veemi','yocast','yukons','ilive','iguide','ucaster','ezcast','maxstream','dinozap','janjua','tutelehd') ''' pattern = '<script type="text\/javascript" src="(.*direct2watch[^"]+)' uri = plugintools.find_single_match(body, pattern) pattern = 'embed\/([^\&]+).*?width=([^\&]+).*?height=([^\&]+)' match = plugintools.find_multiple_matches_multi(uri, pattern) for id, width, height in match: plugintools.log("ID= " + id) plugintools.log("WIDTH= " + width) plugintools.log("HEIGHT= " + height) data = plugintools.read(uri) p = 'src=\'?"?([^\'"]+)' uri = plugintools.find_single_match(data, p) plugintools.log("URI= " + uri) url = uri #print "URL = "+url;print "REF = "+ref; request_headers = [] request_headers.append( ["User-Agent", "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"]) request_headers.append(["Referer", ref]) body, response_headers = plugintools.read_body_and_headers( url, headers=request_headers) #print "List : ", request_headers; bodi = body import ioncube vals = ioncube.ioncube1(bodi) #print tkserv+"\n"+strmr+"\n"+plpath+"\n"+swf#print valz;# print "URL = " + url print "REF = " + ref tkserv = vals[0][1] strmr = vals[1][1].replace("\/", "/") plpath = vals[2][1].replace(".flv", "") swf = vals[3][1] ref = url url = tkserv bodyi = [] bodyy = '' urli = [] from plt import curl_frame bodi = curl_frame(url, ref, body, bodyi, bodyy, urli) p = 'token":"([^"]+)' token = plugintools.find_single_match(bodi, p) #print token media_url = strmr + '/' + plpath + ' swfUrl=' + swf + ' token=' + token + ' live=1 timeout=15 swfVfy=1 pageUrl=' + ref #media_url ='http://cpliga.nmp.hls.emision.dof6.com/hls/live/201767/channelpc2/index.m3u8' #media_url ='http://cpliga.nmp.hls.emision.dof6.com/hls/live/201767/channelpc2/20141028T074633-05-15185.ts' plugintools.play_resolved_url(media_url) print media_url '''