Help for Regex

Status
Not open for further replies.

tobotminer

Member
Jan 26, 2018
49
4
8
change the last regex to this code and check if urlresolver is installed :
Code:
<regex>
<name>getUrl</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests , resolveurl , urlresolver
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('src="(http.*?embed.*?)"',page_data)[0]
  source=requests.get(url,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0',
    'Referer':'http://kissdrama.club/[makelist2.param1]','Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'}).text
  link='http://hdfree.se'+re.findall('src="(.*?embed[^"]+)"',source)[0]
  headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Host':'hdfree.se','Referer':url,'Accept':'video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5'}
  source=requests.get(link,headers=headers,allow_redirects=False)
  url = source.headers['Location']
  try :
   u = resolveurl.resolve(url)
  except : u  = urlresolver.resolve(url)
  return u
]=]=></expres>
thank you kabcasa, i have try and it does not work. i have already using latest urlresolver
 

izac-rock

New member
May 2, 2018
32
0
0
hi, need help please, regex for
hxxp://www.redecanais.cc/blindspot-1a-temporada-episodio-03-oito-sorrisos-magro_68b0e1922.html

It was like this, but it does not work anymore

<item>
<title>[COLOR silver] 03 - Oito Sorrisos Magro [/COLOR]</title>
<link>$doregex[one]|Referer=hxxp://www.redecanais.ch/</link><regex><name>one</name><expres>file: "(.*mp4.*?)"</expres>
<page>$doregex[two]</page></regex><regex><name>two</name><expres>src="(.*link/player.*?)" fra</expres>
<page>hxxps://www.redecanais.link/blindspot-1a-temporada-episodio-03-oito-sorrisos-magro_68b0e1922.html</page></regex>
<thumbnail></thumbnail>
<fanart></fanart>
</item>

I know the link is
hxxp://cdn-d.filmesonline.top/RedeCanais/RCServer10/ondemand/BLNDSPTT01EP03.mp4
but it changes, so I need the regex.

very thanks
 

HAJAR

Banned
May 27, 2018
19
0
0
middelburg
someone can make regex for me please thank you forever one

Code:
http://falconeye.tv/falconfamily/
 
Last edited by a moderator:

cezi1

Member
Aug 1, 2017
30
0
6
@HAJAR

Nobody will help you!!! Often it was written here how to disguise your links, but apparently to you not interesting.
I even recorded a Video for you that shows you how to do that even that does not matter to you
 

nipon0007

New member
Apr 2, 2018
7
1
3
<item>
<title>Better</title>
<thumbnail></thumbnail>
<urlsolve>https://streamango.com/embed/bspkfntlfpcklfos/</urlsolve>
</item>

<item>
<title>Better direct</title>
<thumbnail></thumbnail>
<link>https://streamango.com/embed/bspkfntlfpcklfos/</link>
</item>

Check your PM. It should work for both urlresolver and resolveurl
I try this code urlresolver and resolveurl not work.
 
Last edited:

Alba123

New member
Apr 4, 2018
18
0
0
someone can make regex for me please thank you forever one

Code:
http://falconeye.tv/falconfamily/
Code:
Falcon EYE FAMILY
http://falconeyeiptv.sytes.net:1935/f3/f3live/playlist.m3u8
Falcon EYE TV 1
http://falconeyeiptv.sytes.net:1935/f1/f1live/playlist.m3u8
Falcon EYE TV 2
http://falconeyeiptv.sytes.net:1935/f2/f2live/playlist.m3u8


Code:
<item>
<title></title>         
<link></link>
<thumbnail></thumbnail>    
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
811
332
63
USA
hi master,

anyone can check why the code not able to play the stream. im using latest lsp from gujal repo.

Code:
<item>
<title> Drama (Chinese)</title>
<link>https://www.tvaddons.co/forums/$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><=!=[=C=D=A=T=A=[
   <title>[COLOR gold] [makelist.param2][/COLOR] [COLOR dodgerblue][makelist.param4][/COLOR]</title>
   <link>https://www.tvaddons.co/forums/$doregex[makelist2]</link>
   <thumbnail>[makelist.param3]</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
 baseurl='http://kissdrama.club/browse/chinese/dramas/all/all/all/0/';startpage=1;tagurl=''
 numregex='href="/browse.*?([1-9])">'+re.escape(tagurl)+'\n';dataregex='href="/(.*?)".title="(.*?)\s-.*?src="(.*?)".*\n.*"status">(.*?)<';furl=baseurl+str(startpage)+tagurl
 source=requests.get(furl,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).text
 data=[]
 try:
   last=sorted(map(int,re.findall(numregex, source)))[-1]
 except:
   last=9
 while startpage <= last:
    try:
        furl=baseurl+str(startpage)+tagurl;source=requests.get(furl,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).text
        lists=re.findall('class="grid">(?s)(.*?)class="paging"',source)[0].replace(''','\'');data += re.findall(dataregex,lists)
        startpage += 1
    except:
        pass
 return data
]=]=></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><=!=[=C=D=A=T=A=[
   <title>[COLOR gold] [makelist.param2][/COLOR] [COLOR dodgerblue](Episode [makelist2.param2])[/COLOR]</title>
   <link>https://www.tvaddons.co/forums/$doregex[getUrl]</link>
   <thumbnail>[makelist.param3]</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('"eps-left".*\n.*href="/(.*?(\d+))"',page_data)
]=]=></expres>
<page>http://kissdrama.club/[makelist.param1]</page>
<agent>Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0</agent>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getUrl</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('src="(http.*?embed.*?)"',page_data)[0];source=requests.get(url,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Referer':'http://kissdrama.club/[makelist2.param1]','Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'}).text
  link='http://hdfree.se'+re.findall('src="(.*?embed[^"]+)"',source)[0];headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Host':'hdfree.se','Referer':url,'Accept':'video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5'}
  source=requests.get(link,headers=headers,allow_redirects=False);return source.headers['Location']
]=]=></expres>
<page>http://kissdrama.club/[makelist2.param1]</page>
<agent>Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0</agent>
<cookieJar></cookieJar>
</regex>
</item>
Try this:

Code:
<item>
<title>http://kissdrama.club/browse/chinese/dramas/all/all/all/0/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR] - [makelist.param4]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  count=re.findall('all/0/(\d+)">.*\n.*\n.*\n.*\n.*?all/0.*?"Next',page_data)[0];pn=1;data=[]
  while pn <= int(count):
     page='http://kissdrama.club/browse/chinese/dramas/all/all/all/0/'+str(pn);source=requests.get(page).content.decode('ascii','ignore');list=re.findall('class="grid">(?s)(.*?)"pagination',source)[0].replace(''','\'')
     data +=re.findall('href="/(.*?)".title="(.*?)\s-.*?src="(.*?)"[\w\W]*?"status">(.*?)<',list);pn +=1
  return data
]]></expres>
<page>http://kissdrama.club/browse/chinese/dramas/all/all/all/0/</page>
</regex
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param2][/COLOR] - [makelist2.param3]</title>
  <link>$doregex[makelist3]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[href="/(.*?)".title.*?Online.(.*?)\s\([\w\W]*?"eps-right">(.*?)<]]></expres>
<page>http://kissdrama.club/[makelist.param1]</page>
</regex>
<regex>
<name>Link</name>
<expres>[\'"](h.*/embed[^\'"]+)</expres>
<page>http://kissdrama.club/[makelist2.param1]</page>
<referer>http://kissdrama.club/[makelist.param1]</referer>
</regex>
<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
  <title>Server: [COLOR yellow][makelist3.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres>form.action="/(.*?)".*?value="(.*?)".*?name="(.*?)".value="(\d)"</expres>
<page>$doregex[Link]</page>
<referer>http://kissdrama.club/[makelist2.param1]</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urlresolver
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
  source=requests.post('http://hdfree.se/[makelist3.param1]',headers={'Referer':'$doregex[Link]','User-Agent':'Mozilla/5.0'},data={'[makelist3.param3]':'[makelist3.param4]'}).text
  if 'blogspot' in source:
    return re.findall('var.*?(?:file|source|src).*?[\'"](h.*?)[\'"]',source)[0]+'|User-Agent=iPad&Referer=$doregex[Link]'
  else:
    return urlresolver.resolve(requests.get('http://hdfree.se/'+re.findall('src=[\'"]/(embed[^\'"]+)',source)[0],headers={'Referer':'http://hdfree.se/[makelist3.param1]','User-Agent':'Mozilla/5.0'},allow_redirects=False).headers['Location'])
]]></expres>
<page></page>
</regex>
<thumbnail>https://1.bp.blogspot.com/-eQpKT7RgGgU/VXHuWecLoeI/AAAAAAAAQi8/Fu3NNJl1rlI/w506-h910/june-5-2015.jpg</thumbnail>
</item>








 
Last edited:

vbprofi

Member
Feb 9, 2016
74
3
8
No regex need. Try this
Code:
<item>
<title>Falcon EYE FAMILY</title>
<link>http://falconeyeiptv.sytes.net:1935/f3/f3live/playlist.m3u8</link>
</item>

<item>
<title>Falcon EYE TV 1</title>
<link>http://falconeyeiptv.sytes.net:1935/f1/f1live/playlist.m3u8</link>
</item>

<item>
<title>Falcon EYE TV 2</title>
<link>http://falconeyeiptv.sytes.net:1935/f2/f2live/playlist.m3u8</link>
</item>
Code:
Falcon EYE FAMILY
http://falconeyeiptv.sytes.net:1935/f3/f3live/playlist.m3u8
Falcon EYE TV 1
http://falconeyeiptv.sytes.net:1935/f1/f1live/playlist.m3u8
Falcon EYE TV 2
http://falconeyeiptv.sytes.net:1935/f2/f2live/playlist.m3u8


Code:
<item>
<title></title>         
<link></link>
<thumbnail></thumbnail>    
</item>
 

judgie

New member
May 16, 2018
17
0
1
hi guru.
anyone could help for this channel ? please...
Code:
hxxp://www.total-sport.tv/?page=live&id=22427&name=streaming-canal
it will be much appreciated -
thanks in advance for PM me
 

izac-rock

New member
May 2, 2018
32
0
0
Can anyone help me? (post #615)

I just need a regex for any movie or series from that site:

wxw.redecanais.cc/

please, please

The regex I have of it no longer works
 

tobotminer

Member
Jan 26, 2018
49
4
8
details about version LSP and message error

i have try 2 links . Did you try urlresolver or resolveurl


Im using lsp 2.8.2 with urlresolver 5.0.16... here is the error code

Code:
10:42:07.325 T:7672   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: 'NoneType' object is not iterable
                                            Traceback (most recent call last):
                                              File "C:\Users\13232099\AppData\Roaming\Kodi\addons\plugin.video.live.streampro\default.py", line 3228, in <module>
                                                url,setresolved = getRegexParsed(regexs, url)
                                            TypeError: 'NoneType' object is not iterable
                                            -->End of Python script error report<--
10:42:07.412 T:9156   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.live.streampro/?url=%24doregex%5BgetUrl%5D&mode=17&regexs=%7Bu%27getUrl%27%3A%20%7B%27expres%27%3A%20u%27%23%24pyFunction%5Cnimport%20re%2Crequests%20%2C%20resolveurl%20%2C%20urlresolver%5Cndef%20GetLSProData%28page_data%2CCookie_Jar%2Cm%29%3A%23streamwatcher2013%5Cn%20%20url%3Dre.findall%28%5C%27src%3D%22%28http.%2A%3Fembed.%2A%3F%29%22%5C%27%2Cpage_data%29%5B0%5D%5Cn%20%20source%3Drequests.get%28url%2Cheaders%3D%7B%5C%27User-Agent%5C%27%3A%5C%27Mozilla/5.0%20%28Windows%20NT%206.1%3B%20Win64%3B%20x64%3B%20rv%3A58.0%29%20Gecko/20100101%20Firefox/58.0%5C%27%2C%5Cn%20%20%20%20%5C%27Referer%5C%27%3A%5C%27http%3A//kissdrama.club/watch-online/to-love-to-heal/episode-40%5C%27%2C%5C%27Accept%5C%27%3A%5C%27text/html%2Capplication/xhtml%2Bxml%2Capplication/xml%3Bq%3D0.9%2C%2A/%2A%3Bq%3D0.8%5C%27%7D%29.text%5Cn%20%20link%3D%5C%27http%3A//hdfree.se%5C%27%2Bre.findall%28%5C%27src%3D%22%28.%2A%3Fembed%5B%5E%22%5D%2B%29%22%5C%27%2Csource%29%5B0%5D%5Cn%20%20headers%3D%7B%5C%27User-Agent%5C%27%3A%5C%27Mozilla/5.0%20%28Windows%20NT%206.1%3B%20Win64%3B%20x64%3B%20rv%3A58.0%29%20Gecko/20100101%20Firefox/58.0%5C%27%2C%5C%27Host%5C%27%3A%5C%27hdfree.se%5C%27%2C%5C%27Referer%5C%27%3Aurl%2C%5C%27Accept%5C%27%3A%5C%27video/webm%2Cvideo/ogg%2Cvideo/%2A%3Bq%3D0.9%2Capplication/ogg%3Bq%3D0.7%2Caudio/%2A%3Bq%3D0.6%2C%2A/%2A%3Bq%3D0.5%5C%27%7D%5Cn%20%20source%3Drequests.get%28link%2Cheaders%3Dheaders%2Callow_redirects%3DFalse%29%5Cn%20%20url%20%3D%20source.headers%5B%5C%27Location%5C%27%5D%5Cn%20%20try%20%3A%5Cn%20%20%20u%20%3D%20resolveurl.resolve%28url%29%5Cn%20%20except%20%3A%20u%20%20%3D%20urlresolver.resolve%28url%29%5Cn%20%20return%20u%5Cn%27%2C%20%27cookiejar%27%3A%20%27%27%2C%20%27name%27%3A%20u%27getUrl%27%2C%20%27agent%27%3A%20u%27Mozilla/5.0%20%28Windows%20NT%206.1%3B%20Win64%3B%20x64%3B%20rv%3A58.0%29%20Gecko/20100101%20Firefox/58.0%27%2C%20%27page%27%3A%20u%27http%3A//kissdrama.club/watch-online/to-love-to-heal/episode-40%27%7D%7D&iconimage=http%3A%2F%2Fhdfree.se%2Fimages%2Fupload%2Fto-love-to-heal-cac3.jpg]
10:42:13.161 T:9156  NOTICE: Storing total System Uptime
 

kabcasa

New member
Apr 28, 2015
21
0
1
At home
Im using lsp 2.8.2 with urlresolver 5.0.16... here is the error code

Code:
10:42:07.325 T:7672   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: 'NoneType' object is not iterable
                                            Traceback (most recent call last):
                                              File "C:\Users\13232099\AppData\Roaming\Kodi\addons\plugin.video.live.streampro\default.py", line 3228, in <module>
                                                url,setresolved = getRegexParsed(regexs, url)
                                            TypeError: 'NoneType' object is not iterable
                                            -->End of Python script error report<--
10:42:07.412 T:9156   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.live.streampro/?url=%24doregex%5BgetUrl%5D&mode=17&regexs=%7Bu%27getUrl%27%3A%20%7B%27expres%27%3A%20u%27%23%24pyFunction%5Cnimport%20re%2Crequests%20%2C%20resolveurl%20%2C%20urlresolver%5Cndef%20GetLSProData%28page_data%2CCookie_Jar%2Cm%29%3A%23streamwatcher2013%5Cn%20%20url%3Dre.findall%28%5C%27src%3D%22%28http.%2A%3Fembed.%2A%3F%29%22%5C%27%2Cpage_data%29%5B0%5D%5Cn%20%20source%3Drequests.get%28url%2Cheaders%3D%7B%5C%27User-Agent%5C%27%3A%5C%27Mozilla/5.0%20%28Windows%20NT%206.1%3B%20Win64%3B%20x64%3B%20rv%3A58.0%29%20Gecko/20100101%20Firefox/58.0%5C%27%2C%5Cn%20%20%20%20%5C%27Referer%5C%27%3A%5C%27http%3A//kissdrama.club/watch-online/to-love-to-heal/episode-40%5C%27%2C%5C%27Accept%5C%27%3A%5C%27text/html%2Capplication/xhtml%2Bxml%2Capplication/xml%3Bq%3D0.9%2C%2A/%2A%3Bq%3D0.8%5C%27%7D%29.text%5Cn%20%20link%3D%5C%27http%3A//hdfree.se%5C%27%2Bre.findall%28%5C%27src%3D%22%28.%2A%3Fembed%5B%5E%22%5D%2B%29%22%5C%27%2Csource%29%5B0%5D%5Cn%20%20headers%3D%7B%5C%27User-Agent%5C%27%3A%5C%27Mozilla/5.0%20%28Windows%20NT%206.1%3B%20Win64%3B%20x64%3B%20rv%3A58.0%29%20Gecko/20100101%20Firefox/58.0%5C%27%2C%5C%27Host%5C%27%3A%5C%27hdfree.se%5C%27%2C%5C%27Referer%5C%27%3Aurl%2C%5C%27Accept%5C%27%3A%5C%27video/webm%2Cvideo/ogg%2Cvideo/%2A%3Bq%3D0.9%2Capplication/ogg%3Bq%3D0.7%2Caudio/%2A%3Bq%3D0.6%2C%2A/%2A%3Bq%3D0.5%5C%27%7D%5Cn%20%20source%3Drequests.get%28link%2Cheaders%3Dheaders%2Callow_redirects%3DFalse%29%5Cn%20%20url%20%3D%20source.headers%5B%5C%27Location%5C%27%5D%5Cn%20%20try%20%3A%5Cn%20%20%20u%20%3D%20resolveurl.resolve%28url%29%5Cn%20%20except%20%3A%20u%20%20%3D%20urlresolver.resolve%28url%29%5Cn%20%20return%20u%5Cn%27%2C%20%27cookiejar%27%3A%20%27%27%2C%20%27name%27%3A%20u%27getUrl%27%2C%20%27agent%27%3A%20u%27Mozilla/5.0%20%28Windows%20NT%206.1%3B%20Win64%3B%20x64%3B%20rv%3A58.0%29%20Gecko/20100101%20Firefox/58.0%27%2C%20%27page%27%3A%20u%27http%3A//kissdrama.club/watch-online/to-love-to-heal/episode-40%27%7D%7D&iconimage=http%3A%2F%2Fhdfree.se%2Fimages%2Fupload%2Fto-love-to-heal-cac3.jpg]
10:42:13.161 T:9156  NOTICE: Storing total System Uptime
i don't understand .I use the last LSP 2.8.4 .
do you have enabled inputstream addon






can you try this
Code:
<item>
<title>urlsolve</title>
<urlsolve>https://rapidvideo.com/embed/FRT3MEDJT2</urlsolve>
<referer></referer>
</item>
 
Last edited:

streamwatcher2013

Well-known member
Oct 24, 2013
811
332
63
USA
hi, need help please, regex for
hxxp://www.redecanais.cc/blindspot-1a-temporada-episodio-03-oito-sorrisos-magro_68b0e1922.html

It was like this, but it does not work anymore

<item>
<title>[COLOR silver] 03 - Oito Sorrisos Magro [/COLOR]</title>
<link>https://www.tvaddons.co/forums/$doregex[one]|Referer=hxxp://www.redecanais.ch/</link><regex><name>one</name><expres>file: "(.*mp4.*?)"</expres>
<page>$doregex[two]</page></regex><regex><name>two</name><expres>src="(.*link/player.*?)" fra</expres>
<page>hxxps://www.redecanais.link/blindspot-1a-temporada-episodio-03-oito-sorrisos-magro_68b0e1922.html</page></regex>
<thumbnail></thumbnail>
<fanart></fanart>
</item>

I know the link is
hxxp://cdn-d.filmesonline.top/RedeCanais/RCServer10/ondemand/BLNDSPTT01EP03.mp4
but it changes, so I need the regex.

very thanks
Try this. It is geo-blocked from my location so can not test to see it play or not. Let me know It works or not.
I saw the code changed after posted in Forum. Make sure this "getGoogleRecaptch****ponse" shall be "getGoogleRecaptcha_R_e_s_ponse" (removed underscore _)

Code:
<item>
<title>[COLOR silver] 03 - Oito Sorrisos Magro [/COLOR]</title>
<link>$doregex[loadcookie]$doregex[getUrl]$doregex[savecookie]|User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36</link>
<regex>
<name>getUrl</name>
<expres>file.*?"(h[^"]+)</expres>
<page>$doregex[getLink]</page>
<agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36</agent>
<cookieJar>open[redecanais.lwp]</cookieJar>
</regex>
<regex>
<name>savecookie</name>
<expres></expres>
<page></page>
<cookieJar>save[redecanais.lwp]</cookieJar>
</regex>
<regex>
<name>getLink</name>
<expres>name="Player".*?"(h[^"]+)</expres>
<page>http://www.redecanais.ch/blindspot-1a-temporada-episodio-03-oito-sorrisos-magro_68b0e1922.html</page>
<cookieJar>$doregex[postcatpcha]</cookieJar>
<ignorecache/>
</regex>
<regex>
<name>postcatpcha</name>
<expres></expres>
<page>http://www.redecanais.ch/cdn-cgi/l/chk_captcha?$doregex[showcaptcha]&id=$doregex[getId]</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>showcaptcha</name>
<expres>$pyFunction:getGoogleRecaptch****ponse('$doregex[GoogleKey]',Cookie_Jar,1)<expres>
<page></page>
<cookieJar></cookieJar>
<noredirect>true</noredirect>
</regex>
<regex>
<name>getGoogleKey</name>
<expres>data-sitekey="([^"]+)</expres>
<page>http://www.redecanais.ch/blindspot-1a-temporada-episodio-03-oito-sorrisos-magro_68b0e1922.html</page>
<cookieJar></cookieJar>
<noredirect>true</noredirect>
</regex>
<regex>
<name>getId</name>
<expres>data-ray="([^"]+)</expres>
<page>http://www.redecanais.ch/blindspot-1a-temporada-episodio-03-oito-sorrisos-magro_68b0e1922.html</page>
<cookieJar></cookieJar>
<noredirect>true</noredirect>
</regex>
<regex>
<name>loadcookie</name>
<expres></expres>
<page></page>
<cookieJar>open[redecanais.lwp]</cookieJar>
</regex>
</item>

Or

<item>
<title>[COLOR silver] 03 - Oito Sorrisos Magro [/COLOR]</title>
<link>$doregex[loadcookie]$doregex[getUrl]$doregex[createCFCookie]$doregex[savecookie]|User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36</link>
<regex>
<name>createCFCookie</name>                                                     
<expres></expres>
<page>$pyFunction:cloudflare.createCookie('http://www.redecanais.ch/blindspot-1a-temporada-episodio-03-oito-sorrisos-magro_68b0e1922.html',Cookie_Jar,'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36')</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getUrl</name>
<expres>file.*?"(h[^"]+)</expres>
<page>$doregex[getLink]</page>
<agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36</agent>
<cookieJar>open[redecanais.lwp]</cookieJar>
</regex>
<regex>
<name>savecookie</name>
<expres></expres>
<page></page>
<cookieJar>save[redecanais.lwp]</cookieJar>
</regex>
<regex>
<name>getLink</name>
<expres>name="Player".*?"(h[^"]+)</expres>
<page>http://www.redecanais.ch/blindspot-1a-temporada-episodio-03-oito-sorrisos-magro_68b0e1922.html</page>
<cookieJar>$doregex[postcatpcha]</cookieJar>
<ignorecache/>
</regex>
<regex>
<name>postcatpcha</name>
<expres></expres>
<page>http://www.redecanais.ch/cdn-cgi/l/chk_captcha?$doregex[showcaptcha]&id=$doregex[getId]</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>showcaptcha</name>
<expres>$pyFunction:getGoogleRecaptch****ponse('$doregex[GoogleKey]',Cookie_Jar,1)<expres>
<page></page>
<cookieJar></cookieJar>
<noredirect>true</noredirect>
</regex>
<regex>
<name>getGoogleKey</name>
<expres>data-sitekey="([^"]+)</expres>
<page>http://www.redecanais.ch/blindspot-1a-temporada-episodio-03-oito-sorrisos-magro_68b0e1922.html</page>
<cookieJar></cookieJar>
<noredirect>true</noredirect>
</regex>
<regex>
<name>getId</name>
<expres>data-ray="([^"]+)</expres>
<page>http://www.redecanais.ch/blindspot-1a-temporada-episodio-03-oito-sorrisos-magro_68b0e1922.html</page>
<cookieJar></cookieJar>
<noredirect>true</noredirect>
</regex>
<regex>
<name>loadcookie</name>
<expres></expres>
<page></page>
<cookieJar>open[redecanais.lwp]</cookieJar>
</regex>
</item>
 
Last edited:

streamwatcher2013

Well-known member
Oct 24, 2013
811
332
63
USA
Im using lsp 2.8.2 with urlresolver 5.0.16... here is the error code

Code:
10:42:07.325 T:7672   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: 'NoneType' object is not iterable
                                            Traceback (most recent call last):
                                              File "C:\Users\13232099\AppData\Roaming\Kodi\addons\plugin.video.live.streampro\default.py", line 3228, in <module>
                                                url,setresolved = getRegexParsed(regexs, url)
                                            TypeError: 'NoneType' object is not iterable
                                            -->End of Python script error report<--
10:42:07.412 T:9156   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.live.streampro/?url=%24doregex%5BgetUrl%5D&mode=17®exs=%7Bu%27getUrl%27%3A%20%7B%27expres%27%3A%20u%27%23%24pyFunction%5Cnimport%20re%2Crequests%20%2C%20resolveurl%20%2C%20urlresolver%5Cndef%20GetLSProData%28page_data%2CCookie_Jar%2Cm%29%3A%23streamwatcher2013%5Cn%20%20url%3Dre.findall%28%5C%27src%3D%22%28http.%2A%3Fembed.%2A%3F%29%22%5C%27%2Cpage_data%29%5B0%5D%5Cn%20%20source%3Drequests.get%28url%2Cheaders%3D%7B%5C%27User-Agent%5C%27%3A%5C%27Mozilla/5.0%20%28Windows%20NT%206.1%3B%20Win64%3B%20x64%3B%20rv%3A58.0%29%20Gecko/20100101%20Firefox/58.0%5C%27%2C%5Cn%20%20%20%20%5C%27Referer%5C%27%3A%5C%27http%3A//kissdrama.club/watch-online/to-love-to-heal/episode-40%5C%27%2C%5C%27Accept%5C%27%3A%5C%27text/html%2Capplication/xhtml%2Bxml%2Capplication/xml%3Bq%3D0.9%2C%2A/%2A%3Bq%3D0.8%5C%27%7D%29.text%5Cn%20%20link%3D%5C%27http%3A//hdfree.se%5C%27%2Bre.findall%28%5C%27src%3D%22%28.%2A%3Fembed%5B%5E%22%5D%2B%29%22%5C%27%2Csource%29%5B0%5D%5Cn%20%20headers%3D%7B%5C%27User-Agent%5C%27%3A%5C%27Mozilla/5.0%20%28Windows%20NT%206.1%3B%20Win64%3B%20x64%3B%20rv%3A58.0%29%20Gecko/20100101%20Firefox/58.0%5C%27%2C%5C%27Host%5C%27%3A%5C%27hdfree.se%5C%27%2C%5C%27Referer%5C%27%3Aurl%2C%5C%27Accept%5C%27%3A%5C%27video/webm%2Cvideo/ogg%2Cvideo/%2A%3Bq%3D0.9%2Capplication/ogg%3Bq%3D0.7%2Caudio/%2A%3Bq%3D0.6%2C%2A/%2A%3Bq%3D0.5%5C%27%7D%5Cn%20%20source%3Drequests.get%28link%2Cheaders%3Dheaders%2Callow_redirects%3DFalse%29%5Cn%20%20url%20%3D%20source.headers%5B%5C%27Location%5C%27%5D%5Cn%20%20try%20%3A%5Cn%20%20%20u%20%3D%20resolveurl.resolve%28url%29%5Cn%20%20except%20%3A%20u%20%20%3D%20urlresolver.resolve%28url%29%5Cn%20%20return%20u%5Cn%27%2C%20%27cookiejar%27%3A%20%27%27%2C%20%27name%27%3A%20u%27getUrl%27%2C%20%27agent%27%3A%20u%27Mozilla/5.0%20%28Windows%20NT%206.1%3B%20Win64%3B%20x64%3B%20rv%3A58.0%29%20Gecko/20100101%20Firefox/58.0%27%2C%20%27page%27%3A%20u%27http%3A//kissdrama.club/watch-online/to-love-to-heal/episode-40%27%7D%7D&iconimage=http%3A%2F%2Fhdfree.se%2Fimages%2Fupload%2Fto-love-to-heal-cac3.jpg]
10:42:13.161 T:9156  NOTICE: Storing total System Uptime
Do you try my code on previous page to see it works for you? I am running Kodi 17.6 with LSP 2.8.2 with URLResolver
 
Last edited:

vbprofi

Member
Feb 9, 2016
74
3
8
Hello friens,
I need regex for this video. please try help.
Code:
https://bs.to/serie/24/1/1-Tag-1-24-00-01-00-Uhr/Streamango
I had tried this without working solution.
Code:
<item>
<title>test</title>
<urlsolve>$doregex[getstream]</urlsolve>

<regex>
<name>getstream</name>
<expres>iframe.*src='(.*?)'</iframe></expres>
<page>https://bs.to/serie/24/1/1-Tag-1-24-00-01-00-Uhr/Streamango</page>
</regex>

<cookieJar></cookieJar>
<agent>Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0</agent>
</item>
 
Last edited:

jpjrando

New member
Mar 16, 2015
9
0
0
To Judgie or Streamwatcher
Can you PM me the regex of total-sports, please.
Thanks in advance
 
Status
Not open for further replies.