Help for Regex

Status
Not open for further replies.

Million

New member
Dec 9, 2018
24
1
3
Rgx code for this please and it is still possible to install the movie search with thanks in advance

Code:
https://pastebin.com/raw/VQYiH9H9
 

MarcusTH

New member
Apr 9, 2015
10
0
0
Here is the regular expression of the web, use it in livestreampro 2.8.1, in other versions it has not been tested, the other web does not know how to make the final links, can anyone teach us?


Code:
<item>
<title>[COLOR lightskyblue]http://kimcartoon.to/Cartoon/Marsupilami-2000[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR lightskyblue][makelist.param2][/COLOR] </title>
<link>$doregex[cristalazul]</link>
<thumbnail>http://kimcartoon.to/Uploads/Etc/3-9-2018/31950511155.jpg</thumbnail>
<fanart>http://kimcartoon.to/Uploads/Etc/3-9-2018/31950511155.jpg</fanart>
]]></listrepeat>
<expres><![CDATA[(?s)<a  href="(.*?)".*?title=".*?\).(.*?)"]]></expres>
<page>http://kimcartoon.to/Cartoon/Marsupilami-2000</page>
</regex>
<regex>
<name>cristalazul</name>
<listrepeat><![CDATA[
<title>[COLOR lightskyblue][cristalazul.param2][/COLOR] </title>
<link>$doregex[finallink]</link>
<thumbnail>http://kimcartoon.to/Uploads/Etc/3-9-2018/31950511155.jpg</thumbnail>
<fanart>http://kimcartoon.to/Uploads/Etc/3-9-2018/31950511155.jpg</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('(?s)<option value="(.*?)".*?>(.*?)<',re.findall('>Server.+?(?s)(.*?)</div>',page_data)[0])
]]></expres>
<page>http://kimcartoon.to[makelist.param1]</page>
</regex>
<regex>
<name>cristal</name>
<expres><![CDATA[(?s)<iframe id=.*?src="(.*?)"]]></expres>
<page>http://kimcartoon.to[cristalazul.param1]</page>
</regex>
<regex>
 <name>finallink</name>
<expres><![CDATA[#$pyFunction
import urlresolver
def GetLSProData(page_data,Cookie_Jar,m):
    url = '$doregex[cristal]'
    Link = urlresolver.resolve(url)
    return Link
]]></expres>
 <page></page>
</regex>
<thumbnail>http://kimcartoon.to/Uploads/Etc/3-9-2018/31950511155.jpg</thumbnail>
<fanart>http://kimcartoon.to/Uploads/Etc/3-9-2018/31950511155.jpg</fanart>
</item>
Its work perfect! thanks
 

Picapau

Member
Nov 15, 2018
69
9
8
Hello,
I have tested your code, that don't work.
I have create a working solution, that is working.
Code:
<item>
<title>Kanal D</title>
<link>$doregex[m3u8]|User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36</link>

<regex>
<name>iframe</name>
<expres><![CDATA[<iframe.*?src="(.*?)"]]></expres>
<page>https://www.canlitvizle.plus/kanal-d/1</page>
<agent>Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</agent>
<Referer>https://www.canlitvizle.plus/kanal-d/1</Referer>
<cookieJar>$doregex[createCFCookie]</cookieJar>
<ignorecache />
</regex>

<regex>
<name>m3u8</name>
<expres><![CDATA[file: '(.*?)']]></expres>
<page>$doregex[iframe]</page>
<agent>Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</agent>
<Referer>https://www.canlitvizle.plus/kanal-d/1</Referer>
<cookieJar>$doregex[createCFCookie]</cookieJar>
<ignorecache />
</regex>

<regex>
<name>createCFCookie</name>
<expres></expres>
<page>$pyFunction:cloudflare.createCookie('https://www.canlitvizle.plus/kanal-d/1',Cookie_Jar,'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1')</page>
<cookieJar></cookieJar>
<agent>Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</agent>
<Referer>https://www.canlitvizle.plus/kanal-d/1</Referer>
</regex>
</item>
hello, it works perfect, in the first regex you capture this link hxxps://www.canlitvizle.plus/kanallar.php?kanal=kanal-d&yayin=1 when I try to see the source code of this link, the web redirects me to this one address hxxps://www.canlitvizle.plus/ and I can not see the source code to be able to make the regular expression, how do you do to see the source code of the channel?
 
Last edited by a moderator:

vbprofi

Member
Feb 9, 2016
87
3
8
hello, it works perfect, in the first regex you capture this link
Code:
https://www.canlitvizle.plus/kanallar.php?kanal=kanal-d&yayin=1
when I try to see the source code of this link, the web redirects me to this one address
Code:
https://www.canlitvizle.plus/
and I can not see the source code to be able to make the regular expression, how do you do to see the source code of the channel?
Hello,
Code:
1. I grabb this page https://www.canlitvizle.plus/kanal-d/1
2. I grabb the url of iframe source
3. I grabb the source code of iframe
4. on the sourcepage of iframe I grabb the streamlink

Important:
The Server need Referer and Agent Data. The Page uses cloudflare. for that I have included a solution too.

Howto:
- I uses firefox and browse to Point 1.
- with right click on a Iframe (Point 2) I open the contextmenü and choose "view frame source code" (Point 3)
- on source code of iframe I search for ".m3u8" (Point 4)
I hope that help you to understand the steps.
 
Last edited:

Picapau

Member
Nov 15, 2018
69
9
8
Hello,
Code:
1. I grabb this page https://www.canlitvizle.plus/kanal-d/1
2. I grabb the url of iframe source
3. I grabb the source code of iframe
4. on the sourcepage of iframe I grabb the streamlink

Important:
The Server need Referer and Agent Data. The Page uses cloudflare. for that I have included a solution too.

Howto:
- I uses firefox and browse to Point 1.
- with right click on a Iframe (Point 2) I open the contextmenü and choose "view frame source code" (Point 3)
- on source code of iframe I search for ".m3u8" (Point 4)
I hope that help you to understand the steps.
I have the problem because it does not let me see the source code of step 2, it redirects me to the main web, all the steps I understand without problems, but I can not move forward not seeing the source code
 

vbprofi

Member
Feb 9, 2016
87
3
8
I have the problem because it does not let me see the source code of step 2, it redirects me to the main web, all the steps I understand without problems, but I can not move forward not seeing the source code
try step by step...
1. open firefox and goto
Code:
https://www.canlitvizle.plus/kanal-d/1
2. right click on iframe and select "view target frame source code"
than you have the source code of
Code:
https://www.canlitvizle.plus/kanallar.php?kanal=kanal-d&yayin=1
you can't open directly
Code:
https://www.canlitvizle.plus/kanallar.php?kanal=kanal-d&yayin=1
 
Last edited:

Picapau

Member
Nov 15, 2018
69
9
8
try step by step...
1. open firefox and goto
Code:
https://www.canlitvizle.plus/kanal-d/1
2. right click on iframe and select "view target frame source code"
than you have the source code of
Code:
https://www.canlitvizle.plus/kanallar.php?kanal=kanal-d&yayin=1
you can't open directly
Code:
https://www.canlitvizle.plus/kanallar.php?kanal=kanal-d&yayin=1
Thank you very much for your help, in the end I had to update the Firefox browser and it worked.
 

Picapau

Member
Nov 15, 2018
69
9
8
Rgx code for this please and it is still possible to install the movie search with thanks in advance

Code:
https://pastebin.com/raw/VQYiH9H9

here you have the two regex, the search engine is new, but the other one you had on page 140 of this forum, try to look before asking, it is for version 2.8.1 of livestreampro


Code:
<item>
<title>buscador http://www.filma24.io/</title>
<link>$doregex[cristalazul]</link>
<regex>
<name>cristalazul</name>
 <listrepeat><![CDATA[
<title>[COLOR lightskyblue][cristalazul.param4] [COLOR white][cristalazul.param2][/COLOR]</title>
<link>$doregex[makelist]</link>
<thumbnail>[cristalazul.param3]</thumbnail>
<fanart>[cristalazul.param3]</fanart>
]]></listrepeat>
<expres><![CDATA[(?s)<span class="play">.*?"(.*?)".*?quality-poster">(.*?)<.*?url\((.*?)\).*?title="(.*?)"]]></expres>
<page>http://www.filma24.io/?s=$doregex[busca]</page>
</regex>
<regex>
<name>busca</name>
<expres><![CDATA[#$pyFunction
import xbmc
import xbmcaddon
import xbmcgui
def GetLSProData(page_data,Cookie_Jar,m):
    dialogo = xbmcgui.Dialog()
    fin = dialogo.input('Buscador de peliculas', type=xbmcgui.INPUT_ALPHANUM).replace(" ", "+")
    return fin
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>makelist</name>
 <listrepeat><![CDATA[
<title>[COLOR lightskyblue][makelist.param2][/COLOR]</title>
<link>$doregex[finallink]</link>
<thumbnail>[cristalazul.param3]</thumbnail>
<fanart>[cristalazul.param3]</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
 return re.findall('(?s)<a href="(.*?)".*?class="(.*?)"',re.findall('Shiko filmin(?s)(.*?)</div>',page_data)[0])
]]></expres>
<page>[cristalazul.param1]</page>
</regex>
  <regex>
 <name>cristal</name>
 <expres><![CDATA[(?s)<p class="description">.*?href="(.*?)"]]></expres>
 <page>[makelist.param1]</page>
 </regex>
<regex>
 <name>finallink</name>
<expres><![CDATA[#$pyFunction
import urlresolver
def GetLSProData(page_data,Cookie_Jar,m):
    url = '$doregex[cristal]'
    Link = urlresolver.resolve(url)
    return Link
]]></expres>
 <page></page>
</regex>
</item>







<item>
<title>http://www.filma24.io/</title>
<link>$doregex[cristalazul]</link>
<regex>
<name>cristalazul</name>
 <listrepeat><![CDATA[
<title>[COLOR lightskyblue][cristalazul.param4] [COLOR white][cristalazul.param2][/COLOR]</title>
<link>$doregex[makelist]</link>
<thumbnail>[cristalazul.param3]</thumbnail>
<fanart>[cristalazul.param3]</fanart>
]]></listrepeat>
<expres><![CDATA[(?s)<span class="play">.*?"(.*?)".*?quality-poster">(.*?)<.*?url\((.*?)\).*?title="(.*?)"]]></expres>
<page>http://www.filma24.io/</page>
</regex>
<regex>
<name>makelist</name>
 <listrepeat><![CDATA[
<title>[COLOR lightskyblue][makelist.param2][/COLOR]</title>
<link>$doregex[finallink]</link>
<thumbnail>[cristalazul.param3]</thumbnail>
<fanart>[cristalazul.param3]</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
 return re.findall('(?s)<a href="(.*?)".*?class="(.*?)"',re.findall('Shiko filmin(?s)(.*?)</div>',page_data)[0])
]]></expres>
<page>[cristalazul.param1]</page>
</regex>
  <regex>
 <name>cristal</name>
 <expres><![CDATA[(?s)<p class="description">.*?href="(.*?)"]]></expres>
 <page>[makelist.param1]</page>
 </regex>
<regex>
 <name>finallink</name>
<expres><![CDATA[#$pyFunction
import urlresolver
def GetLSProData(page_data,Cookie_Jar,m):
    url = '$doregex[cristal]'
    Link = urlresolver.resolve(url)
    return Link
]]></expres>
 <page></page>
</regex>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
983
443
63
USA
Here is the regular expression of the web, use it in livestreampro 2.8.1, in other versions it has not been tested, the other web does not know how to make the final links, can anyone teach us?


Code:
<item>
<title>[COLOR lightskyblue]http://kimcartoon.to/Cartoon/Marsupilami-2000[/COLOR]</title>
<link>https://www.tvaddons.co/forums/$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><=!=[=C=D=A=T=A=[
<title>[COLOR lightskyblue][makelist.param2][/COLOR] </title>
<link>https://www.tvaddons.co/forums/$doregex[cristalazul]</link>
<thumbnail>http://kimcartoon.to/Uploads/Etc/3-9-2018/31950511155.jpg</thumbnail>
<fanart>http://kimcartoon.to/Uploads/Etc/3-9-2018/31950511155.jpg</fanart>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[(?s)<a rel="nofollow"  href="(.*?)".*?title=".*?\).(.*?)"]=]=></expres>
<page>http://kimcartoon.to/Cartoon/Marsupilami-2000</page>
</regex>
<regex>
<name>cristalazul</name>
<listrepeat><=!=[=C=D=A=T=A=[
<title>[COLOR lightskyblue][cristalazul.param2][/COLOR] </title>
<link>https://www.tvaddons.co/forums/$doregex[finallink]</link>
<thumbnail>http://kimcartoon.to/Uploads/Etc/3-9-2018/31950511155.jpg</thumbnail>
<fanart>http://kimcartoon.to/Uploads/Etc/3-9-2018/31950511155.jpg</fanart>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('(?s)<option value="(.*?)".*?>(.*?)<',re.findall('>Server.+?(?s)(.*?)</div>',page_data)[0])
]=]=></expres>
<page>http://kimcartoon.to[makelist.param1]</page>
</regex>
<regex>
<name>cristal</name>
<expres><=!=[=C=D=A=T=A=[(?s)<iframe id=.*?src="(.*?)"]=]=></expres>
<page>http://kimcartoon.to[cristalazul.param1]</page>
</regex>
<regex>
 <name>finallink</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import urlresolver
def GetLSProData(page_data,Cookie_Jar,m):
    url = '$doregex[cristal]'
    Link = urlresolver.resolve(url)
    return Link
]=]=></expres>
 <page></page>
</regex>
<thumbnail>http://kimcartoon.to/Uploads/Etc/3-9-2018/31950511155.jpg</thumbnail>
<fanart>http://kimcartoon.to/Uploads/Etc/3-9-2018/31950511155.jpg</fanart>
</item>
Try this for the whole site "kimcartoon". I made 2 versions, one is for single server and the other for 3 servers

Code:
https://pastebin.com/raw/GkL5ikQt
If It took too long to load then replace the below line. count=20 means 20 pages

Code:
from

count=re.findall('.+page=(\d+).+?Last',page_data)[0];pn=1;data=[]

to

count=20;pn=1;data=[]
 
Last edited:

Picapau

Member
Nov 15, 2018
69
9
8
Try this for the whole site "kimcartoon". I made 2 versions, one is for single server and the other for 3 servers

Code:
https://pastebin.com/raw/GkL5ikQt
If It took too long to load then replace the below line. count=20 means 20 pages

Code:
from

count=re.findall('.+page=(\d+).+?Last',page_data)[0];pn=1;data=[]

to

count=20;pn=1;data=[]
Congratulations for the work, the paging is very good, do you think there is the possibility of creating a page that loads the pages with a "next page" and loads 20 in 20? as in the plugintool base
 

Rockey

Member
Sep 11, 2018
68
0
6
Hello streamwatcher2013 i hope you are doing well.
The website that you made a code for
Code:
http://www.glwiz.com/homepage.aspx
has now changed to
Code:
https://www.glwiz.com/index.aspx/
therefore nothing works anymore. is there any solution for that?


Also in glwiz android and ios applications the video resolution is higher than website version. is it possible somehow you put high resolution in the code?

Thank you in Advance
 

streamwatcher2013

Well-known member
Oct 24, 2013
983
443
63
USA
Hello streamwatcher2013 i hope you are doing well.
The website that you made a code for
Code:
http://www.glwiz.com/homepage.aspx
has now changed to
Code:
https://www.glwiz.com/index.aspx/
therefore nothing works anymore. is there any solution for that?


Also in glwiz android and ios applications the video resolution is higher than website version. is it possible somehow you put high resolution in the code?

Thank you in Advance
The new site is good one to do regex. I need more time. Which language you prefer to use?
 

Rockey

Member
Sep 11, 2018
68
0
6
The new site is good one to do regex. I need more time. Which language you prefer to use?
Thats good Boss.. English is okay, but is it possible to get the whole directories in first page?
I mean the countries list in starting page like the one you did before?
And would you please see if its possible to get a better video resolution please and thank you.. so much

As a member of this forum i must say We really appreciate that you guys (streamwatcher2013, gujal & others) spend your valuable time on our stuff... it means very much to us
 

gujal

Developer
Dec 26, 2013
590
326
63
Hello Streamwatcher2013

This Code not working for me
Code:
https://pastebin.com/raw/RTcjK79d
Streamwatcher writes code for LSP2.8.1 and will work perfectly if you have the same version.
If you are using later version of LSP then to make it work replace any instances of "urlresolver" in the code with "resolveurl" and it will work
EDIT:
Okay the site code has changed. Below code will work on LSP 2.8.2 or above. If you want it to use in LSP 2.8.1, then replace all instances of "resolveurl" with "urlresolver"
Code:
<item>
<title>[B][COLORfuchsia]• GREYS ANATOMY[/COLOR][/B] • [COLORgold] [I] [ENTRAR][/I][/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold]Temporada [makelist.param1][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>https://static.pelisfox.tv/static/serie/cover/original/cec3da520837c8f98d542896675cf583.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)Temporada.(\d+).+?season-episodes">([^^]+?)<div\s*class="(?:item-season|cuadre_comments)"]]></expres>
<page>http://pelisplus.co/serie/greys-anatomy/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param4][/COLOR] (Temporada [makelist.param1])</title>
  <link>$doregex[makelist3]</link>
  <thumbnail>https://static.pelisfox.tv/static/serie/cover/original/cec3da520837c8f98d542896675cf583.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[href="/serie/([^/]+)[^\d]+(\d+)[^\d]+(\d+)[^^]+?</i>\s*([^\s]+\s\d+)]]></expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param2]-[makelist2.param3][/COLOR] ([makelist3.param3])</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist3.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)data-source="([^"]+).*?data-cover="(.*?)".*?<span>(.*?)<]]></expres>
<page>http://pelisplus.co/player/serie/[makelist2.param1]%7C[makelist2.param2]%7C[makelist2.param3]/</page>
<x-req>XMLHttpRequest</x-req>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests, resolveurl
  url = '[makelist3.param1]'
  if resolveurl.HostedMediaFile(url):
    return resolveurl.resolve(url)
  # streamwatcher2013
  serv='[makelist3.param3]'
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'Mozilla/5.0'}).content.decode('ascii','ignore')
  if '1' in serv:
    if 'mp4' in source:
       return re.findall('Clappr.Player.*\n.*"(h.+mp4)',source)[-1]
    else:
      source=requests.get(re.findall('Clappr.Player[\w\W]*?(h.+?(?:m3u8|[^\'"]+))',source)[0],headers={'user-agent':'Mozilla/5.0'}).content.decode('ascii','ignore')
      return re.findall('EXT.*\n(h.*)',source)[-1]+'|user-agent=Mozilla/5.0&referer={}'.format(url)
  elif '2' in serv:
    if 'mp4' in source:
      return re.findall('[\'"](h.+?mp4)',source)[-1]
    else:
      source=requests.get(re.findall('[\'"](h.+?m3u8)',source)[0],headers={'user-agent':'Mozilla/5.0'}).content.decode('ascii','ignore')
      return re.findall('EXT.*\n(h.*)',source)[-1]+'|user-agent=Mozilla/5.0&referer={}'.format(url)
    
]]></expres>
<page></page>
</regex>
<thumbnail>https://static.pelisfox.tv/static/serie/cover/original/cec3da520837c8f98d542896675cf583.jpg</thumbnail>
</item>
 
Last edited:

umonkey

Member
Sep 18, 2012
70
0
6
Try this for the whole site "kimcartoon". I made 2 versions, one is for single server and the other for 3 servers

Code:
https://pastebin.com/raw/GkL5ikQt
If It took too long to load then replace the below line. count=20 means 20 pages

Code:
from

count=re.findall('.+page=(\d+).+?Last',page_data)[0];pn=1;data=[]

to

count=20;pn=1;data=[]
Thanks Streamwatcher i missed this any chance you can re-upload? Many Thanks
 

myosmc

Member
May 18, 2018
60
1
8
Streamwatcher writes code for LSP2.8.1 and will work perfectly if you have the same version.
If you are using later version of LSP then to make it work replace any instances of "urlresolver" in the code with "resolveurl" and it will work
EDIT:
Okay the site code has changed. Below code will work on LSP 2.8.2 or above. If you want it to use in LSP 2.8.1, then replace all instances of "resolveurl" with "urlresolver"
Code:
<item>
<title>[B][COLORfuchsia]• GREYS ANATOMY[/COLOR][/B] • [COLORgold] [I] [ENTRAR][/I][/COLOR]</title>
<link>https://www.tvaddons.co/forums/$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><=!=[=C=D=A=T=A=[
  <title>[COLOR gold]Temporada [makelist.param1][/COLOR]</title>
  <link>https://www.tvaddons.co/forums/$doregex[makelist2]</link>
  <thumbnail>https://static.pelisfox.tv/static/serie/cover/original/cec3da520837c8f98d542896675cf583.jpg</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[(?s)Temporada.(\d+).+?season-episodes">([^^]+?)<div\s*class="(?:item-season|cuadre_comments)"]=]=></expres>
<page>http://pelisplus.co/serie/greys-anatomy/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><=!=[=C=D=A=T=A=[
  <title>[COLOR gold][makelist2.param4][/COLOR] (Temporada [makelist.param1])</title>
  <link>https://www.tvaddons.co/forums/$doregex[makelist3]</link>
  <thumbnail>https://static.pelisfox.tv/static/serie/cover/original/cec3da520837c8f98d542896675cf583.jpg</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[href="/serie/([^/]+)[^\d]+(\d+)[^\d]+(\d+)[^^]+?</i>\s*([^\s]+\s\d+)]=]=></expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>makelist3</name>
<listrepeat><=!=[=C=D=A=T=A=[
  <title>[COLOR gold][makelist2.param2]-[makelist2.param3][/COLOR] ([makelist3.param3])</title>
  <link>https://www.tvaddons.co/forums/$doregex[getUrl]</link>
  <thumbnail>[makelist3.param2]</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[(?s)data-source="([^"]+).*?data-cover="(.*?)".*?<span>(.*?)<]=]=></expres>
<page>http://pelisplus.co/player/serie/[makelist2.param1]%7C[makelist2.param2]%7C[makelist2.param3]/</page>
<x-req>XMLHttpRequest</x-req>
</regex>
<regex>
<name>getUrl</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests, resolveurl
  url = '[makelist3.param1]'
  if resolveurl.HostedMediaFile(url):
    return resolveurl.resolve(url)
  # streamwatcher2013
  serv='[makelist3.param3]'
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'Mozilla/5.0'}).content.decode('ascii','ignore')
  if '1' in serv:
    if 'mp4' in source:
       return re.findall('Clappr.Player.*\n.*"(h.+mp4)',source)[-1]
    else:
      source=requests.get(re.findall('Clappr.Player[\w\W]*?(h.+?(?:m3u8|[^\'"]+))',source)[0],headers={'user-agent':'Mozilla/5.0'}).content.decode('ascii','ignore')
      return re.findall('EXT.*\n(h.*)',source)[-1]+'|user-agent=Mozilla/5.0&referer={}'.format(url)
  elif '2' in serv:
    if 'mp4' in source:
      return re.findall('[\'"](h.+?mp4)',source)[-1]
    else:
      source=requests.get(re.findall('[\'"](h.+?m3u8)',source)[0],headers={'user-agent':'Mozilla/5.0'}).content.decode('ascii','ignore')
      return re.findall('EXT.*\n(h.*)',source)[-1]+'|user-agent=Mozilla/5.0&referer={}'.format(url)
    
]=]=></expres>
<page></page>
</regex>
<thumbnail>https://static.pelisfox.tv/static/serie/cover/original/cec3da520837c8f98d542896675cf583.jpg</thumbnail>
</item>
It has worked perfect for me, thank you very much.
 
Status
Not open for further replies.