try this
Code:<item> <title>[COLOR lightskyblue]http://www.barretos.eu/player/players.php?canal=tnt[/COLOR]</title> <link>$doregex[cristal]|Referer=www.barretos.eu/player/players.php?canal=tnt&User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0</link> <regex> <name>cristal</name> <expres>(?s)form>.*?href="(.*?)"</expres> <page>http://www.barretos.eu/player/aovivo.php?canal=tnt</page> </regex> <thumbnail>https://uploaddeimagens.com.br/images/001/725/612/thumb/2.png</thumbnail> </item>
Quote Originally Posted by opg2014 View Post
Working perfect!
Thanks to streamwatcher2013 and picapau!
Can you help me with another one?
hxxp://hls. gi ize.c om/u n?ch=w wetv
need a referer: hxxp:// phot ocall .tv
(remove spaces)
I tried to regex, but I cant extract the final link...
Thank you again.
Sorry, can't make replies with quotes....this works
Code:xxx
xxxp://www.sintelevisor.com/tv/history2.html
<item>
<title>https://tumarcador.xyz/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR gold]Canal - Channel [makelist.param2][/COLOR]</title>
<link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar,m):#streamwatcher
return re.findall('<li><a.href="(.*?)">.+?(\d+)',requests.get('https://tumarcador.xyz/',headers={'user-agent':'Mozilla/5.0'},verify=False).content)
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar,m):#streamwatcher
url='https://tumarcador.xyz/[makelist.param1]'.replace('php','html')
return re.findall('playerInstance[\w\W]*?(?:src|file):.+?[\'"]([^\'"]+)',requests.get(url,headers={'user-agent':'Mozilla/5.0'},verify=False).content)[0]+'|user-agent=ipad&referer='+url
]]></expres>
<page></page>
</regex>
</item>
<item>
<title>http://cdn.crichd.to/embed2.php?id=sptv1</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
url=requests.get('http://cdn.crichd.to/embed2.php?id=sptv1',allow_redirects=False).headers['Location']
inf=re.findall('fid=[\'"]([^\'"]+).+?(\d+).+?(\d+).+?src=[\'"]([^\'"]+)',requests.get(url,headers={'user-agent':'Mozilla/5.0'}).content)[0]
link='http://'+re.findall('src=.+?//([^\'"]+)',requests.get('http:'+inf[3],headers={'user-agent':'Mozilla/5.0','referer':url}).content)[0]+'desktop&live='+inf[0]+'&vw='+inf[1]+'&vh='+inf[2]
source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':url}).content.replace('\\','').replace('","','')
inf=re.findall('player.play[\w\W]*?return\(\["([^"]+).+?\+\s*(\w[^\.]+).+?"(\w[^"]+)',source)[0]
var2=re.findall('var.%s.+?"([^"]+)'%inf[1],source)[0]
var3=re.findall('id=%s>([^<]+)'%inf[2],source)[0]
return 'http:'+inf[0]+var2+var3+'|user-agent=ipad&referer='+link
]]></expres>
<page>http://cdn.crichd.to/embed2.php?id=sptv1</page>
</regex>
</item>
<item>
<title>http://slider.kz/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR gold][makelist.param3][/COLOR]</title>
<link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,urllib,xbmcgui,xbmc,xbmcaddon,time
def GetLSProData(page_data, Cookie_Jar,m,itxt='Name of Song:'):#streamwatcher
addon = xbmcaddon.Addon('plugin.video.live.streamspro')
addon_version = addon.getAddonInfo('version')
profile = xbmc.translatePath(addon.getAddonInfo('profile').decode('utf-8'))
solver = InputWindow(txt=itxt);solution= solver.get()
list=requests.get('http://slider.kz/vk_auth.php?q=%s'%solution,headers={'user-agent':'Mozilla/5.0','referer':'http://slider.kz/','x-requested-with':'XMLHttpRequest'}).content.replace('\\','')
return re.findall('"id":"(.*?)".+?":(\d+).+?art":"(.*?)".+?":"(.*?)".+?":"([^"]+)',list)
class InputWindow(xbmcgui.WindowDialog):
def __init__(self, *args, **kwargs):
self.txt = kwargs.get('txt','')
xbmcgui.WindowXMLDialog.__init__(self)
path = xbmcaddon.Addon().getAddonInfo('path')
self.kbd = xbmc.Keyboard()
self.kbd.setHeading( self.txt)
def get(self):
self.show()
time.sleep(2)
self.kbd.doModal()
if (self.kbd.isConfirmed()):
text = self.kbd.getText()
self.close()
return text
self.close()
return False
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data, Cookie_Jar,m):#streamwatcher
title=urllib.quote_plus('[makelist.param3]')
return 'http://slider.kz/download/[makelist.param1]/[makelist.param2]/[makelist.param4]/%s.mp3?extra=[makelist.param5]'%title
]]></expres>
<page></page>
</regex>
<thumbnail>http://slider.kz/media/images/logo.png</thumbnail>
</item>
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
P | Request someone can helpme please, a like have this regex to livestreampor pleas | Addon Requests | 0 | |
A | Need help with regex | Kodi Support | 2 | |
A | [help]Regex in Python | Kodi Support | 2 |