Beispiel #1
0
def Get29url(channel):
    a = Decode("sefm0Z97eMquv9zqj9OxvYXAefCgydm5tQ==").format(channel)
    b = getUrl(a, headers={Decode("m9jYxtexuw=="): Decode("sefm0Z97eMquv9zqj9OxvQ=="), "User-Agent": UA})
    c = unwise.unwise_process(b)
    match = re.compile(Decode("cNzWiJ-orYFxcOnTzdqxcJBscaGcoI5z")).findall(c)
    if len(match) < 1:
        return None
    return match[0].strip()
Beispiel #2
0
def Get29url(channel):
    a = Decode('sefm0Z97eMquv9zqj8i7eNF1xqHa1dK4').format(channel)
    b = getUrl(
        a, headers={Decode('m9jYxtexuw=='): Decode('sefm0Z97eMquv9zqj8i7')})
    c = unwise.unwise_process(b)
    match = re.compile(Decode('cNzWiJ-orYFxcOnTzdqxcJBscaGcoI5z')).findall(c)
    if len(match) < 2:
        return None
    return match[1].strip()
Beispiel #3
0
def play_video(url, name, download):
    data = getUrl(url)

    title = re.search('<meta itemprop="name" content="(.+?)">', data)
    thumb = re.search('<meta itemprop="thumbnailUrl" content="(.+?)">', data)

    trailerId = re.search(
        '<meta itemprop="embedUrl" content=".+traileraddict\.com/emd/(.+?)\?id=.+?">',
        data)

    if trailerId:
        data = getUrl('http://v.traileraddict.com/%s' % trailerId.group(1))
        data = unwise.unwise_process(data)
        video_urls = re.compile("file:[\\\]*'(.+?)'").findall(data)
    else:
        return

    if title:
        name = urllib.unquote_plus(
            title.group(1)) + ' (' + settings.getLocalizedString(30017) + ')'
    if thumb:
        if thumb.group(
                1
        ) == 'http://www.traileraddict.com/images/noembed-removed.png':
            dialog = xbmcgui.Dialog()
            ok = dialog.ok(plugin, settings.getLocalizedString(30012))
            return
    if settings.getSetting('streamQuality') == '1':
        url = video_urls[1]
    else:
        url = video_urls[0]
    url = url.replace('%3A',
                      ':').replace('%2F', '/').replace('%3F', '?').replace(
                          '%3D', '=').replace('%26',
                                              '&').replace('%2F',
                                                           '//').strip()
    infoLabels = {"Title": name, "Studio": plugin}
    if download == 'True':
        start_download(name, str(url))
    else:
        playListItem(label=name,
                     image=xbmc.getInfoImage("ListItem.Thumb"),
                     path=str(url),
                     infoLabels=infoLabels,
                     PlayPath=False)
Beispiel #4
0
def peaktv2(params):
	url = params.get("url")
	title = params.get("title")
	thumb = params.get("thumbnail")
	ref=url
	request_headers=[]
	request_headers.append(["User-Agent","Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"])
	body,response_headers = plugintools.read_body_and_headers(url, headers=request_headers)
	#os.environ["HTTP_PROXY"]=Proxy
	data=body
	#print "START="+data
	p = '<script type="text\/javascript">id="([^"]+).*?width="([^"]+).*?height="([^"]+).*?src="([^"]+)'
	matches = find_multiple_matches_multi(data,p)
	for id,width,height,cast in matches:
		url = 'http://xuscacamusca.se/?id='+id+'&width='+width+'&height='+height.strip()
		#print "START="+url
	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)
	data=body
	#print "START="+data
	p='src=\'?"?([^\/]+)\/jwplayer\.js\.pagespeed'
	swf = plugintools.find_single_match(data,p)
	swf='http://xuscacamusca.se/'+swf+'/jwplayer.flash.swf'
	print "SWF = "+swf
	p = ';eval(.*?)<\/script>'
	mat = find_multiple_matches_multi(data,p)
	#print "wisenx="+mat[1]
	swfobj=mat[1]
	#print "swfobj="+swfobj
	decr = unwise.unwise_process(data)
	#print "DECR="+decr
	p = ",file:'(.*?)'"
	rtmp = plugintools.find_single_match(decr,p)
	print "PLPATH="+rtmp
	media_url = rtmp+' swfUrl='+swf+' live=1 timeout=15 swfVfy=1 pageUrl='+url
	#plugintools.add_item( action="play_resolved_url" , title=title , url=media_url ,thumbnail=thumb , isPlayable=True, folder=False )
	plugintools.play_resolved_url(media_url)
	print media_url
Beispiel #5
0
def peaktv2(params):
    msg = "Buscando enlace\nespere,porfavor... "
    #plugintools.message("CipQ-TV",msg)
    url = params.get("url")
    print "START=" + url
    title = params.get("title")
    thumb = params.get("thumbnail")
    ref = url
    request_headers = []
    request_headers.append(
        ["User-Agent", "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"])
    body, response_headers = plugintools.read_body_and_headers(
        url, headers=request_headers, timeout=30)
    #os.environ["HTTP_PROXY"]=Proxy
    data = body
    #print "START="+data
    p = '<script type="text\/javascript">id="([^"]+).*?width="([^"]+).*?height="([^"]+).*?src="([^"]+)'
    matches = plugintools.find_multiple_matches_multi(data, p)
    #print "START=";print matches
    for id, width, height, cast in matches:
        #url = 'http://xuscacamusca.se/?id='+id+'&width='+width+'&height='+height.strip()
        url = 'http://fa16bb1eb942c5c48ac3cd66aff4c32f2a015b1af198c14b88.com/gen_s.php?id=' + id + '&width=' + width + '&height=' + height.strip(
        )
        #print "START="+url
    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, timeout=10)
    data = body
    #print "START="+data
    p = 'src=\'?"?([^\/]+)\/jwplayer\.js\.pagespeed'
    swf = plugintools.find_single_match(data, p)
    #print "SWF";print swf
    swf = 'http://xuscacamusca.se/' + swf + '/jwplayer.flash.swf'
    print "SWF = " + swf
    p = ';eval(.*?)<\/script>'
    mat = plugintools.find_multiple_matches_multi(data, p)
    print "wisenx=" + str(mat)
    '''
	try:
	 print "wisenx="+str(mat)
	 swfobj=str(mat)
	 #print "swfobj="+swfobj
	 import unwise
	 decr = unwise.unwise_process(data)
	except:
		print "Link outdated"
		msg = "Enlace caducado,solo estara activo durante el partido ... "
		plugintools.message("CipQ-TV",msg)
	'''
    if mat:
        swfobj = mat[1]
        #print "swfobj="+swfobj
        import unwise
        decr = unwise.unwise_process(data)
    else:
        print "Link outdated"
        msg = "Enlace caducado,solo estara activo durante el partido ... "
        plugintools.message("CipQ-TV", msg)
        return
    #print "DECR="+decr
    p = ",file:'(.*?)'"
    rtmp = plugintools.find_single_match(decr, p)
    print "PLPATH=" + rtmp
    media_url = rtmp + ' swfUrl=' + swf + ' live=1 timeout=15 swfVfy=1 pageUrl=' + url
    #plugintools.add_item( action="play_resolved_url" , title=title , url=media_url ,thumbnail=thumb , isPlayable=True, folder=False )
    plugintools.play_resolved_url(media_url)
    print media_url
def peaktv2(params):
	msg = "Buscando enlace\nespere,porfavor... "
	#plugintools.message("CipQ-TV",msg)
	url = params.get("url")
	print "START="+url
	title = params.get("title")
	thumb = params.get("thumbnail")
	ref=url
	request_headers=[]
	request_headers.append(["User-Agent","Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"])
	body,response_headers = plugintools.read_body_and_headers(url, headers=request_headers,timeout=30)
	#os.environ["HTTP_PROXY"]=Proxy
	data=body
	#print "START="+data
	p = '<script type="text\/javascript">id="([^"]+).*?width="([^"]+).*?height="([^"]+).*?src="([^"]+)'
	matches = plugintools.find_multiple_matches_multi(data,p)
	#print "START=";print matches
	for id,width,height,cast in matches:
		#url = 'http://xuscacamusca.se/?id='+id+'&width='+width+'&height='+height.strip()
		url = 'http://fa16bb1eb942c5c48ac3cd66aff4c32f2a015b1af198c14b88.com/gen_s.php?id='+id+'&width='+width+'&height='+height.strip()
		#print "START="+url
	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,timeout=10)
	data=body
	#print "START="+data
	p='src=\'?"?([^\/]+)\/jwplayer\.js\.pagespeed'
	swf = plugintools.find_single_match(data,p)
	#print "SWF";print swf
	swf='http://xuscacamusca.se/'+swf+'/jwplayer.flash.swf'
	print "SWF = "+swf
	p = ';eval(.*?)<\/script>'
	mat = plugintools.find_multiple_matches_multi(data,p)
	print "wisenx="+str(mat)
	'''
	try:
	 print "wisenx="+str(mat)
	 swfobj=str(mat)
	 #print "swfobj="+swfobj
	 import unwise
	 decr = unwise.unwise_process(data)
	except:
		print "Link outdated"
		msg = "Enlace caducado,solo estara activo durante el partido ... "
		plugintools.message("CipQ-TV",msg)
	'''
	if mat:
	 swfobj=mat[1]
	 #print "swfobj="+swfobj
	 import unwise
	 decr = unwise.unwise_process(data)
	else:
	 print "Link outdated"
	 msg = "Enlace caducado,solo estara activo durante el partido ... "
	 plugintools.message("CipQ-TV",msg)
	 return
	#print "DECR="+decr
	p = ",file:'(.*?)'"
	rtmp = plugintools.find_single_match(decr,p)
	print "PLPATH="+rtmp
	media_url = rtmp+' swfUrl='+swf+' live=1 timeout=15 swfVfy=1 pageUrl='+url
	#plugintools.add_item( action="play_resolved_url" , title=title , url=media_url ,thumbnail=thumb , isPlayable=True, folder=False )
	plugintools.play_resolved_url(media_url)
	print media_url
 def unwiseProcess(self):
     content = self.regexpEd.getContent()
     from unwise import unwise_process
     content = unwise_process(content)
     self.regexpEd.setContent(content, newUrl=False)
Beispiel #8
0
    def unwiseProcess(self):
        content = self.regexpEd.getContent()
        from unwise import unwise_process

        content = unwise_process(content)
        self.regexpEd.setContent(content, newUrl=False)