Help for Regex

Status
Not open for further replies.

gujal

Developer
Dec 26, 2013
471
241
43
please help me with this site
Code:
http://cablegratis.tv
Enjoy!
In case it doesn't work for you, you need to add the godaddy ca certificate to your system


Code:
<item>
<title>[B][COLOR hotpink]Cable Gratis[/COLOR][/B]</title>
<link>$doregex[makelist]</link>
<thumbnail>http://cablegratis.tv/logos/cable-gratis-tv.png</thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[<a\s*href="([^"]+)"\s*class="card"\s*title="([^"]+)">\s*<img\s*src="([^"]+)]]></expres>
<page>http://cablegratis.tv/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests
  id = re.findall("id='([^']+)';", page_data)[0]
  eurl = 'https://player.limpi.tv/embed/U2FsdGVkX1%2BQ7tFg%2FwygKsrM%2FPWeVOHv5f%2B3zjct2d4%3D/{}'.format(id)
  headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1',
             'Referer': 'http://cablegratis.tv/'}
  html = requests.get(eurl, headers=headers).text
  strurl = re.findall('source: "([^"]+)', html)[0]
  return '{}|User-Agent={}&Referer=https://player.limpi.tv/'.format(strurl, headers['User-Agent'])
]]></expres>
<page>[makelist.param1]</page>
</regex>
</item>
 

BymemoLee

Member
Apr 30, 2018
86
13
8
Trying to play this channel, but it doesn't work?
Code:
<item>
	<title>Diriliş Ertuğrul 128. Bölüm/title>
	<link>$doregex[getUrl]</link>
	<regex>
	   <name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  	   source=requests.get('https://www.trt.tv/izle/282050/dirilis-ertugrul-128-bolum',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Referer':'https://www.trt.tv/izle/282050/dirilis-ertugrul-128-bolum', 'Accept': 'application/json, text/javascript, */*; q=0.01'}).text
  	   return re.findall('var.link.*?[\'"](h.*?m3u8.*?)[\'"]',source)[0]+'|User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0&Referer=https://www.trt.tv/izle/282050/dirilis-ertugrul-128-bolum'
]]></expres>
	   <page></page>
    	   <cookieJar></cookieJar>
	</regex>
	<thumbnail></thumbnail>
</item>
 

atomix

New member
Nov 28, 2016
12
0
1
Code:
<item>
	<title>Diriliş Ertuğrul 128. Bölüm/title>
	<link>https://www.tvaddons.co/forums/$doregex[getUrl]</link>
	<regex>
	   <name>getUrl</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  	   source=requests.get('https://www.trt.tv/izle/282050/dirilis-ertugrul-128-bolum',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Referer':'https://www.trt.tv/izle/282050/dirilis-ertugrul-128-bolum', 'Accept': 'application/json, text/javascript, */*; q=0.01'}).text
  	   return re.findall('var.link.*?[\'"](h.*?m3u8.*?)[\'"]',source)[0]+'|User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0&Referer=https://www.trt.tv/izle/282050/dirilis-ertugrul-128-bolum'
]=]=></expres>
	   <page></page>
    	   <cookieJar></cookieJar>
	</regex>
	<thumbnail></thumbnail>
</item>



try this thats works for me

Code:
<item>
<title>[COLOR gold]Diriliş Ertuğrul[/COLOR]</title>
<thumbnail>https://img.trt.tv/erimage/320x180/CategoryImages/b9343dd4-112b-4479-944e-0a3591f5e82b_Dirilis_4_kapak_600x350.jpg</thumbnail>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold]Diriliş Ertuğrul [makelist.param3][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://img.trt.tv/erimage/320x180/ItemImage/[makelist.param1]/Thumbnail.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url='https://api.trt.tv/api/GetFilteredVideos'
  source1=requests.post(url,headers={'Referer':'https://www.trt.tv/dirilis-ertugrul/bolumler/20196'},data={'categories':'20196','genres':'1','direction':'DESC','type':'Custom','CustomSortField':'bolum_sirasi','pageIndex':'0','count':'76'}).text
  list1=re.findall('"Id":(\d+)."EncodedURL":"(.*?)"."Name".*?(\d+[^"]+)',source1)
  source2=requests.post(url,headers={'Referer':'https://www.trt.tv/dirilis-ertugrul/bolumler/20196'},data={'categories':'20196','genres':'1','direction':'DESC','type':'Custom','CustomSortField':'bolum_sirasi','pageIndex':'1','count':'76'}).text
  list2=re.findall('"Id":(\d+)."EncodedURL":"(.*?)"."Name".*?(\d+[^"]+)',source2);return list1+list2
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  link=re.findall('var.link.+?"([^"]+)',page_data)[0].replace('amp;','')
  if 'https' in link:
    return link
  else:
    return link.replace('http','https')
]]></expres>
<page>https://www.trt.tv/izle/[makelist.param1]/[makelist.param2]</page>
<referer>https://www.trt.tv/dirilis-ertugrul/bolumler/20196</referer>
</regex>
</item>
 

BymemoLee

Member
Apr 30, 2018
86
13
8
try this thats works for me

Code:
<item>
<title>[COLOR gold]Diriliş Ertuğrul[/COLOR]</title>
<thumbnail>https://img.trt.tv/erimage/320x180/CategoryImages/b9343dd4-112b-4479-944e-0a3591f5e82b_Dirilis_4_kapak_600x350.jpg</thumbnail>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold]Diriliş Ertuğrul [makelist.param3][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://img.trt.tv/erimage/320x180/ItemImage/[makelist.param1]/Thumbnail.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url='https://api.trt.tv/api/GetFilteredVideos'
  source1=requests.post(url,headers={'Referer':'https://www.trt.tv/dirilis-ertugrul/bolumler/20196'},data={'categories':'20196','genres':'1','direction':'DESC','type':'Custom','CustomSortField':'bolum_sirasi','pageIndex':'0','count':'76'}).text
  list1=re.findall('"Id":(\d+)."EncodedURL":"(.*?)"."Name".*?(\d+[^"]+)',source1)
  source2=requests.post(url,headers={'Referer':'https://www.trt.tv/dirilis-ertugrul/bolumler/20196'},data={'categories':'20196','genres':'1','direction':'DESC','type':'Custom','CustomSortField':'bolum_sirasi','pageIndex':'1','count':'76'}).text
  list2=re.findall('"Id":(\d+)."EncodedURL":"(.*?)"."Name".*?(\d+[^"]+)',source2);return list1+list2
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  link=re.findall('var.link.+?"([^"]+)',page_data)[0].replace('amp;','')
  if 'https' in link:
    return link
  else:
    return link.replace('http','https')
]]></expres>
<page>https://www.trt.tv/izle/[makelist.param1]/[makelist.param2]</page>
<referer>https://www.trt.tv/dirilis-ertugrul/bolumler/20196</referer>
</regex>
</item>
Thanks so much
 

Nature

New member
Dec 12, 2018
19
0
1
Can you help me to make regex "search" for this site and makelist.
Code:
https://pastebin.com/raw/sHRFbsT1
 

vbprofi

Member
Feb 9, 2016
74
3
8
Hello,
please help to create an working code for this page.
Code:
https://freeiptv.io/playlists/
The Url from xml and m3u channel-lists a changing every 2-3 days. I need a solution with lsp. please help.
best regards
 

urualf

Member
Jan 19, 2016
40
0
6
hi guys need help for this link open in livestreampro please i try with urlsolver but no work ,thanks in advanced

hxxp://vk.com/video_ext.php?oid=274507411&id=171171793&hash=35b8312bf20347f3
 

vbprofi

Member
Feb 9, 2016
74
3
8
Hello,
please help to create an working code for this page.
Code:
https://freeiptv.io/playlists/
The Url from xml and m3u channel-lists a changing every 2-3 days. I need a solution with lsp. please help.
best regards
I have try to create an solution, bu I can't understand python completely. How I add the Country String to the Link?
Code:
<item>
<title>[COLOR gold]AutoIPTV [/COLOR] [COLOR RED]neu (in Bearbeitung)[/COLOR]</title>
    <link>$doregex[getmainPage]|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>createCFCookie</name>
        <expres></expres>
        <page>$pyFunction:cloudflare.createCookie('https://freeiptv.io/playlists/',Cookie_Jar,'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1')</page>
        <cookieJar></cookieJar>
    </regex>

    <regex>
        <name>getmainPage</name>
<listrepeat><![CDATA[
<title>[COLOR cyan][getmainPage.param2][/COLOR]</title>
<link>ignoreme</link>
<externallink>[getmainPage.param1]</externallink>
<thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
 lang = re.findall('<option value="(.*?)">.*?\)(.*?[^http])</option>', page_data)

 if 'http' in lang:
   lang = ""
 elif 'http' not in lang:
   link = re.findall('href="(https://freeiptv.io/xml/.*?c=).*?"', page_data)[0]
   full_link = link + '[getmainPage.param1]'

   return lang + [full_link]
]]></expres>
        <page>https://freeiptv.io/playlists/</page>
        <cookieJar>$doregex[createCFCookie]</cookieJar>
        <ignorecache />
    </regex>

<regex>
<name>play</name>
<expres><![CDATA[href="(https://freeiptv.io/xml/.*?c=)"]]></expres>
        <page>https://freeiptv.io/playlists/</page>
        <cookieJar>$doregex[createCFCookie]</cookieJar>
        <ignorecache />
    </regex>
</item>
Please help.
 
Last edited:

Picapau

Member
Nov 15, 2018
69
9
8
I have try to create an solution, bu I can't understand python completely. How I add the Country String to the Link?
Code:
<item>
<title>[COLOR gold]AutoIPTV [/COLOR] [COLOR RED]neu (in Bearbeitung)[/COLOR]</title>
    <link>$doregex[getmainPage]|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>createCFCookie</name>
        <expres></expres>
        <page>$pyFunction:cloudflare.createCookie('https://freeiptv.io/playlists/',Cookie_Jar,'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1')</page>
        <cookieJar></cookieJar>
    </regex>

    <regex>
        <name>getmainPage</name>
<listrepeat><![CDATA[
<title>[COLOR cyan][getmainPage.param2][/COLOR]</title>
<link>ignoreme</link>
<externallink>[getmainPage.param1]</externallink>
<thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
 lang = re.findall('<option value="(.*?)">.*?\)(.*?[^http])</option>', page_data)

 if 'http' in lang:
   lang = ""
 elif 'http' not in lang:
   link = re.findall('href="(https://freeiptv.io/xml/.*?c=).*?"', page_data)[0]
   full_link = link + '[getmainPage.param1]'

   return lang + [full_link]
]]></expres>
        <page>https://freeiptv.io/playlists/</page>
        <cookieJar>$doregex[createCFCookie]</cookieJar>
        <ignorecache />
    </regex>

<regex>
<name>play</name>
<expres><![CDATA[href="(https://freeiptv.io/xml/.*?c=)"]]></expres>
        <page>https://freeiptv.io/playlists/</page>
        <cookieJar>$doregex[createCFCookie]</cookieJar>
        <ignorecache />
    </regex>
</item>
Please help.
Here you have all the lists according to countries and categories



Code:
<item>
<title>[COLOR lightskyblue]https://freeiptv.io/playlists[/COLOR]</title>
<link>$doregex[cristal]</link>
<regex>
<name>cristal</name>
<listrepeat><![CDATA[
<title>[COLOR white][cristal.param2][/COLOR]</title>
<thumbnail></thumbnail>  
<fanart></fanart>
<link>$doregex[canal]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#picapau
 return re.findall('(?s)<option value=".*?>\((.*?)\).(.*?)<',re.findall('<select id="select\_country.+?>(?s)(.*?)</select>',page_data)[0])
]]></expres>
<page>https://freeiptv.io/playlists/</page>
</regex>
<regex>
<name>canal</name>
<listrepeat><![CDATA[
<title>[COLOR white][canal.param1][/COLOR]</title>
<thumbnail></thumbnail>  
<fanart></fanart>
<link>ignore</link>
<externallink>[canal.param2]?c=[cristal.param1]$$TSDOWNLOADER$$</externallink>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#picapau
 return re.findall('(?s)<option value=".*?>\((.*?)\).(.*?)<',re.findall('Select Your Playlist.+?>(?s)(.*?)</select>',page_data)[0])
]]></expres>
<page>https://freeiptv.io/playlists/</page>
</regex>
<thumbnail></thumbnail>  
<fanart></fanart>
</item>
 

vbprofi

Member
Feb 9, 2016
74
3
8
Here you have all the lists according to countries and categories



Code:
<item>
<title>[COLOR lightskyblue]https://freeiptv.io/playlists[/COLOR]</title>
<link>$doregex[cristal]</link>
<regex>
<name>cristal</name>
<listrepeat><![CDATA[
<title>[COLOR white][cristal.param2][/COLOR]</title>
<thumbnail></thumbnail>  
<fanart></fanart>
<link>$doregex[canal]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#picapau
 return re.findall('(?s)<option value=".*?>\((.*?)\).(.*?)<',re.findall('<select id="select\_country.+?>(?s)(.*?)</select>',page_data)[0])
]]></expres>
<page>https://freeiptv.io/playlists/</page>
</regex>
<regex>
<name>canal</name>
<listrepeat><![CDATA[
<title>[COLOR white][canal.param1][/COLOR]</title>
<thumbnail></thumbnail>  
<fanart></fanart>
<link>ignore</link>
<externallink>[canal.param2]?c=[cristal.param1]$$TSDOWNLOADER$$</externallink>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#picapau
 return re.findall('(?s)<option value=".*?>\((.*?)\).(.*?)<',re.findall('Select Your Playlist.+?>(?s)(.*?)</select>',page_data)[0])
]]></expres>
<page>https://freeiptv.io/playlists/</page>
</regex>
<thumbnail></thumbnail>  
<fanart></fanart>
</item>
well, that is nice. it is working!
thank yu verry verry much. I wish you happy Christmas!!!
 

altug

Member
Jul 7, 2016
67
2
8
Can someone help me? It does not work


Code:
 <item>
<title>[COLOR lime][B]SHOW[/COLOR][/B]</title>
<link>$doregex[get=URL]|User-Agent=iPhone</link>
<regex>
<name>get=URL</name>
<expres><![CDATA[#$pyFunction
import requests, re
def GetLSProData(page_data,Cookie_Jar,m,url = 'http://web.canlitvlive.io/izle/show-tv-kanal.html'):
 headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36','Referer': 'http://web.canlitvlive.io/izle/show-tv-kanal.html'}
 sourceSX = requests.get(url, headers=headers)
 startv = re.findall('file :.+?(http.*m3u8.*?)[\'\"]', sourceSX.text)[0]
 return startv + '|headers'
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
<thumbnail>https://upload.wikimedia.org/wikipedia/en/thumb/4/4b/Show_TV.svg/147px-Show_TV.svg.png</thumbnail>
<fanart>http://www.haberfark.net/d/news/3860.jpg</fanart>
</item>
 

cezi1

Member
Aug 1, 2017
30
1
6
Merry Christmas to all my Friends, and contemplative Holidays... Enjoy the time with the Family and the loving ones



 

Picapau

Member
Nov 15, 2018
69
9
8
Can someone help me? It does not work


Code:
 <item>
<title>[COLOR lime][B]SHOW[/COLOR][/B]</title>
<link>$doregex[get=URL]|User-Agent=iPhone</link>
<regex>
<name>get=URL</name>
<expres><![CDATA[#$pyFunction
import requests, re
def GetLSProData(page_data,Cookie_Jar,m,url = 'http://web.canlitvlive.io/izle/show-tv-kanal.html'):
 headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36','Referer': 'http://web.canlitvlive.io/izle/show-tv-kanal.html'}
 sourceSX = requests.get(url, headers=headers)
 startv = re.findall('file :.+?(http.*m3u8.*?)[\'\"]', sourceSX.text)[0]
 return startv + '|headers'
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
<thumbnail>https://upload.wikimedia.org/wikipedia/en/thumb/4/4b/Show_TV.svg/147px-Show_TV.svg.png</thumbnail>
<fanart>http://www.haberfark.net/d/news/3860.jpg</fanart>
</item>
Here you have it working, in yours I see some flaw in the beginning of the expression, but you almost had it. Merry Christmas to the whole forum

Code:
<item>
<title>[COLOR lightskyblue]http://www.livetvs.io/izle/show-tv-izle.html[/COLOR]</title>
<link>$doregex[cristal]|User-Agent=iPad</link>
<regex>
<name>cristal</name>
<expres>file:."(.*?)"</expres>
<page>http://www.livetvs.io/izle/show-tv-izle.html</page>
</regex>
<thumbnail></thumbnail>
<fanart></fanart>
</item>
 

altug

Member
Jul 7, 2016
67
2
8
Here you have it working, in yours I see some flaw in the beginning of the expression, but you almost had it. Merry Christmas to the whole forum

Code:
<item>
<title>[COLOR lightskyblue]http://www.livetvs.io/izle/show-tv-izle.html[/COLOR]</title>
<link>https://www.tvaddons.co/forums/$doregex[cristal]|User-Agent=iPad</link>
<regex>
<name>cristal</name>
<expres>file:."(.*?)"</expres>
<page>http://www.livetvs.io/izle/show-tv-izle.html</page>
</regex>
<thumbnail></thumbnail>
<fanart></fanart>
</item>
Thank you
Merry Christmas
 

papaya

Member
Apr 4, 2018
42
1
8
hi, anyone can help me with this site.
Code:
https://www.lkxxi.online/country/usa/
thank you and merry Christmas all
 

Picapau

Member
Nov 15, 2018
69
9
8
Thank you
Merry Christmas
I give you another regex in a way more similar to how you were trying, the difference is the regular expression

file:.+?(http.m3u8.*?)[\'"]

by

file:."(.*?)"

and change

return startv + '|headers'

by

return startv

a little more and you have it.

Code:
 <item>
<title>[COLOR lightskyblue]http://web.canlitvlive.io/izle/show-tv-kanal.html[/COLOR]</title>
<link>$doregex[cristalazul]|User-Agent=iPhone</link>
<regex>
<name>cristalazul</name>
<expres><![CDATA[#$pyFunction
import requests, re
def GetLSProData(page_data,Cookie_Jar,m,url = 'http://web.canlitvlive.io/izle/show-tv-kanal.html'):
 headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36','Referer': 'http://web.canlitvlive.io/izle/show-tv-kanal.html'}
 sourceSX = requests.get(url, headers=headers)
 startv = re.findall('file:.\"(.*?)\"', sourceSX.text)[0]
 return startv
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
<thumbnail>https://upload.wikimedia.org/wikipedia/en/thumb/4/4b/Show_TV.svg/147px-Show_TV.svg.png</thumbnail>
<fanart>http://www.haberfark.net/d/news/3860.jpg</fanart>
</item>
 

gujal

Developer
Dec 26, 2013
471
241
43
hi, anyone can help me with this site.
Code:
https://www.lkxxi.online/country/usa/
thank you and merry Christmas all
Enjoy!
Code:
<item>
<title>LKXXI</title>
<link>$doregex[pages]</link>
<thumbnail>https://www.lkxxi.online/wp-content/uploads/2018/10/logolkxxi.png</thumbnail>
<regex>
<name>pages</name>
<listrepeat><![CDATA[
<title>[COLOR cyan]Page [COLOR yellow][pages.param1][/COLOR]</title>
<link>$doregex[makelist]</link>
<thumbnail>https://www.lkxxi.online/wp-content/uploads/2018/10/logolkxxi.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import re
    import requests
    totalpages = int(re.findall("'page-numbers'.+?>([^<]+)", page_data)[-1])
    pages = []
    for i in range(1, totalpages+1):
        pages.append((str(i),))
    return pages
]]></expres>
<page>https://www.lkxxi.online/country/usa/</page>
</regex>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR gold][makelist.param5] [COLOR cyan][makelist.param4][COLOR white] ([makelist.param3])[/COLOR]</title>
<link>$doregex[makelist2]</link>
<thumbnail>[makelist.param2]</thumbnail>
<fanart>https://www.lkxxi.online/wp-content/uploads/2018/10/logolkxxi.png</fanart>
]]></listrepeat>
<expres><![CDATA[(?s)<article.+?href="([^"]+).+?src="([^"]+).+?tion">([^<]+).+?tag">([^<]+).+?mark">([^<]+)]]></expres>
<page>https://www.lkxxi.online/country/usa/page/[pages.param1]/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[COLOR gold][makelist2.param1][/COLOR]</title>
<urlsolve>[makelist2.param2]</urlsolve>
<thumbnail>[makelist.param2]</thumbnail>
<fanart>https://www.lkxxi.online/wp-content/uploads/2018/10/logolkxxi.png</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import re, requests, resolveurl
    sources = []
    aurl = 'https://www.lkxxi.online/wp-admin/admin-ajax.php'
    url = '[makelist.param1]'
    headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1',
               'Referer': 'https://www.lkxxi.online/'}
    html = requests.get(url, headers=headers).text
    pid = re.findall(r'id="muvipro_player_content_id"\s*data-id="([^"]+)', html)[0]
    trailer = re.search('href="([^"]+)"\s*class="gmr-trailer', html)
    if trailer:
        eurl = trailer.group(1)
        if resolveurl.HostedMediaFile(eurl):
            sources.append(('Trailer', eurl))
    tabs = re.findall('id="(player\d)">([^<]+)', html)
    headers.update({'X-Requested-With': 'XMLHttpRequest'})
    for tid,tname in tabs:
        data = {'action': 'muvipro_player_content',
                'tab': tid,
                'post_id': pid}
        thtml = requests.post(aurl, data=data, headers=headers).text
        eurl = re.findall('<iframe.+?src="([^"]+)', thtml)[0]
        if resolveurl.HostedMediaFile(eurl):
            sources.append((tname, eurl))
    return sources
]]></expres>
<page></page>
</regex>
</item>
 
Last edited:
Status
Not open for further replies.