LSP Regex & Makelist Discussion.

Doom

Member
Sep 16, 2019
317
21
18
Not working can i get a fix & thanks!
LSP XML:
<item>
<title>Win Sports +</title>
<thumbnail>https://www.tvplusgratis.com/img/winsportsplus.png</thumbnail>
<fanart></fanart>
<link>$doregex[getUrl]|user-agent=iPad&amp;Referer=https://www.tvplusgratis.com/&amp;verify=False</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
import re, requests, base64, jsunpack
link = re.findall('<iframe\s*src=[\'"]([^#]+)', page_data)[0]
page_data = requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://www.tvplusgratis.com/tv/winsportsplus1.php?id=140_','accept':'*/*'}, verify=False).text
pdata = re.search('(eval\(function\(p,a,c,k,e.+?)</script', page_data, re.DOTALL)
if pdata:
page_data += jsunpack.unpack(pdata.group(1))
burl = re.findall('MARIOCSCryptOld\("([^"]+)', page_data)[0]
while 'm3u8' not in burl:
burl = base64.b64decode(burl).decode('utf8')
return burl
]]></expres>
<page>https://www.tvplusgratis.com/tv/winsportsplus1.php?id=140_</page>
<referer>https://www.tvplusgratis.com/tv/winsportsplus.php</referer>
</regex>
</item>
 

undpnd tqucbo

Member
Jan 25, 2021
115
0
16
Can you help me this site and tk!
Code:
https://wigistream.to/live/zon1uzsvm4nnzm
 

m5Germany

Active member
Mar 20, 2014
281
87
28
All links not coded. Can we streamline the <title> para matures to make it flow? No blank lines.

LSP3 XML:
<item>
  <title>[COLOR=FF00FFFF]MakeList[/COLOR][COLOR=red]|[/COLOR][COLOR=FF00CCFF] teleclub.xyz[/COLOR]</title>
  <link>$doregex[makelist]</link>
  <regex>
    <name>makelist</name>
    <listrepeat><![CDATA[<title>[COLOR=FF00FFFF][makelist.param1][/COLOR]</title>
<fanart>[makelist.param2]</fanart>
<thumbnail>https://pbs.twimg.com/profile_images/1104066764277719041/N7hnsxL__400x400.png</thumbnail>
<link>[makelist.param3]|user-agent=Mozilla/5.0&amp;Referer=[makelist.param4]</link>]]></listrepeat>
    <expres><![CDATA["name":\s*"([^"]+).*\n.*?image":\s*"([^"]+).*\n.*?url":\s*"([^"]+)|"userAgent":"(?:\s(\w[^"]+)|(\w[^"]+))]]></expres>
    <page>https://w3ubin.com/xj8KIIZn5.w3u</page>
    <agent>Mozilla/5.0</agent>
    <accept>image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8</accept>
    <referer>[makelist.param5]</referer>
  </regex>
</item>
 

Doom

Member
Sep 16, 2019
317
21
18
@m5Germany stopped working can you take a look & thanks.
LSP XML:
<item>
<title>HBO</title>
<thumbnail>https://adictosalatele.com/logos/hbo.png</thumbnail>
<fanart>https://www.metropoliabierta.com/uploads/s1/23/02/01/captura-de-pantalla-2018-05-07-a-las-15-47-45.png</fanart>
<link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Referer=https://wigistream.to/</link>
<regex>
<name>m5</name>
<expres>source\s*:\s*"([^"]+)</expres>
<page>$doregex[m4]</page>
<referer>https://adictosalatele.com/</referer>
</regex>
<regex>
<name>m4</name>
<expres>iframe\s*src="([^"]+)</expres>
<page>https:$doregex[m3]</page>
<referer>https://adictosalatele.com/</referer>
</regex>
<regex>
<name>m3</name>
<expres>iframe.*?src="([^"]+)</expres>
<page>https://adictosalatele.com/hbo-latino-en-vivo-online-gratis/</page>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
281
87
28
LSP3 XML:
<item>
<title>HBO | adictosalatele.com</title>
<thumbnail>https://adictosalatele.com/logos/hbo.png</thumbnail>
<fanart>https://www.metropoliabierta.com/uploads/s1/23/02/01/captura-de-pantalla-2018-05-07-a-las-15-47-45.png</fanart>
<link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Accept=*/*&amp;Origin=https://wigistream.to&amp;Referer=https://wigistream.to/</link>
<regex>
    <name>m5</name>
    <expres>var\s*src\s*=\s*"([^"]+)</expres>
    <page>$doregex[m4]</page>
    <agent>Mozilla/5.0</agent>
    <accept>*/*</accept>
    <referer>https://adictosalatele.com/</referer>
  </regex>
  <regex>
    <name>m4</name>
    <expres>$pyFunction:get_unpacked(page_data,'(eval.*m3u8.*)')</expres>
    <page>https://wigistream.to/embed/lbqtn3|Upgrade-Insecure-Requests=1</page>
    <agent>Mozilla/5.0</agent>
    <accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</accept>
    <referer>https://adictosalatele.com/</referer>
  </regex>
</item>
 
  • Happy
Reactions: Doom

PinkWave

New member
Jan 24, 2021
25
2
3
Hi to everybody again.
I need some help for this page:

Code:
https://enstreams.xyz/livetv/stream-4.php
TKS.
 

undpnd tqucbo

Member
Jan 25, 2021
115
0
16
@m5Germany I mean,this site I posted,it's on this site:
Code:
https://allfoot.info/2watch/3/4.php
 

m5Germany

Active member
Mar 20, 2014
281
87
28
LSP3 XML:
<item>
<title>RMC Sport1 | zon1uzsvm4nnzm | allfoot.info</title>
<fanart>https://www.logitheque.com/en/wp-content/uploads/sites/6/2019/03/113.rmc-sport-1280x720.png</fanart>
<thumbnail>https://www.thesportsdb.com/images/media/logo/RMC_Sport_1.png</thumbnail>
<link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Accept=*/*&amp;Origin=https://wigistream.to&amp;Referer=https://wigistream.to/</link>
  <regex>
    <name>m5</name>
    <expres>var\s*src\s*=\s*"([^"]+)</expres>
    <page>$doregex[m4]</page>
    <agent>Mozilla/5.0</agent>
    <accept>*/*</accept>
    <referer>https://allfoot.info/</referer>
  </regex>
  <regex>
    <name>m4</name>
    <expres>$pyFunction:get_unpacked(page_data,'(eval.*m3u8.*)')</expres>
    <page>https://wigistream.to/embed/zon1uzsvm4nnzm|Upgrade-Insecure-Requests=1</page>
    <agent>Mozilla/5.0</agent>
    <accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</accept>
    <referer>https://allfoot.info/</referer>
  </regex>
</item>
 
  • Like
Reactions: undpnd tqucbo

m5Germany

Active member
Mar 20, 2014
281
87
28
LSP3 XML:
Might have to click link twice to play

<item>
<title>sporttv1 | sportzonline.to</title>
<fanart>https://www.sporttv.pt/img/static/sport-tv-institucional.png</fanart>
<thumbnail>https://pbs.twimg.com/media/EvJ2v1xXYAAhnM4.jpg</thumbnail>
<link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Accept=*/*&amp;Origin=https://wigistream.to&amp;Referer=https://wigistream.to/</link>
  <regex>
    <name>m5</name>
    <expres>var\s*src\s*=\s*"([^"]+)</expres>
    <page>$doregex[m4]</page>
    <agent>Mozilla/5.0</agent>
    <accept>*/*</accept>
    <referer>https://sportzonline.to/</referer>
  </regex>
  <regex>
    <name>m4</name>
    <expres>$pyFunction:get_unpacked(page_data,'(eval.*m3u8.*)')</expres>
    <page>$doregex[m3]|Upgrade-Insecure-Requests=1</page>
    <agent>Mozilla/5.0</agent>
    <accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</accept>
    <referer>https://sportzonline.to/</referer>
  </regex>
  <regex>
    <name>m3</name>
    <expres>wigistream.*?src="([^"]+)</expres>
    <page>https://sportzonline.to/channels/pt/sporttv1.php|Upgrade-Insecure-Requests=1</page>
    <agent>Mozilla/5.0</agent>
    <accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</accept>
    <referer>https://sportzonline.to/</referer>
  </regex>
</item>
 
  • Like
Reactions: undpnd tqucbo

Doom

Member
Sep 16, 2019
317
21
18
Hi guys can someone please help me out here "schedule" and thanks.
hxxps://p2pstreams.live/upcoming-schedule/
 

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
Try this:

LSP XML:
<item>
<title>https://p2pstreams.live/upcoming-schedule/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR lime][makelist.param1]  &#8227;[COLOR gold] [makelist.param2][/COLOR]</title>
  <link>$doregex[makelist2]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('><h2\s*style="text-align:center"><strong>([^<]+)</.+?|<h3.{1,25}<strong>([^<]+)</strong>.{10,12}class="takos"(?s)(.*?)</scrip.{2,3}</di.{2,3}<(?:|\/)div',page_data)
]]></expres>
<page>https://p2pstreams.live/upcoming-schedule/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param2][COLOR lime]  ([makelist2.param3])[/COLOR]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('<a\s*href="([^"]+).+?<span class.+?>([^<]+)<.+?value="([^"]+)',page_data)
]]></expres>
<page>[makelist.param3]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):
  url=re.findall('"embed-responsive.+?src=[]\'"]([^\'"]+)',page_data)[0];ref=re.findall('(.+?)embed',url)[0]
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'http://p2pstreams.live/','accept':'*/*'}).text.replace('\\','')
  pUrl=re.findall('player.load.+?:\s*([^\W]+)',source)[0]
  html,gtok1,gtok2=re.findall('(?s)function\s*%s.+?\[([^\]]+).+?\+\s*([^\.]+).+?"(\w[^"]+)'%pUrl,source)[0]
  html=''.join(eval(html))  #html.replace('","','').replace('"','')
  tok1=re.findall('%s.+?\[("[^\]]+)'%gtok1,source)[0];tok1=''.join(eval(tok1))  #tok1.replace('","','').replace('"','')
  tok2=re.findall('%s>([^<]+)'%gtok2,source)[0]
  return '%s%s%s|user-agent=ipad&referer=%s'%(html,tok1,tok2,ref)
]]></expres>
<page>[makelist2.param1]</page>
</regex>
</item>
 
  • Like
Reactions: Doom

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
Or shorter

LSP XML:
<item>
<title>https://p2pstreams.live/upcoming-schedule/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR lime][makelist.param1]  &#8227;[COLOR gold] [makelist.param2][/COLOR]</title>
  <link>$doregex[makelist2]</link>
]]></listrepeat>
<expres><![CDATA[><h2\s*style="text-align:center"><strong>([^<]+)</.+?|<h3.{1,25}<strong>([^<]+)</strong>.{10,12}class="takos"(?s)(.*?)</scrip.{2,3}</di.{2,3}<(?:|\/)div]]></expres>
<page>https://p2pstreams.live/upcoming-schedule/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param2][COLOR lime]  ([makelist2.param3])[/COLOR]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[<a\s*href="([^"]+).+?<span class.+?>([^<]+)<.+?value="([^"]+)]]></expres>
<page>[makelist.param3]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('"embed-responsive.+?src=[]\'"]([^\'"]+)',page_data)[0];ref=re.findall('(.+?)embed',url)[0]
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'http://p2pstreams.live/','accept':'*/*'}).text.replace('\\','')
  pUrl=re.findall('player.load.+?:\s*([^\W]+)',source)[0]
  html,gtok1,gtok2=re.findall('(?s)function\s*%s.+?\[([^\]]+).+?\+\s*([^\.]+).+?"(\w[^"]+)'%pUrl,source)[0]
  html=''.join(eval(html))  #html.replace('","','').replace('"','')
  tok1=re.findall('%s.+?\[("[^\]]+)'%gtok1,source)[0];tok1=''.join(eval(tok1))  #tok1.replace('","','').replace('"','')
  tok2=re.findall('%s>([^<]+)'%gtok2,source)[0]
  return '%s%s%s|user-agent=ipad&referer=%s'%(html,tok1,tok2,ref)
]]></expres>
<page>[makelist2.param1]</page>
</regex>
</item>
 
  • Like
Reactions: Doom

tpoupi

Member
Jan 2, 2016
36
0
6

AGAMEN0N

New member
Jul 4, 2019
18
2
3
working on kodi matrix:
Code:
<item>
<title>Telesud</title>
<thumbnail>https://www.telesud.com/og-image.jpg</thumbnail>
<fanart>https://gade.tv/wp-content/uploads/2020/07/Telesud.jpg</fanart>
<link>https://www.dailymotion.com/cdn/live/video$doregex[video]</link>
<regex>
<name>url</name>
<expres>src="(.*video\/[^?]+)</expres>
<page>https://www.telesud.com</page>
</regex>
<regex>
<name>video</name>
<expres>live\\\/video\\(.*)"}]}</expres>
<page>$doregex[url]</page>
</regex>
</item>
 

cris_manya

Member
Nov 20, 2016
39
1
8
Hi!
is it possible to have a makelist for this site?

Code:
hxxps://www.goldeoro.xyz/
Thanks!
 

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
Try this:

LSP XML:
<item>
<title>https://www.goldeoro.xyz/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param1]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[function.+opc.+?\n.+?title="([^"]+).+?Opc.\s*1.+?//([^\'\\"]+)]]></expres>
<page>https://www.goldeoro.xyz/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,base64,time,jsunpack,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  murl='https://[makelist.param2]';now=int((int(time.time()) + 86400) * 1000)
  if 'freefeds' in murl:
    source=requests.get(murl,headers={'user-agent':'Mozilla/5.0','referer':'https://sportsbay.org/','accept':'*/*'}).text
    return re.findall('Clappr.Player[\w\W]*?(?:source|src|file)(?:\s*|):(?:\s*|)[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&origin=https://freefeds.com&referer=https://freefeds.com/'
  elif 'pelotero' in murl or '1rowsports' in murl:
    source=requests.get(murl,headers={'user-agent':'Mozilla/5.0','referer':'https://www.goldeoro.xyz/','accept':'*/*'}).text
    teleID=re.findall('>id=.(\d+)',source)[0];ref='https://teleriumtv.com/embed/%s.html'%teleID
    r=requests.get('https://teleriumtv.com/streams/%s/%s.json'%(teleID,now),headers={'user-agent':'Mozilla/5.0','referer':ref,'accept':'*/*'},cookies={'volume':'0'}).json()
    strurl=r.get('url');netloc=re.findall('(.*?)/embed',ref)[0]
    headers={'user-agent': 'Mozilla/5.0','origin':netloc,'referer':ref}
    if r.get('tokenurl'):
      strurl += requests.get(netloc+r.get('tokenurl'),headers=headers).json()[10][::-1]
    strurl=strurl if strurl.startswith('http') else 'https:'+strurl
    return strurl+'|{0}'.format(urllib.urlencode(headers))
  elif 'adictosaldeporte' in murl:
    source=requests.get(murl,headers={'user-agent':'Mozilla/5.0','referer':'https://www.goldeoro.xyz/','accept':'*/*'}).text
    wigiurl=re.findall('<iframe\s*src=[\'"]([^\'"]+)',source)[0]
    source=requests.get(wigiurl,headers={'user-agent':'Mozilla/5.0','referer':murl,'accept':'*/*'}).text
    msource=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0])
    return re.findall('(?:P|player)[\w\W]*?(?:source|src|file)(?:\s*|):(?:\s*|)[\'"]([^\'"]+)',msource)[0]+'|user-agent=ipad&origin=https://wigistream.to&referer=https://wigistream.to/'
  elif 'teleriumtv' in murl:
    teleID=re.findall('embed/(\d+)\.',murl)[0]
    sr=requests.get('https://teleriumtv.com/streams/%s/%s.json'%(teleID,now),headers={'user-agent':'Mozilla/5.0','referer':ref,'accept':'*/*'},cookies={'volume':'0'}).json()
    strurl=r.get('url');netloc=re.findall('(.*?)/embed',murl)[0]
    headers={'user-agent': 'Mozilla/5.0','origin':netloc,'referer':murl}
    if r.get('tokenurl'):
      strurl += requests.get(netloc+r.get('tokenurl'),headers=headers).json()[10][::-1]
    strurl=strurl if strurl.startswith('http') else 'https:'+strurl
    return strurl+'|{0}'.format(urllib.urlencode(headers))
  else:
    source=requests.get(murl,headers={'user-agent':'Mozilla/5.0','referer':'https://www.goldeoro.xyz/','accept':'*/*'}).text
    link=re.findall('<iframe\s*src=[\'"]([^\'"]+)',source)[0]
    source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':murl,'accept':'*/*'}).text
    return re.findall('Clappr.Player[\w\W]*?(?:source|src|file)(?:\s*|):(?:\s*|)[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer='+link
]]></expres>
<page></page>
</regex>
<item>




 
  • Like
Reactions: cris_manya

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
small mistake, replace the bottom section:

LSP XML:
  elif 'teleriumtv' in murl:
    teleID=re.findall('embed/(\d+)\.',murl)[0]
    r=requests.get('https://teleriumtv.com/streams/%s/%s.json'%(teleID,now),headers={'user-agent':'Mozilla/5.0','referer':'https://teleriumtv.com/embed/%s.html'%teleID,'accept':'*/*'},cookies={'volume':'0'}).json()
    strurl=r.get('url');netloc='https://teleriumtv.com'
    headers={'user-agent': 'Mozilla/5.0','origin':netloc,'referer':'https://teleriumtv.com/embed/%s.html'%teleID}
    if r.get('tokenurl'):
      strurl += requests.get(netloc+r.get('tokenurl'),headers=headers).json()[10][::-1]
    strurl=strurl if strurl.startswith('http') else 'https:'+strurl
    return strurl+'|{0}'.format(urllib.urlencode(headers))
 
  • Like
Reactions: cris_manya

undpnd tqucbo

Member
Jan 25, 2021
115
0
16
Hello,
Can please help me a site & tk!
Code:
hxxps://allplay.uz/c/93/luxtv
Code:
[email protected]
kyhoang64
 

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
Chạy thử cái này xem:

LSP XML:
<item>
<title>https://allplay.uz/c/93/luxtv</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param4]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://allplay.uz/channel/list',headers={'user-agent':'Mozilla/5.0','referer':'https://allplay.uz/','x-requested-with':'XMLHttpRequest'}).text.replace('\\','')
  return re.findall('"id":(\d+).+?"name":"([^"]+).+?"slug":"([^"]+).+?"url_500x500":"([^"]+)',source)
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('"url":"([^"]+)',page_data)[0].replace('\\','')+'|user-agent=ipad&referer=https://allplay.uz/c/[makelist.param1]/[makelist.param3]'
]]></expres>
<page>https://allplay.uz/channel/play/[makelist.param1]</page>
<referer>https://allplay.uz/c/[makelist.param1]/[makelist.param3]</referer>
<x-req>XMLHttpRequest</x-req>
<accept>*/*</accept>
<cookieJar>$doregex[getLogin]</cookieJar>
</regex>
<regex>
<name>getLogin</name>
<expres></expres>
<page>https://allplay.uz/login</page>
<referer>https://allplay.uz/login</referer>
<rawpost>_token=$doregex[logtok]&amp;email=hoanganhkyc2hlbn%40bacninh.edu.vn&amp;password=kyhoang64</rawpost>
<cookieJar></cookieJar>
</regex>
<regex>
<name>logtok</name>
<expres><![CDATA[csrfToken:\s*[\'"]([^\'"]+)]]></expres>
<page>https://allplay.uz/login</page>
<referer>https://allplay.uz/c/93/luxtv</referer>
</regex>
</item>
 
  • Like
Reactions: undpnd tqucbo

dantas1990

Member
Apr 10, 2020
60
1
8
@Doom

Thank you very much for your attention.
Actually, this list I posted is active, it's about player API. I would like to know how to build a makelist regex code so I can watch it on KODI.
If possible, please. I will be grateful .
Follow the examples below

http://foxx-iptv.eu:9600/player_api.php?username=aGg5K032oD0k9a3&password=d9HC8FnmZfbme0s&action=get_live_streams&category_id=82
player_api.php?username=X&password=X&action=get_live_streams (This will get All LIVE Streams)
player_api.php?username=X&password=X&action=get_live_streams&category_id=X (This will get All LIVE Streams in the selected category ONLY)
 

Doom

Member
Sep 16, 2019
317
21
18
@streamwatcher2013 can i get this section your code for "upcoming schedule" Boxing is empty for some rason & thanks!
hxxps://p2pstreams.live/boxing-streams/
 

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
New update for whole site and separate section for boxing (you can use it for the other except Soccer. Happy July 4th 🇺🇸 🎆

LSP XML:
<item>
<title>https://p2pstreams.live/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold] [makelist.param2][/COLOR]</title>
  <link>$doregex[makelist2]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('class="takoheddo".+?Upcoming Schedule</span>(?s)(.*?)</section',page_data)[0]
  return re.findall('class="takoheddo".+?Upcoming Schedule</span>|class="takos".+?href.+?live/(?!Upcoming)([^"]+).+?<span>([^<]+)',list)
]]></expres>
<page>https://p2pstreams.live/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR lime][makelist2.param1]  &#8227;[COLOR gold]  [makelist2.param3][COLOR dodgerblue]  [makelist2.param4][/COLOR]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[<h3><strong>([^<]+)</strong></h3>\s*<div|class="takos".+?href="([^"]+).+?>([^<]+)</span.+?value="([^"]+)]]></expres>
<page>https://p2pstreams.live/[makelist.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('"embed-responsive.+?src=[]\'"]([^\'"]+)',page_data)[0];ref=re.findall('(.+?)embed',url)[0]
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'http://p2pstreams.live/','accept':'*/*'}).text.replace('\\','')
  pUrl=re.findall('player.load.+?:\s*([^\W]+)',source)[0]
  html,gtok1,gtok2=re.findall('(?s)function\s*%s.+?\[([^\]]+).+?\+\s*([^\.]+).+?"(\w[^"]+)'%pUrl,source)[0]
  html=''.join(eval(html))
  tok1=re.findall('%s.+?\[("[^\]]+)'%gtok1,source)[0];tok1=''.join(eval(tok1))
  tok2=re.findall('%s>([^<]+)'%gtok2,source)[0]
  return '%s%s%s|user-agent=ipad&referer=%s'%(html,tok1,tok2,ref)
]]></expres>
<page>[makelist2.param2]</page>
</regex>
</item>

<item>
<title>Boxing</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param2][COLOR dodgerblue] ([makelist2.param3])[/COLOR]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[class="takos".+?href="([^"]+).+?>([^<]+)</span.+?value="([^"]+)]]></expres>
<page>https://p2pstreams.live/boxing-streams/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('"embed-responsive.+?src=[]\'"]([^\'"]+)',page_data)[0];ref=re.findall('(.+?)embed',url)[0]
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'http://p2pstreams.live/','accept':'*/*'}).text.replace('\\','')
  pUrl=re.findall('player.load.+?:\s*([^\W]+)',source)[0]
  html,gtok1,gtok2=re.findall('(?s)function\s*%s.+?\[([^\]]+).+?\+\s*([^\.]+).+?"(\w[^"]+)'%pUrl,source)[0]
  html=''.join(eval(html))
  tok1=re.findall('%s.+?\[("[^\]]+)'%gtok1,source)[0];tok1=''.join(eval(tok1))
  tok2=re.findall('%s>([^<]+)'%gtok2,source)[0]
  return '%s%s%s|user-agent=ipad&referer=%s'%(html,tok1,tok2,ref)
]]></expres>
<page>[makelist2.param1]</page>
</regex>
</item>
 
  • Like
Reactions: Doom and dantas1990

m5Germany

Active member
Mar 20, 2014
281
87
28
For me I had to change 3 instances of makelist2 to makelist for Boxing.
I had already started working on this and here's what I have so far.
Still can't get this time thing. Can we make the Code show local time? HJ4, m5
LSP3 XML:
<item>
    <title>[COLOR=FF00FFFF]Upcoming Schedule [/COLOR][COLOR=red]|[/COLOR][COLOR=FF00CCFF] p2pstreams.live [/COLOR][COLOR=FF006680]active 30 min before Event[/COLOR]</title>
        <fanart>https://ohcbrands.com/wp-content/uploads/2018/05/black-background.jpg</fanart>
        <thumbnail>https://pbs.twimg.com/profile_images/1360269724056248328/mKYIdXXe_400x400.jpg</thumbnail>
        <link>$doregex[makelist]</link>
    <regex>
        <name>makelist</name>
        <listrepeat><![CDATA[
        <title>[COLOR orange][makelist.param1][/COLOR][COLOR yellow][makelist.param2] [/COLOR][COLOR skyblue][makelist.param4] [/COLOR][COLOR=FF006680][makelist.param5][/COLOR]</title>
        <fanart>https://ohcbrands.com/wp-content/uploads/2018/05/black-background.jpg</fanart>
        <thumbnail>https://pbs.twimg.com/profile_images/1360269724056248328/mKYIdXXe_400x400.jpg</thumbnail>
        <link>$doregex[m3]$doregex[m4]$doregex[m5]|User-Agent=Mozilla/5.0&amp;Accept=*/*&amp;Origin=http://p2pstreams.live&amp;Referer=http://p2pstreams.live/</link> 
]]></listrepeat>
        <expres><![CDATA[center"><strong>([^<]+)|(?<!<p>)<strong>([^<]+)|a\s*href="([^"]+).*?span\s*class=".*?">([^<]+).*?span\s*class=".*?value="([^"]+)]]></expres>
        <page>https://p2pstreams.live/upcoming-schedule/</page>
        <referer>https://p2pstreams.live/</referer>
    </regex>
    <regex>
        <name>m5</name>
        <expres><![CDATA[>display:none'\s*id=([^<]+)]]></expres>
        <page>$doregex[m2]|Upgrade-Insecure-Requests=1</page>
        <referer>http://p2pstreams.live/</referer>
    </regex>
    <regex>
        <name>m4</name>
        <expres>$pyFunction:'$doregex[m4a]'.replace('","','')</expres>
        <page />
    </regex>
    <regex>
        <name>m4a</name>
        <expres><![CDATA[script">.*\nv.*?"(.*[^"]+)"]]]></expres>
        <page>$doregex[m2]|Upgrade-Insecure-Requests=1</page>
        <referer>http://p2pstreams.live/</referer>
    </regex>
    <regex>
        <name>m3</name>
        <expres>$pyFunction:'$doregex[m3a]'.replace('","','').replace('\\','')</expres>
        <page />
    </regex>
    <regex>
        <name>m3a</name>
        <expres>return.."(.*[^"]+)"].join</expres>
        <page>$doregex[m2]</page>
        <referer>http://p2pstreams.live/</referer>
    </regex>
    <regex>
        <name>m2</name>
        <expres>responsive-item"\s*src="([^"]+)</expres>
        <page>[makelist.param3]</page>
        <referer>http://p2pstreams.live/</referer>
    </regex>
</item>
 
  • Like
Reactions: Doom

RRrorony

New member
Jun 17, 2019
25
6
3
Hi Gujal, I am testing lsp3 with kodi 19.1. Everything works fine with local files, but when I add a source by web url, nothing works I always have an error to open
. Thanks
 

RRrorony

New member
Jun 17, 2019
25
6
3
Hi @gujal, I am testing lsp3 with kodi 19.1. Everything works fine with local files, but when I add a source by web url, nothing works I always have an error to open
. Thanks
 

RRrorony

New member
Jun 17, 2019
25
6
3
after several attempts and modifications, everything works. python 2 to python 3 some modifications are needed. thanks for your availability
 

m5Germany

Active member
Mar 20, 2014
281
87
28
Greetings, I get the following errors whether the stream plays or not. I used streamwatcher2013 base Code and modified it.
Neither version results in the stream playing consistently per click.
Either version I click will gui One or more items failed to play when it does not connect correctly.
Does the site limit amount of views/user's at one time? Have I missed something? Thanks, m5
LSP3 XML:
When connects:
Python interpreter stopped
CCurlFile::Stat - Failed: HTTP response code said error(22) for https://e2.cdnfoxtv.com/ingest05/46569.m3u8?sf=eGtxdHBKZkp3cA==&token=jt0zpvIi0pnSA__54pbpkA&expires=1625869715&rnd=46569|user-agent=Mozilla%2F5.0&accept=%2A%2F%2A&origin=https%3A%2F%2Fteleriumtv.com&referer=https%3A%2F%2Fteleriumtv.com%2Fembed%2F46569.html
Creating InputStream
CCurlFile::FillBuffer - Failed: HTTP returned error 403
CCurlFile::Open failed with code 403 for https://e2.cdnfoxtv.com/ingest05/46569.m3u8?sf=eGtxdHBKZkp3cA==&token=jt0zpvIi0pnSA__54pbpkA&expires=1625869715&rnd=46569:                                               
Creating Demuxer

When does not connect:
Python interpreter stopped
CCurlFile::Stat - Failed: HTTP response code said error(22) for https://e2.cdnfoxtv.com/ingest05/46569.m3u8?sf=eGtxdHBKZkp3cA==&token=jt0zpvIi0pnSA__54pbpkA&expires=1625869715&rnd=46569|user-agent=Mozilla%2F5.0&accept=%2A%2F%2A&origin=https%3A%2F%2Fteleriumtv.com&referer=https%3A%2F%2Fteleriumtv.com%2Fembed%2F46569.html
Creating InputStream
CCurlFile::FillBuffer - Failed: HTTP returned error 403
CCurlFile::Open failed with code 403 for https://e2.cdnfoxtv.com/ingest05/46569.m3u8?sf=eGtxdHBKZkp3cA==&token=jt0zpvIi0pnSA__54pbpkA&expires=1625869715&rnd=46569:                                                  
Creating Demuxer
CVideoPlayer::OpenDemuxStream - Error creating demuxer


<item>
    <title>[COLOR=FF00FFFF]Sky Sports F1 [/COLOR][COLOR=red]&#8377;[/COLOR][COLOR=FF00CCFF] teleriumtv.com[/COLOR]</title>
    <fanart>https://greasengasoline.files.wordpress.com/2012/03/b11b164b148b374159c2fd650a2c6440.jpg</fanart>
    <thumbnail>https://2.bp.blogspot.com/-O6QlcjaE3eI/WUM_fg9BrfI/AAAAAAAAGqc/lPRU-X3O93sTp2rcylqL_C1O3k4Mzvg_ACLcBGAs/s1600/sky_uk_sports_f1.png</thumbnail>
    <link>$doregex[m5]</link>
    <regex>
        <name>m5</name>
        <expres>
            <![CDATA[#$pyFunction
import re,requests,time,urllib,urllib.parse
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013,m5 modified
  now=int((int(time.time()) + 86400) * 1000)
  jsurl='https://teleriumtv.com/streams/46569/%s.json'%now
  r=requests.get(jsurl,headers={'user-agent':'Mozilla/5.0','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9','origin':'https://teleriumtv.com','referer':'https://teleriumtv.com/embed/46569.html'},cookies={'volume':'0'}).json()
  headers={'user-agent':'Mozilla/5.0','accept':'*/*','origin':'https://teleriumtv.com','referer':'https://teleriumtv.com/embed/46569.html'}
  netloc=r.get('url')
  if r.get('tokenurl'):
    netloc +=requests.get('https://teleriumtv.com/'+r.get('tokenurl'),headers=headers).json()[10][::-1]
  netloc=netloc if netloc.startswith('http') else 'https:'+netloc
  return netloc+'46569'+'|{0}'.format(urllib.parse.urlencode(headers))
]]>
        </expres>
        <page>https://embed-channel.stream//stream/uk_skysport_f1.php|Upgrade-Insecure-Requests=1</page>
        <agent>Mozilla/5.0</agent>
        <accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</accept>
        <referer>https://embed-channel.stream/</referer>
    </regex>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
@m5Germany

The code is working fine. It will play on Kodi 19 and get error on Kodi 18.

LSP Alpha 3:
<item>
<title>UK Skysport F1</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urllib.parse,time
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013,m5 modified
  now=int((int(time.time()) + 86400) * 1000)
  jurl='https://teleriumtv.com/streams/46569/%s.json'%now
  r=requests.get(jurl,headers={'user-agent':'Mozilla/5.0','referer':'https://teleriumtv.com/embed/46569.html','accept':'*/*'},cookies={'volume':'0'}).json()
  headers={'user-agent':'Mozilla/5.0','accept':'*/*','origin':'https://teleriumtv.com','referer':'https://teleriumtv.com/embed/46569.html'}
  netloc=r.get('url')
  if r.get('tokenurl'):
    netloc +=requests.get('https://teleriumtv.com/'+r.get('tokenurl'),headers=headers).json()[10][::-1]
  netloc=netloc if netloc.startswith('http') else 'https:'+netloc
  return netloc+'|{0}'.format(urllib.parse.urlencode(headers))  # why add 46569 after netloc
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: m5Germany

m5Germany

Active member
Mar 20, 2014
281
87
28
# why add 46569 after netloc: Simple; when I sniffed the stream, a couple of times, it indicated =46569.
Secondly, even after all this time - I still do not know the why. Since I do not know why, I try sh*t.
Noob - I still do not know what is absolutely necessary to play a stream. I try everything in my head.
So, until I understand the why, I'll continue to ask questions to those with greater knowledge. m5

Noticed a change in Code:
New import re,requests,urllib.parse,time
Old import re,requests,time,urllib,urllib.parse

I still get the same error(s). It's wierd; it plays one time and not the next. Still do not know why I am getting:
CCurlFile::Stat - Failed: HTTP response code said error(22)
CCurlFile::FillBuffer - Failed: HTTP returned error 403
 

gujal

Developer
Dec 26, 2013
564
311
63
@m5Germany
This code breaks down the steps for understanding and works on both Kodi18 and 19. Enjoy!

LSP XML:
<item>
<title>Sky Sports F1</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests, time
  try:
    from urllib.parse import urlencode
  except:
    from urllib import urlencode
 
  eurl = re.findall('<iframe.+?src="([^"]+)', page_data)[0]
  if 'telerium' in eurl:
    headers = {
      'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0',
      'Referer': 'https://teleriumtv.com/'
    }
    cid = eurl.split('/')[-1].split('.')[0]
    ctime = int((time.time() + 86400) * 1000)
    curl = 'https://teleriumtv.com/streams/{0}/{1}.json'.format(cid, ctime)
    r = requests.get(curl, headers=headers).json()
    surl = r.get('url')
    turl = r.get('tokenurl')
    if turl:
      surl += requests.get('https://teleriumtv.com' + turl, headers=headers).json()[10][::-1]
    surl = surl if surl.startswith('http') else 'https:' + surl
    return '{0}|{1}'.format(surl, urlencode(headers))
  return
]]></expres>
<page>https://embed-channel.stream/stream/uk_skysport_f1.php</page>
</regex>
<thumbnail>https://2.bp.blogspot.com/-O6QlcjaE3eI/WUM_fg9BrfI/AAAAAAAAGqc/lPRU-X3O93sTp2rcylqL_C1O3k4Mzvg_ACLcBGAs/s1600/sky_uk_sports_f1.png</thumbnail>
</item>
 
  • Like
Reactions: m5Germany

m5Germany

Active member
Mar 20, 2014
281
87
28
Wow, now you introduce eurl.split. Had to read up on that one. Thanks.
Anyway, the stream is offline and giving me a Error 502. No biggy.
My question goes beyond:
Is there a way to limit the int((time.time() + 86400) * 1000)[:-1] - so 9 charaters
Then I'll add the extra zeros needed in h**ps://teleriumtv.com/streams/46569/1626091560***.json
In my head - it always ends with zeros where current .time catches ms. Not sure if it makes a difference.
It would be nice to know even if it does not work in this example.
There has to be a more efficient way of writing this: Thanks, m5
LSP3 XML:
<item>
<title>epochTime Python [:-1]</title>
<link>http://$doregex[m5]|User-Agent=Mozilla/5.0</link>
<regex>
<name>m5</name>
<expres>$pyFunction:'$doregex[m4]'.replace('$doregex[m4]','$doregex[m4]'[:-1])</expres>
<page></page>
</regex>
<regex>
<name>m4</name>
<expres><![CDATA[#$pyFunction
import re,time,datetime
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  now=int((int(time.time()) + 86400))
  return now
]]></expres>
<page></page>
</regex>
</item>
 

gujal

Developer
Dec 26, 2013
564
311
63
And if you really want the time to end in 4 zeroes, that is rounded to the nearest 10 seconds, then you do it this way
Python:
ctime = int(round(time.time(), -1) + 86400) * 1000
 
  • Like
Reactions: m5Germany

m5Germany

Active member
Mar 20, 2014
281
87
28
Modified/added a couple of things.

headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0',
'Accept': '*/*',
'Origin': 'h**ps://teleriumtv.com',
'Referer': 'h**ps://teleriumtv.com/embed/46569.html',
'Cookie': 'volume=0'
}

and

ctime = int(round(time.time(), -1) + 86400) * 1000

No longer get the error(s):22,403

Thanks, m5
 

thingy

Member
May 9, 2018
69
1
8
Is it possible to help me with a regex for this channel?
Code:
hxxps://www.tvnpass.com/bcplayer/channel/5b75a58f2cdce33d3cdc702c?ext=1
 

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
Try this:

LSP XML:
<item>
<title>TVMax</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  headers={'user-agent':'Mozilla/5.0','referer':'https://www.tvnpass.com/','accept':'*/*'}
  pkey=re.findall('policyKey:"([^"]+)',requests.get('https://players.brightcove.net/6058004209001/PvZDDdcIx_default/index.min.js',headers=headers).text)[0]
  headers={'user-agent':'Mozilla/5.0','host':'edge.api.brightcove.com','origin':'https://www.tvnpass.com','referer':'https://www.tvnpass.com/','accept':'application/json;pk=%s'%pkey}
  stream=requests.get('https://edge.api.brightcove.com/playback/v1/accounts/6058004209001/videos/6152406893001?ad_config_id=live._7efC4oIVzPn6iXdSYBsxzIhqACB0QyeHNC7W-YnLrFix8-oVV8E86hPEXtEn-yLjuIuPYXQkpW8_t5xCDzX5Xpf99akNoEaWm6YnpCa_h9Rp5SoLapGq-w2lzz_gBK18EEHNwHz0bz59rcg',headers=headers).json()['sources'][0]['src']
  return '%s|user-agent=ipad&referer=https://www.tvnpass.com/'%stream
]]></expres>
<page></page>
</regex>
</item>
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5