LSP Regex & Makelist Discussion.

undpnd tqucbo

Member
Jan 25, 2021
71
0
6
I need help some sites & tk! hxxps://sportzonline.to/channels/pt/sporttv1.php
Code:
hxxps://www.sportitalia.com/it-int/playerpage/57564
Code:
hxxps://superyacht.tv/en/superyacht-tv-en
 

streamwatcher2013

Well-known member
Oct 24, 2013
925
406
63
USA
For all you need. Enjoy it!

LSP XML:
<item>
<title>Sport Italian</title>
<inputstream>$doregex[getUrl]</inputstream>
<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.sportitalia.com/it-int/playerpage/57564','accept':'*/*'}
  stream=requests.post('https://www.sportitalia.com/api/v2/content/57564/access',headers=headers,cookies=Cookie_Jar).json()['data']['stream']
  return '%s|user-agent=ipad&origin=https://www.sportitalia.com&referer=https://www.sportitalia.com/'%stream
]]></expres>
<page></page>
</regex>
<thumbnail>https://www.sportitalia.com/image/original/5cd4216c00ce0.png</thumbnail>
</item>

<item>
<title>Super Yacht TV</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  link=re.findall('Clappr.Player[\w\W]*?source(?:\s*|):(?:\s*|)[\'"]([^\'"]+)',page_data)[0];html=re.findall('(.*?)/token/',link)[0]
  data=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://superyacht.tv/en/superyacht-tv-en','accept':'*/*'}).text
  if '5000000' in data:
    return html+re.findall('5000000.+\n(.*)',data)[0]+'|user-agent=ipad&origin=https://superyacht.tv&referer=https://superyacht.tv/'
  elif '2500000' in data:
    return html+re.findall('2500000.+\n(.*)',data)[0]+'|user-agent=ipad&origin=https://superyacht.tv&referer=https://superyacht.tv/'
  else:
    return html+re.findall('1500000.+\n(.*)',data)[0]+'|user-agent=ipad&origin=https://superyacht.tv&referer=https://superyacht.tv/'
]]></expres>
<page>https://superyacht.tv/en/superyacht-tv-en</page>
<referer>https://superyacht.tv/</referer>
</regex>
<thumbnail>https://superyacht.tv/media/cache/header_main_logo/bundles/app/img/logo.png</thumbnail>
</item>

<item>
<title>SportTV 1</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  link=re.findall('player\s*by.+?src=[\'"]([^\'"]+)',page_data)[0]
  data=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://sportzonline.to/channels/pt/sporttv1.php','accept':'*/*'}).text
  return re.findall('Clappr.Player[\w\W]*?source(?:\s*|):(?:\s*|)[\'"]([^\'"]+)',data)[0]+'|user-agent=ipad&referer='+link
]]></expres>
<page>https://sportzonline.to/channels/pt/sporttv1.php</page>
</regex>
<thumbnail>https://prolive.tv/assets/uploads/channel-149.jpg</thumbnail>
</item>

<item>
<title>http://sportzonline.to/prog.txt</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR dodgerblue][makelist.param1] ET [COLOR gold][makelist.param2][/COLOR]</title>
  <inputstream>$doregex[getUrl]</inputstream>
  <thumbnail></thumbnail>
  <fanart></fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,datetime
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  today=datetime.datetime.now().strftime('%A');today=today.upper()
  tomorrow=datetime.datetime.now()+datetime.timedelta(days=1);tomorrow=tomorrow.strftime('%A').upper()
  aftertomorrow=datetime.datetime.now()+datetime.timedelta(days=2);aftertomorrow=aftertomorrow.strftime('%A').upper()
  if '%s'%today not in page_data:
    list=re.findall('%s(?s)(.*?)%s'%(tomorrow,aftertomorrow),page_data)[0]
    return re.findall('(\d+:\d+).+?(\w.+?)\s*\|.+?(htt[^\n]+)',list)
  elif '%s'%tomorrow in page_data:
    list=re.findall('%s(?s)(.*?)%s'%(today,tomorrow),page_data)[0]
    return re.findall('(\d+:\d+).+?(\w.+?)\s*\|.+?(htt[^\n]+)',list)
  elif '%s'%tomorrow not in page_data:
    list=re.findall('%s(?s)(.*)'%today,page_data)[0]
    return re.findall('(\d+:\d+).+?(\w.+?)\s*\|.+?(htt[^\n]+)',list)
]]></expres>
<page>http://sportzonline.to/prog.txt</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('player\s*by.+?src=[\'"]([^\'"]+)',page_data)[0];ref=re.findall('(.+?)embed',url)[0];ori=ref[:-1]
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'https://v6.sportzonline.to/','accept':'*/*'}).text
  return re.findall('Clappr.Player[\w\W]*?source(?:\s*|):(?:\s*|)[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&origin=%s&referer=%s'%(ori,ref)
]]></expres>
<page>[makelist.param3]</page>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
215
65
28
The .json is dynamic and I can't see where/how to capture it. Thanks, m5
LSP XML:
https://embed-channel.stream//stream/uk_skysport_f1.php#channelstream.me

<item>
<title>telerium.digital</title>
<fanart></fanart>
<thumbnail></thumbnail>
<link>https://e1.espncdn.shop$doregex[m5]|User-Agent=Mozilla/5.0&amp;Referer=https://telerium.digital/embed/46569.html</link>
<regex>
<name>m5</name>
<expres>$pyFunction:'$doregex[m4]'.replace('\\','')</expres>
<page></page>
<referer>https://telerium.digital/embed/46569.html</referer>
</regex>
<regex>
<name>m4</name>
<expres>"tokenurl":"([^"]+)</expres>
<page>https://telerium.digital/streams/46569/1619041980000.json</page>
<referer>https://telerium.digital/embed/46569.html</referer>
</regex>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
925
406
63
USA
@m5Germany

The epoch time 1619041980000 is the local current time when the link is playing in the json link. You need to use module time or datetime in python to call it.

LSP XML:
<item>
<title>Sky Sport F1</title>
<link>$doregex[makelist]</link>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,time,json,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  now=int((int(time.time()) + 86400) * 1000)    #  capture epoch time 1619041980000 for json link
  link=re.findall('iframe.+?src=[\'"](.+?telerium[^\'"]+)',page_data)[0]    #  capture https://telerium.digital/embed/46569.html
  headers={'user-agent':'Mozilla/5.0','referer':link}
  netloc=link[:-17]     #  re.findall('(.+?)/embed',link)[0]    #  capture the origin url https://telerium.digital
  jsurl=link.replace('/embed','/streams').replace('.html','/')+'%s.json'%now    #  https://telerium.digital/streams/46569/1619041980000.json
  r=requests.get(jsurl,headers=headers).json()
  stream=r.get('url')    # get url link in json 
  if r.get('tokenurl'):      # get tokenurl in json 
    stream += requests.get(netloc+r.get('tokenurl'),headers=headers).json()[10][::-1]   #reverse the string on line 10th
  stream='https:'+stream if stream.startswith('//') else stream     #  playable stream
  return stream+'|{0}'.format(urllib.urlencode(headers))
]]></expres>
<page>https://embed-channel.stream//stream/uk_skysport_f1.php</page>
</regex>
<thumbnail>https://1.bp.blogspot.com/-nKEfeY-j50g/XrqC68G4fMI/AAAAAAAAC1w/gqKydF3a-J4b_3xmPELKFa5A21eQwXkTQCLcBGAsYHQ/s640/Sky%2BSports%2BF1%2BHD.jpg</thumbnail>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
925
406
63
USA
I don't think you can view json source with the browser which cause by the epoch time value must be at the time you view it. You will get the 403 error. You have to run the code and view the source in the log file. You don't have to use json just text to see the result like below:

Source:
{"domains":"Y2hhbm5lbHN0cmVhbS5jbHViLGVtYmVkLWNoYW5uZWwuc3RyZWFt","watermark":"//rolo.nocdnrlly.xyz/tele.png","url":"//e1.espncdn.shop/ingest05/46569.m3u8?sf=eGtxdHBKZkp3cA==","tokenurl":"/ingest05/46569.m3u8?sf=eGtxdHBKZkp3cA==&token=xr-kiT3-1AJaED46gaa7fg&expires=1619023058&rnd=46569"}
LSP XML:
<item>
<title>Sky Sport F1</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,time,json,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  now=int((int(time.time()) + 86400) * 1000)    #  capture epoch time 1619041980000 for json link
  link=re.findall('iframe.+?src=[\'"](.+?telerium[^\'"]+)',page_data)[0]    #  capture https://telerium.digital/embed/46569.html
  headers={'user-agent':'Mozilla/5.0','referer':link}
  netloc=link[:-17]     #  re.findall('(.+?)/embed',link)[0]    #  capture the origin url https://telerium.digital
  jsurl=link.replace('/embed','/streams').replace('.html','/')+'%s.json'%now    #  https://telerium.digital/streams/46569/1619041980000.json
  r=requests.get(jsurl,headers=headers).text.replace('\\','')
  return r
]]></expres>
<page>https://embed-channel.stream//stream/uk_skysport_f1.php</page>
</regex>
<thumbnail>https://1.bp.blogspot.com/-nKEfeY-j50g/XrqC68G4fMI/AAAAAAAAC1w/gqKydF3a-J4b_3xmPELKFa5A21eQwXkTQCLcBGAsYHQ/s640/Sky%2BSports%2BF1%2BHD.jpg</thumbnail>
</item>
 
  • Like
Reactions: m5Germany

undpnd tqucbo

Member
Jan 25, 2021
71
0
6
I need help one more site & tk!
Code:
hxxps://novini.bg/tv/703
 

m5Germany

Active member
Mar 20, 2014
215
65
28
LSP3 XML:
<item>
<title>https://novini.bg/tv/703</title>
<fanart>https://img2.novini.bg/uploads/live_stream_pics/0/big/703.jpg</fanart>
<thumbnail>https://img2.novini.bg/uploads/live_stream_pics/0/big/703.jpg</thumbnail>
<link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Referer=https://novini.bg/tv/703</link>
<regex>
<name>m5</name>
<expres>703.*\n.*?file:\s*'([^']+)</expres>
<page>$doregex[m4]</page>
<referer>https://novini.bg/tv/703</referer>
</regex>
<regex>
<name>m4</name>
<expres>"embedUrl":\s*"([^"]+)</expres>
<page>https://novini.bg/tv/703</page>
<referer>https://novini.bg/</referer>
</regex>
</item>
 
  • Like
Reactions: undpnd tqucbo

streamwatcher2013

Well-known member
Oct 24, 2013
925
406
63
USA
Another option

LSP XML:
<item>
<title>Sprotal</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data, Cookie_Jar,m):#streamwatcher2013
  link=re.findall('var\s*player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',page_data)[0]
  return urllib.urlopen(link).geturl()+'|user-agent=ipad&referer=https://novini.bg/tv/703'
]]></expres>
<page>https://novini.bg/tv/703</page>
</regex>
</item>
 
  • Like
Reactions: undpnd tqucbo

kavan

Member
Aug 14, 2016
71
5
8
Hello
Please is it possible to have a makelist for this page
Code:
https://www.gemonline.tv/en-US/Categories/Index?categoryId=1234568
Thank you in advance!
 

kavan

Member
Aug 14, 2016
71
5
8
can anyone help me with this :(
For Kodi 18
Makelist for
Code:
https://www.gemonline.tv/en-US/Categories/Index?categoryId=1234568
or

Regex for
Code:
https://www.gemonline.tv/en-US/Play/StartWatching/Shooter/Episode-14/1234826/1251542
 

undpnd tqucbo

Member
Jan 25, 2021
71
0
6
Hello.I need need to help some sites & tk!
Code:
hxxps://www.myvideo.ge/tv/tv25
Code:
hxxps://www.mjunoon.tv/tv-one-live
 

streamwatcher2013

Well-known member
Oct 24, 2013
925
406
63
USA
Try this. The other was offline

LSP XML:
<item>
<title>https://www.myvideo.ge/tv/tv25</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.post('https://api.myvideo.ge/api/v1/auth/token',headers={'user-agent':'Mozilla/5.0','origin':'https://tv.myvideo.ge','referer':'https://tv.myvideo.ge/'},data={'client_id':'7','grant_type':'client_implicit'}).text
  toktype,authID=re.findall('"token_type":"([^"]+).+?"access_token":"([^"]+)',source)[0]
  jdata=requests.get('https://api.myvideo.ge/api/v1/channel/chunk/tv25',headers={'user-agent':'Mozilla/5.0','origin':'https://tv.myvideo.ge','referer':'https://tv.myvideo.ge/','authorization':'%s %s'%(toktype,authID)}).text.replace('\\','')
  return re.findall('"file":"(http://[^"]+)',jdata)[0]+'|user-agent=ipad&origin=https://tv.myvideo.ge&referer=https://tv.myvideo.ge/'
]]></expres>
<page></page>
</regex>
</item>
 

tungbeng95

Member
Oct 25, 2018
379
12
18
Can help me this site.
Code:
https://adictosalatele.com/fox-action-en-vivo-online-gratis/
 

streamwatcher2013

Well-known member
Oct 24, 2013
925
406
63
USA
It's wigistream on the following urls

LSP XML:
1.  https://adictosalatele.com/fox-action-en-vivo-online-gratis/

2.  https://adictosalatele.com/TV/latinos/foxaction/

3.  https://wigistream.to/embed/xxxxxx

4.  m3u8 playable stream
 

tungbeng95

Member
Oct 25, 2018
379
12
18
@streamwatcher2013 I'm noob when write code,here:
Code:
<item>
<title>Fox Action</title>
<link>$doregex[get-url]|User-Agent=iPad</link>
<regex>
<name>get-url</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re,jsunpack
  e = re.findall('(eval\(function[^\n]+)',page_data)[0]
  p = jsunpack.unpack(e).replace('\\','')
  u = re.findall('''source:\s*['"]([^'"]+)''',p)[0]
  return u
]]></expres>
<page>https://wigistream.to/embed/4612rwe</page>
<referer>https://wigistream.to/embed/4612rwe</referer>
</regex>
</item>
But no longer working.Can you fix help me?Tks.
 

rominhos

New member
Jan 13, 2014
5
0
1
Hello,
Need help please
thanks

<item>
<title>AGENDA </title>

<link>$doregex[makelist3]</link>
<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
<title>[COLOR orange][makelist3.param1][/COLOR] [COLOR yellow][makelist3.param2][/COLOR][COLOR skyblue][makelist3.param3] [makelist3.param4][/COLOR] [makelist3.param6] [COLOR lightslategray][makelist3.param5][/COLOR]</title>
<link>https://daddylive.co/index.php?canal=[makelist3.param5]|user-agent=ipad</link>
<thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[<h3><strong>(.*?)<|h4>.*?">(.*?)<|([0-9]{0,2}:[0-9]+)\s(.*?)<|\/stream\-(.*?)\.php.*?ff0000.*?>(.*?)<]]></expres>
<page>https://daddylive.co/</page>
</regex>
<thumbnail></thumbnail>
</item>
 

m5Germany

Active member
Mar 20, 2014
215
65
28
Here's 1 way:
Info:
<expres><![CDATA[<h3><strong>(.*?)<|h4>.*?">([^<]+)(?s).*?(?:<p>|<p><hr>)(\d.{4})\s(.+?[^\s]+)\s<.*?f="([^"]+).*?r">([^<]+)<]]></expres>
 

streamwatcher2013

Well-known member
Oct 24, 2013
925
406
63
USA
@rominhos

It should be completed like the below code to catch all the events and it's streaming server:

LSP XML:
<item>
<title>AGENDA</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,datetime
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  today=datetime.datetime.now().strftime('%A %d');today=today
  tomorrow=datetime.datetime.now()+datetime.timedelta(days=1);tomorrow=tomorrow.strftime('%A %d')
  aftertomorrow=datetime.datetime.now()+datetime.timedelta(days=2);aftertomorrow=aftertomorrow.strftime('%A %d')
  if '%s'%today not in page_data:
    list=re.findall('%s(?s)(.*?)%s'%(tomorrow,aftertomorrow),page_data)[0]
    return re.findall('<h4>.+?">([^<]+)</span>(?s)(.*?)<div\s*class="alert',list)
  elif '%s'%tomorrow in page_data:
    list=re.findall('%s(?s)(.*?)%s'%(today,tomorrow),page_data)[0]
    return re.findall('<h4>.+?">([^<]+)</span>(?s)(.*?)<div\s*class="alert',list)
  elif '%s'%tomorrow not in page_data:
    list=re.findall('%s(?s)(.*?)alt="Daddylive'%today,page_data)[0]
    return re.findall('<h4>.+?">([^<]+)</span>(?s)(.*?)<div\s*class="alert',list)
]]></expres>
<page>https://daddylive.co/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
   <title>[COLOR gold][makelist2.param1][/COLOR]</title>
   <link>$doregex[makelist3]</link>
   <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[(\d+:[^<]+)(?s)(.*?)<(?:hr|/p)]]></expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
   <title>[COLOR gold][makelist3.param2][/COLOR]</title>
   <link>$doregex[getUrl]</link>
   <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[href="([^"]+).+?>([^\(<]+)]]></expres>
<page>[makelist2.param2]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  ref='[makelist3.param1]';url=ref.replace('stream/','embed/').replace('channels/','embed/')
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':ref,'accept':'*/*'}).text.replace('\\','')
  link=re.findall('src="(.+?wigis[^"]+)',source)[0]
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':url,'accept':'*/*'}).text.replace('\\','')
  return re.findall('Clappr.Player[\w\W]*?source(?:\s*|):(?:\s*|)[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&origin=https://wigistream.to&refererhttps://wigistream.to/'
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: JonnyB

rominhos

New member
Jan 13, 2014
5
0
1
 

m5Germany

Active member
Mar 20, 2014
215
65
28
Re-wrote it this way.
LSP XML:
<item>
<title>AGENDA daddylive.club</title>
<fanart>https://ohcbrands.com/wp-content/uploads/2018/05/black-background.jpg</fanart>
<thumbnail>https://i.imgur.com/8EL6mr3.png</thumbnail>
<link>$doregex[makelist3]</link>
<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
<title>[COLOR orange][makelist3.param1][makelist3.param2][/COLOR][COLOR yellow][makelist3.param3] [/COLOR][COLOR skyblue][makelist3.param4] [makelist3.param6][/COLOR]</title>
<link>$doregex[getUrl]|user-agent=ipad</link>
<fanart>https://ohcbrands.com/wp-content/uploads/2018/05/black-background.jpg</fanart>
<thumbnail>https://i.imgur.com/8EL6mr3.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[<strong>(?!C)([^<]+)|<h4>.*?>([^<]+)|<hr>(.{5})\s*(.*?[^<]+).*?f="([^"]+).*?er">.*?(\([^<]+)]]></expres>
<page>https://daddylive.co/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  url=re.findall('iframe\s*src="([^"]+)',page_data)[0];url='https:'+url if url.startswith('//') else url
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'https://daddylive.club/','accept':'*/*'}).text
  return re.findall('player[\w\W]*?source\s*:\s*"([^"]+)',source)[0]+'|user-agent=Mozilla/5.0&referer=https://wigistream.to/'
]]></expres>
<page>[makelist3.param5]</page>
<referer>https://daddylive.co/</referer>
</regex>
</item>
 
  • Like
Reactions: rominhos

AGAMEN0N

New member
Jul 4, 2019
13
2
3

streamwatcher2013

Well-known member
Oct 24, 2013
925
406
63
USA
Try this:

LSP XML:
<item>
<title>versaTV</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <inputstream>$doregex[getUrl]$$lic=https://licensing.bitmovin.com/licensing|origin=https://tv.vera.com.uy&amp;referer=https://tv.vera.com.uy/|R{SSM}|</inputstream>
  <info>[makelist.param3]</info>
  <thumbnail>https://veratvimgs.cdn.antel.net.uy/dynamic/content_images/[makelist.param2]/240/default.jpg</thumbnail>
  <fanart>https://veratvimgs.cdn.antel.net.uy/dynamic/package_images/101/default_source.jpg</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,json
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  s=requests.get('https://tv.vera.com.uy/canales/')
  gcookie=s.cookies['_veratv']
  jdata=requests.get('https://tv.vera.com.uy/inicio/get_channels/featured_position_views/1000/137/1',headers={'user-agent':'Mozilla/5.0','referer':'https://tv.vera.com.uy/canales/','X-Requested-With':'XMLHttpRequest','accept':'*/*'},cookies={'_veratv':gcookie}).json()
  data=[]
  for j in jdata:
    title=j['name']  #.get('name')
    cID=j['content_id']  #.get('content_id')
    desrc=j['description']  #.get('description')
    data.append((title,cID,desrc))
  return data
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://tv.vera.com.uy/canal/[makelist.param2]',headers={'user-agent':'Mozilla/5.0','referer':'https://tv.vera.com.uy/canales/','accept':'*/*'}).text
  link=re.findall('"ws_token":[\w\W]+?[\'"](http[^\'"]+)',source)[0]
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://tv.vera.com.uy/canales/','accept':'*/*'}).text
  return re.findall('"hls": "([^"]+)',source)[0]+'|user-agent=ipad&origin=https://tv.vera.com.uy&referer=https://tv.vera.com.uy/'
]]></expres>
<page></page>
</regex>
<thumbnail>https://sfu.org.uy/web2017/wp-content/uploads/2018/06/logo-vera-tv.png</thumbnail>
<fanart>https://veratvimgs.cdn.antel.net.uy/dynamic/package_images/101/default_source.jpg</fanart>
</item>
 
  • Like
Reactions: urualf and AGAMEN0N

cearuchos

New member
Oct 30, 2019
25
1
3
@streamwatcher2013, thanks for your great job having the LSP for Matrix. I was just wondering if you already have a solution for the f4mTester plugin. I mean, to be used on the link like below:
Code:
<link>plugin://plugin.video.f4mTester/?streamtype=TSDOWNLOADER&amp;name=XXXXX&amp;url=yyyyy</link>
or
Code:
<link>plugin://plugin.video.f4mTester/?streamtype=HLSRETRY&amp;name=XXXXX&amp;url=yyyyy</link>
or either to be used on the externallink as below:
Code:
<externallink>http://xxx.yyy/get.php?username=zzz&amp;password=ttt&amp;type=m3u&amp;output=hls$$HLSRETRY$$</externallink>
Also, I use to have "channels" on my XML like below:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<channels>
    <channels_info>
      <title>Channels Information</title>
      <genre></genre>
      <description>Playlist for LiveStremsPro</description>
      <thumbnail></thumbnail>
      <fanart></fanart>
      <date></date>
      <credits></credits>
    </channels_info>

    <channel>
        <name>Channel01 Name</name>
        <thumbnail></thumbnail>
        <info></info>
    
        <items>

            <item>
                  <title> Item01 - Chanel01 Title</title>
                <link>xxx</link>
                <thumbnail></thumbnail>
            </item>   

            <item>
                  <title> Item02 - Chanel01 Title</title>
                <link>xxx</link>
                <thumbnail></thumbnail>
            </item>   

        </items>
    </channel>

    <channel>
        <name>Channel02 Name</name>
        <thumbnail></thumbnail>
        <info></info>
    
        <items>

            <item>
                  <title> Item01 - Chanel02 Title</title>
                <link>xxx</link>
                <thumbnail></thumbnail>
            </item>   

            <item>
                  <title> Item02 - Chanel02 Title</title>
                <link>xxx</link>
                <thumbnail></thumbnail>
            </item>   

        </items>
    </channel>
</channels>
That helps to have more flexibility with Menus on the same list. Are you planning to reactivate the "channels" feature on LSP for Matrix?

Again, Thank you so much for a GREAT JOB!!!!!
 

cearuchos

New member
Oct 30, 2019
25
1
3
@streamwatcher2013 / @gujal , I tried the alpha 4 version, and the f4mTester option is not working. It shows the following message: "Add-on required: To use this feature, you must download an addon: f4mTester - Would you like to download this add-on? (yes/no)". I hit " yes, but nothing happens. Any direction on this matter?
 

gujal

Developer
Dec 26, 2013
533
292
63
f4mtester and f4mproxy have not been updated in a long time by Shani_08 and they are certainly not available for Matrix
LSP3-Alpha4 is meant to be compatible with Leia and Matrix, and if installed on Leia would work with f4mproxy/f4mtester
 
  • Like
Reactions: cearuchos

gujal

Developer
Dec 26, 2013
533
292
63
This is a Matrix only addon designed for ts playback
 
  • Like
Reactions: cearuchos

leobarros

New member
Jan 30, 2021
9
0
1
help on this site?
https ://topcanais.com/assistir-bbb-21-ao-vivo-online-24-horas/
 

m5Germany

Active member
Mar 20, 2014
215
65
28
Main Camera Only. Seems to be static m3u8. Pretty sure other cameras protected by site security.
LSP3 XML:
<item>
<title>Big Brother Brasil | main camera only</title>
<fanart>https://topcanais.com/wp-content/uploads/2021/01/bbb-21-sem-sombra.jpg</fanart>
<thumbnail>https://www.anf.org.br/wp-content/uploads/2020/02/rede-bbb.png</thumbnail>
<link>https://newedge.eu-central-1.edge.mycdn.live/live/bbb24hras/bbb24hras_2000/index.m3u8|User-Agent=Mozilla/5.0</link>
<referer>https://topcanais.com/</referer>
</item>
 

undpnd tqucbo

Member
Jan 25, 2021
71
0
6
Need help one more site & tk!
Code:
hxxps://cdn2.crichd.pro/embed2.php?id=sky1it&q=Sky%20Sport%20Football
 

m5Germany

Active member
Mar 20, 2014
215
65
28
Poor quality stream. Not always Live on site.
LSP3 XML:
<item>
<title>Sky Sport 1 Italia</title>
<fanart>https://i.ytimg.com/vi/9kLuSNaRsYc/maxresdefault.jpg</fanart>
<thumbnail>https://www.digital-news.it/files-admin/Simone/SKY_SportHD_RGB.jpg</thumbnail>
<link>$doregex[getUrl]|User-Agent=iPad&amp;Referer=https://pkcast123.me/</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):#Modified Gujal Code
  import re
  part1, par2, par3 = re.findall('return.+?"([^\]]+).+?\+\s*([^.]+).+?\+[^"]+"([^"]+)', page_data)[0]
  part2 = re.findall('var\s*{0}\s*=\s*\["([^]]+)'.format(par2), page_data)[0].replace('","','')[:-1]
  part3 = re.findall('id={0}>([^<]+)'.format(par3), page_data)[0]
  return part1[:-1].replace('","','').replace('\\','') + part2 + part3
]]></expres>
<page><![CDATA[https://pkcast123.me/embedcrichd.php?player=desktop&live=$doregex[m5]&vw=100%&vh=520]]></page>
<referer>https://pkcast123.me/</referer>
</regex>
<regex>
<name>m5</name>
<expres>fid="([^"]+)</expres>
<page><![CDATA[https://cdn2.crichd.pro/embed2.php?id=sky1it&q=Sky%20Sport%20Football]]></page>
<referer>https://cdn2.crichd.pro/</referer>
</regex>
</item>
 
  • Like
Reactions: undpnd tqucbo

tungbeng95

Member
Oct 25, 2018
379
12
18
I need to help.This channel working a few seconds & not work a later.Please help me to fix and tks
Code:
<item>
<title>Foot+</title>
<link>$doregex[getURL]</link>
<regex>
<name>getURL</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m, url='https://telerium.digital/embed/29389.html'):
  import requests, time, urllib
  headers = {'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3',
             'Referer': url}
  atime = '/{0}.json'.format(int((int(time.time()) + 86400) * 1000))
  eurl = url.replace('/embed/', '/streams/').replace('.html', atime)
  r = requests.get(eurl, headers=headers).json()
  strurl = r.get('url')
  if r.get('tokenurl'):
    strurl += requests.get('https://telerium.digital/' + r.get('tokenurl'), headers=headers).json()[10][::-1]
  strurl = strurl if strurl.startswith('http') else 'https:' + strurl
  return strurl + '|{0}'.format(urllib.urlencode(headers))
]]></expres>
<page></page>
</regex>
</item>
Source: https://channelstream.watch/foot_plus.php
 

tungbeng95

Member
Oct 25, 2018
379
12
18
I'm sorry.I post incorrect code.It must be:
Code:
<item>
<title>Canal+ Premier League</title>
<link>$doregex[getURL]</link>
<regex>
<name>getURL</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m, url='https://telerium.digital/embed/59098.html'):
  import requests, time, urllib
  headers = {'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3',
             'Referer': url}
  atime = '/{0}.json'.format(int((int(time.time()) + 86400) * 1000))
  eurl = url.replace('/embed/', '/streams/').replace('.html', atime)
  r = requests.get(eurl, headers=headers).json()
  strurl = r.get('url')
  if r.get('tokenurl'):
    strurl += requests.get('https://telerium.digital/' + r.get('tokenurl'), headers=headers).json()[10][::-1]
  strurl = strurl if strurl.startswith('http') else 'https:' + strurl
  return strurl + '|{0}'.format(urllib.urlencode(headers))
]]></expres>
<page></page>
</regex>
</item>
Source: https://channelstream.watch/canal_premier_league.php
 

undpnd tqucbo

Member
Jan 25, 2021
71
0
6
Can someone help me this site & tk!
Code:
hxxps://mhdtvworld.xyz/live/zee-tv-hd/
 

m5Germany

Active member
Mar 20, 2014
215
65
28
LSP3 XML:
<item>
<title>zeetvhd mhdtvworld.xyz</title>
<fanart>https://www.exchange4media.com/news-photo/1508122527_OJuLfs_zee.jpg</fanart>
<thumbnail>https://mhdtvworld.xyz/wp-content/uploads/2020/11/IMG_20201104_174936_007-1-2.png</thumbnail>
<link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Referer=https://saalamatv.fun/</link>
<regex>
<name>m5</name>
<expres>source:\s*'([^']+)</expres>
<page>https://saalamatv.fun/zee5/getplay.php?c=zeetvhd</page>
<referer>https://mhdtvworld.xyz/</referer>
</regex>
</item>
 
  • Like
Reactions: undpnd tqucbo
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5