LSP Regex & Makelist Discussion.

PinkWave

New member
Jan 24, 2021
22
2
3
Hi to everyone.
Someone can help me with this site?
hxxps://www.la7.it/dirette-tv
I tried with youtube-dl but it only retrieves a fake video

Tks.
 

Doom

Member
Sep 16, 2019
268
21
18
Can i get help playing this and thanks!
<script type="text/javascript" charset="utf-8" async="" src="https://ssl.p.jwpcdn.com/player/v/8.17.1/jwpsrv.js"></script>
<script src="https://content.jwplatform.com/libraries/KB5zFt7A.js"> </script>
<script charset="utf-8" src="https://ssl.p.jwpcdn.com/player/v/8.17.1/jwplayer.core.controls.js"></script>
<script charset="utf-8" src="/https://ssl.p.jwpcdn.com/player/v/8.17.1/provider.shaka.js"></script>

<script> jwplayer.key='XSuP4qMl+9tK17QNb+4+th2Pm9AWgMO/cYH8CI0HGGr7bdjo';
</script>
<div id="player"></div>
<script>
var playerInstance=jwplayer("player");
playerInstance.setup( {
playlist: [ {
title : "Tele Gratis",
description: "https://telegratis.org",
image: "https://style.shockvisual.net/wp-content/uploads/2020/03/Nick-Jr.jpg",
"sources": [ {
"default": false,
"file":'https://edge-live13-sl.cvattv.com.ar/live/c2live/Nick_Jr/SA_Live_dash_enc_2A/Nick_Jr.mpd',
"drm": {
"widevine": {
"url": "https://telegratis.org/key/key.php"
 

udomrat

New member
Nov 10, 2016
19
5
3
thailand
I have problem with LSP 3.0. how to
Code:
<regex>
<name>getname3</name>
<expres>$pyFunction:'[makelist.param6]'.replace("&amp;#8212;",'').replace("/span",'').replace('<','').replace('>','')</expres>
<page></page>
</regex>
 

JonnyB

New member
Oct 8, 2016
23
6
3
Hi,

See this post.

Code:
replace 

<expres>$pyFunction:'[makelist.param6]'.replace("&amp;#8212;",'').replace("/span",'').replace('<','').replace('>','')</expres>

to

<expres><![CDATA[$pyFunction:'[makelist.param6]'.replace("&amp;#8212;",'').replace("/span",'').replace('<','').replace('>','')]]></expres>
 
  • Like
Reactions: udomrat

Doom

Member
Sep 16, 2019
268
21
18
@gujal @streamwatcher2013 @m5Germany How can i make the items work in 19 getting error, in 18 they work and thanks
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<item>
<title>xxx</title>
<thumbnail>https://</thumbnail>
<fanart>https://</fanart>
<link>https://</link>
</item>
<item>
<title>xxx</title>
<thumbnail>https://</thumbnail>
<fanart>https://</fanart>
<link>https://</link>
<referer></referer>
</item>
<item>
<title>xxx</title>
<thumbnail>https://</thumbnail>
<fanart>https://</fanart>
<link>https://</link>
<referer></referer>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
913
398
63
USA
@Doom The XML missing <items> .... </item>. With simple code you don't need the <page> and with regex code you may or may not need <referer>. The basic structure of the below XML file.

LSP Alpha 3:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<items>

<item>
<title>Simple code</title>
<thumbnail>https://</thumbnail>
<fanart>https://</fanart>
<link>https://</link>
</item>

<item>
<title>Regex code</title>
<link>$doregex[xxx]</link>
<regex>
<name>xxx</name>
<expres><![CDATA[xxxxxxxxxxxxxxxxxxx]]></expres>
<page>https://</page>
<referer>https://</referer>
</regex>
<thumbnail>https://</thumbnail>
<fanart>https://</fanart>
</item>

<item>
<title>Python code</title>
<link>$doregex[xxx]</link>
<regex>
<name>xxx</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('xxxxxxxxxxxxxxxxxxxx',page_data)[0]
]]></expres>
<page>https://</page>
<referer>https://</referer>
</regex>
<thumbnail>https://</thumbnail>
<fanart>https://</fanart>
</item>

</items>
 
  • Like
Reactions: Doom

Doom

Member
Sep 16, 2019
268
21
18

streamwatcher2013

Well-known member
Oct 24, 2013
913
398
63
USA
Try this:

LSP:
<item>
<title>http://www.televall.online/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param3]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>http://mitv.televall.online/[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[<a\s*href="([^"]+).+?(gallery[^"]+).+?text:\s*.([^\'"]+)]]></expres>
<page>http://mitv.televall.online/eldos.php</page>
<referer>http://www.televall.online/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  if 'm3u8' in page_data:
    return re.findall('id=.player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',page_data)[0]+'|user-agent=ipad&origin=http://mitv.televall.online&referer=http://mitv.televall.online/'
  else:
    link='http://mitv.televall.online/mitv/vip/cablehd.php?id='+re.findall('fid=.(\d+)',page_data)[0]+'_'
    source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'http://mitv.televall.online/[makelist.param1]','accept':'*/*'}).text
    return re.findall('id=.player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&origin=http://mitv.televall.online&referer=http://mitv.televall.online/'
]]></expres>
<page>http://mitv.televall.online/[makelist.param1]</page>
<referer>http://mitv.televall.online/eldos.php</referer>
</regex>
</item>
 
  • Like
Reactions: Doom

streamwatcher2013

Well-known member
Oct 24, 2013
913
398
63
USA
Both are similar together. Replace the premium for kids on <page>

LSP XML:
<item>
<title>https://www.televall.online/kids.html</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param3]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://www.televall.online/[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('<a\s*href="([^"]+).+?(gallery[^"]+).+?text:\s*.([^\'"]+)',re.findall('id="imObjectGallery_499_1852">(?s)(.*?)</div><div\s*id',page_data)[0])
]]></expres>
<page>https://www.televall.online/kids.html</page>
<referer>http://www.televall.online/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  if 'm3u8' in page_data:
    return re.findall('id=.player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',page_data)[0]+'|user-agent=ipad&origin=http://mitv.televall.online&referer=http://mitv.televall.online/'
  else:
    link='http://mitv.televall.online/mitv/vip/cablehd.php?id='+re.findall('fid=.(\d+)',page_data)[0]+'_'
    source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'http://mitv.televall.online/[makelist.param1]','accept':'*/*'}).text
    return re.findall('id=.player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&origin=http://mitv.televall.online&referer=http://mitv.televall.online/'
]]></expres>
<page>http://mitv.televall.online/[makelist.param1]</page>
<referer>https://www.televall.online/[makelist.param1]</referer>
</regex>
</item>
 
  • Like
Reactions: Doom

undpnd tqucbo

Member
Jan 25, 2021
55
0
6
I need help the regex..plz & tk!
Code:
hxxps://www.rtp.pt/play/direto/rtp1
 

streamwatcher2013

Well-known member
Oct 24, 2013
913
398
63
USA
I tested on RT3. When the RT1 is back online try this:

LSP XML:
Kodi 18

<item>
<title>RT1</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data,Cookie_Jar,m):
  stream=''.join(eval(re.findall('file:.+?\[([^\]]+)',page_data)[0]))
  return urllib.unquote(stream)+'|user-agent=ipad&origin=https://www.rtp.pt&referer=https://www.rtp.pt/'
]]></expres>
<page>https://www.rtp.pt/play/direto/rtp1</page>
<referer>https://www.rtp.pt/</referer>
</regex>
</item>

[U]Kodi 19[/U]

<item>
<title>RT1</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,urllib.parse
def GetLSProData(page_data,Cookie_Jar,m):
  stream=''.join(eval(re.findall('file:.+?\[([^\]]+)',page_data)[0]))
  return urllib.parse.unquote(stream)+'|user-agent=ipad&origin=https://www.rtp.pt&referer=https://www.rtp.pt/'
]]></expres>
<page>https://www.rtp.pt/play/direto/rtp1</page>
<referer>https://www.rtp.pt/</referer>
</regex>
</item>
 
  • Like
Reactions: undpnd tqucbo

JonnyB

New member
Oct 8, 2016
23
6
3
Hi,

One way to work with kodi 18 and 19:

Code:
<item>
<title>RTP 1</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  stream=''.join(eval(re.findall('file:.+?\[([^\]]+)',page_data)[0]))
  try:
    import urllib.parse
    final = urllib.parse.unquote(stream)
  except:
    import urllib
    final = urllib.unquote(stream)
  return final+'|user-agent=ipad&origin=https://www.rtp.pt&referer=https://www.rtp.pt/'
]]></expres>
<page>https://www.rtp.pt/play/direto/rtp1</page>
<referer>https://www.rtp.pt/</referer>
</regex>
</item>
 
  • Like
Reactions: undpnd tqucbo

tungbeng95

Member
Oct 25, 2018
366
11
18
Can someone write code this site to working on LSP3?
Code:
https://www.tv8.com.tr/canli-yayin
 

streamwatcher2013

Well-known member
Oct 24, 2013
913
398
63
USA
It's in the source:

LSP XML:
var config = {videoid: "TV8Live", analytics: "UA-50139784-1",  live: true, type: "hls", file: "https://tv8-tb-live.ercdn.net/tv8-geo/playlist.m3u8?st=t-xin0UGlxPjgZ4HFp3NlA&e=1617555381", width: "100%", height: "100%", onaction: onaction,"comscore": "27900309","comscore_meta":{"c2":27900309,"ns_st_stc":29,"ns_st_pr":"canliyayin","ns_st_tpr":"1","ns_st_ep":"canliyayin","ns_st_ci":2,"ns_st_tep":2,"ns_st_tdt":"","ns_st_tm":"","ns_st_cl":0,"ns_st_li":1,"ns_st_cmt":"","ns_st_cdm":"","ns_st_proid":"kwp-tr"},
 
  • Like
Reactions: tungbeng95

BymemoLee

Member
Apr 30, 2018
90
18
8
XML:
<item>
<title>TV8 | Türkiye</title>
<link>$doregex[getURL]</link>
<regex>
<name>getURL</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests
  headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0',
             'Referer': 'https://www.tv8.com.tr/canli-yayin'}
  id = re.findall('id="main-content"[\w\W]+?channel:\s*"([^"]+)', page_data)[0]
  url = 'https://static.personamedia.tv/player/config/{0}.json'.format(id)
  spage = requests.get(url, headers=headers).json()
  return spage.get('servers').get('hlsmanifest')
]]></expres>
<page>https://www.tv8.com.tr/canli-yayin</page>
</regex>
</item>
 

skyhigh

Member
Jan 11, 2015
60
0
6
How does this playlist get written for youtube now, all this does is just say updating playlist and never produces a list to play in Matrix?

<item>
<title>[COLOR lime]Popular Music[COLOR dodgerblue] Videos[/COLOR]</title>
<utube>PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI</utube>
<thumbnail></thumbnail>
<fanart></fanart>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
913
398
63
USA
@skyhigh Try this with either <utube> or <urlsolve>:

LSP XML:
<item>
<title>[COLOR lime]Popular Music[COLOR dodgerblue] Videos[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold]&#9818; [makelist.param2] [COLOR dodgerblue]([makelist.param3])[/COLOR]</title>
  <utube>[makelist.param1]</utube>
  <info>Duration [makelist.param3]</info>
  <thumbnail>https://i.ytimg.com/vi/[makelist.param1]/hqdefault.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  try:
    import urllib
    page_data=urllib.urlopen('https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI').read().decode('utf-8')
  except:
    import urllib.request
    page_data=urllib.request.urlopen('https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI').read().decode('utf-8')
  jdata=re.findall('"sectionListRenderer":{"contents"(?s)(.*?)id="container"',page_data)[0].replace('\\u0026','&')
  YTid=re.findall('"playlistVideoRenderer":{"videoId":"([^"]+)',jdata)
  title=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?"accessibilityData":{"label":"(.+?)(?:\s*by|"})',jdata)
  duration=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?},"simpleText":"([^"]+)',jdata)
  return list(zip(YTid,title,duration))
]]></expres>
<page></page>
</regex>
</item>


<item>
<title>[COLOR lime]Popular Music[COLOR dodgerblue] Videos[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold]&#9818; [makelist.param2] [COLOR dodgerblue]([makelist.param3])[/COLOR]</title>
  <urlsolve>https://www.youtube.com/watch?v=[makelist.param1]</urlsolve>
  <info>Duration [makelist.param3]</info>
  <thumbnail>https://i.ytimg.com/vi/[makelist.param1]/hqdefault.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  try:
    import urllib
    page_data=urllib.urlopen('https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI').read().decode('utf-8')
  except:
    import urllib.request
    page_data=urllib.request.urlopen('https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI').read().decode('utf-8')
  jdata=re.findall('"sectionListRenderer":{"contents"(?s)(.*?)id="container"',page_data)[0].replace('\\u0026','&')
  YTid=re.findall('"playlistVideoRenderer":{"videoId":"([^"]+)',jdata)
  title=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?"accessibilityData":{"label":"(.+?)(?:\s*by|"})',jdata)
  duration=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?},"simpleText":"([^"]+)',jdata)
  return list(zip(YTid,title,duration))
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: skyhigh and udomrat

Doom

Member
Sep 16, 2019
268
21
18
Can i get help for this & thanks!
hxxps://photocall.tv/fE6b/mt?ch=divinity
 

m5Germany

Active member
Mar 20, 2014
204
58
28
LSP3 XML:
<item>
<title>photocall.tv/fE6b | divinity</title>
<link>$doregex[m5]|User-Agent=iPad</link>
<fanart></fanart>
<thumbnail></thumbnail>
<regex>
<name>m5</name>
<expres>source:\s*'([^']+)</expres>
<page>https://photocall.tv/v8Th/mt?ch=divinity</page>
<referer>https://photocall.tv/</referer>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
204
58
28
LSP3 XML:
<item>
<title>photocall.tv | divinity</title>
<link>$doregex[m5]|User-Agent=iPad</link>
<fanart></fanart>
<thumbnail></thumbnail>
<regex>
<name>m5</name>
<expres>source:\s*'([^']+)</expres>
<page>https://photocall.tv/$doregex[m4]</page>
<referer>https://photocall.tv/</referer>
</regex>
<regex>
<name>m4</name>
<expres>href="([^"]+ch=divinity)</expres>
<page>https://photocall.tv/</page>
</regex>
</item>
 

Doom

Member
Sep 16, 2019
268
21
18
Can i get help for kodi 19, getting a error here and thanks
InvalidTag in line
Tag ']+).*\n.*?-\s([^<]+)]]' is an invalid name.
<expres>href='([^']+)[\w\W]*?g'>\s*([^<]+).*\n.*?-\s([^<]+)]]></expres>
hxxps://xmllint.com/

<item>
<title>[COLOR gold]NBA EVENTS[/COLOR]</title>
<fanart>https://cutewallpaper.org/21/nba-background/NBA-Wallpapers-HD-PixelsTalkNet.jpg</fanart>
<thumbnail>https://pbs.twimg.com/media/EPT4YQBXkAAAr18.jpg</thumbnail>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR blue]([makelist.param3])[/COLOR][COLOR gold] [makelist.param2][/COLOR]</title>
<fanart></fanart>
<thumbnail></thumbnail>
<link>$doregex[m5]</link>
]]></listrepeat>
<expres>href='([^']+)[\w\W]*?g'>\s*([^<]+).*\n.*?-\s([^<]+)]]></expres>
<page>http://crackstreams.is/nbastreams/</page>
</regex>
<regex>
<name>m5</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
source=requests.get('[makelist.param1]video.php',headers={'user-agent':'Mozilla/5.0','referer':'http://crackstreams.is/nbastreams/','accept':'*/*'}).content
if 'window.atob' in source:
return re.findall('window.atob.[\'"]([^\'"]+)',source)[0].decode('base64')+'|user-agent=ipad&origin=http://crackstreams.is&referer=http://crackstreams.is/nbastreams/video.php'
else:
return re.findall('id="play[\w\W]+?(?:source|src|file):\s*[\'"](htt[^\'"]+)',source)[0]+'|user-agent=ipad&origin=http://crackstreams.is&referer=http://crackstreams.is/nbastreams/video.php'
]]></expres>
<page></page>
</regex>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
913
398
63
USA
Try this:

LSP XML:
<item>
<title>[COLOR gold]NBA EVENTS[/COLOR]</title>
<fanart>[URL]https://cutewallpaper.org/21/nba-background/NBA-Wallpapers-HD-PixelsTalkNet.jpg[/URL]</fanart>
<thumbnail>[URL]https://pbs.twimg.com/media/EPT4YQBXkAAAr18.jpg[/URL]</thumbnail>
<link>$doregex[makelist]</link> 
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR blue]([makelist.param3])[/COLOR][COLOR gold] [makelist.param2][/COLOR]</title> 
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[a href='([^']+)[\w\W]*?g'>\s*([^<]+).*\n.*?-\s([^<]+)]]></expres>
<page>http://crackstreams.is/nba-streams/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,base64
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  if 'window.atob' in page_data:
    decode=re.findall('window.atob.[\'"]([^\'"]+)',page_data)[0]
    return base64.b64decode(decode).decode('utf-8')+'|user-agent=ipad&origin=http://crackstreams.is&referer=http://crackstreams.is/nba-streams/'
  else:
    return re.findall('id="play[\w\W]+?(?:source|src|file):\s*[\'"](htt[^\'"]+)',page_data)[0]+'|user-agent=ipad&origin=http://crackstreams.is&referer=http://crackstreams.is/nba-streams/'
]]></expres>
<page>[makelist.param1]video.php</page>
<referer>[makelist.param1]</referer>
</regex>
<thumbnail>http://crackstreams.is/icons/ncaab2.png</thumbnail>
<fanart>https://cloudfront-us-east-1.images.arcpublishing.com/advancelocal/TGQQE6QEVVG7TAY2PWNEQLT7LE.jpg</fanart>
</item>
 
  • Like
Reactions: Doom

leobarros

New member
Jan 30, 2021
9
0
1
como faco esse site roda no kodi

 

tungbeng95

Member
Oct 25, 2018
366
11
18
Sorry but I need full code for site:
Code:
https://www.tv8.com.tr/canli-yayin
Because I'm have to learning at school,I don't have much time to write code.Tks.
 

m5Germany

Active member
Mar 20, 2014
204
58
28
When you have a moment would you check these? (Kodi 19.*)
LSP3 XML:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<items>

<item>
<title>[COLOR=FF00FFFF]External Link [COLOR=blue]•[/COLOR][COLOR=FF00CCFF] Test[/COLOR][/COLOR]</title>
<link>http://ignorame</link>
<externallink>https://pastebin.com/raw/zpTXY6i7</externallink>
</item>
 
<item>
<title>[COLOR=FF00FFFF]Main Menu [COLOR=blue]•[/COLOR][COLOR=FF00CCFF] ustv247.tv[/COLOR][/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR=FF00FFFF][makelist.param2] [COLOR=blue]•[/COLOR][COLOR=FF00CCFF] ustv247.tv[/COLOR][/COLOR]</title>
<fanart></fanart>
<thumbnail></thumbnail>
<link>$doregex[getUrl]|User-Agent=iPad&amp;Referer=https://ustv247.tv/</link> 
]]></listrepeat>
<expres><![CDATA[<li><strong><a href="([^"]+)">((?!A&amp;E|BET|ESPN|Discovery Channel|Fox Sports 1|Golf Channel|HBO|History|Investigation Discovery|National Geographic|NBC|Showtime|Tennis Channel|The Weather Channel|TNT|Turner Classic Movies|Univision|USA Network|VH1)[^<]+)]]></expres>
<!--- <li><strong><a href="([^"]+)">([^<]+) --->
<page>https://ustv247.tv/</page>
</regex>
<regex>
<name>getUrl</name>
<expres>(.*)</expres>
<page>https://ustv247.tv/data.php</page>
<referer>https://ustv247.tv/</referer>
<post>stream:$doregex[data]</post>
</regex>
<regex>
<name>data</name>
<expres>data:.*?'([^']+)</expres>
<page>https://ustv247.tv/$doregex[clap]</page>
<referer>https://ustv247.tv/science/</referer>
</regex>
<regex>
<name>clap</name>
<expres>iframe\s*src='([^']+)</expres>
<page>[makelist.param1]</page>
<referer>https://ustv247.tv/</referer>
</regex>
</item>
 
</items>
Thanks, m5.
 
  • Like
Reactions: altug

gujal

Developer
Dec 26, 2013
526
290
63
@m5Germany
Externallink works correctly, but the particular pastebin code you are using has a XML syntax error. The last line on the pastebin file should be </items> and not <items>
The ustv247 code has an issue in the way coded. The one below works correctly
LSP XML:
<item>
<title>[COLOR=FF00FFFF]Main Menu [COLOR=blue]•[/COLOR][COLOR=FF00CCFF] ustv247.tv[/COLOR][/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR=FF00FFFF][makelist.param2] [COLOR=blue]•[/COLOR][COLOR=FF00CCFF] ustv247.tv[/COLOR][/COLOR]</title>
<fanart></fanart>
<thumbnail></thumbnail>
<link>$doregex[getUrl]|User-Agent=iPad&amp;Referer=https://ustv247.tv/</link>
]]></listrepeat>
<expres><![CDATA[<li><strong><a href="([^"]+)">([^<]+)]]></expres>
<page>https://ustv247.tv/</page>
</regex>
<regex>
<name>getUrl</name>
<expres>(.*)</expres>
<page>https://ustv247.tv/data.php</page>
<referer>https://ustv247.tv/</referer>
<post>stream:$doregex[data]</post>
</regex>
<regex>
<name>data</name>
<expres>iframe.+?stream=([^']+)</expres>
<page>[makelist.param1]</page>
<referer>https://ustv247.tv/</referer>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
204
58
28
Took a different approach. It takes approx. 45 sec. for the Menu to display - maybe loading thumbnails?
Everything works as expected but the .replace function. Any thoughts?
LSP3 XML:
<expres><![CDATA[$pyFunction:'[makelist.param2]'.replace('&amp;','&')]]></expres>

<item>
<title>[COLOR=FF00FFFF]Main Menu [COLOR=blue]•[/COLOR][COLOR=FF00CCFF] ustv247.tv[/COLOR][/COLOR]</title>
<fanart>https://img.tfc.tv/xcms/categoryimages/6006/TFCtv-VIDEOPLAYERTHUMBNAIL-692x390.jpg</fanart>
<thumbnail>https://img.tfc.tv/xcms/categoryimages/6006/TFCtv-SHOWLOGO-289x200.png</thumbnail>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR=FF00FFFF]$doregex[m5] [COLOR=blue]•[/COLOR][COLOR=FF00CCFF] ustv247.tv[/COLOR][/COLOR]</title>
<fanart>https://img.tfc.tv/xcms/categoryimages/6006/TFCtv-VIDEOPLAYERTHUMBNAIL-692x390.jpg</fanart>
<thumbnail>$doregex[m4]</thumbnail>
<link>$doregex[getUrl]|User-Agent=iPad&amp;Referer=https://ustv247.tv/</link>
]]></listrepeat>
<expres><![CDATA[(?:<li><a\s*href="|<li><strong><a\s*href=")([^"]+)(?:">|"><strong>)(?:|<strong>)(?!The Weather Channel)([^<]+)]]></expres>
<page>https://ustv247.tv/</page>
</regex>

<regex>
<name>m5</name>
<expres><![CDATA[$pyFunction:'[makelist.param2]'.replace('&amp;','&')]]></expres>
<page></page>
</regex>

<regex>
<name>getUrl</name>
<expres>(.*)</expres>
<page>https://ustv247.tv/data.php</page>
<referer>https://ustv247.tv/</referer>
<post>stream:$doregex[data]</post>
</regex>
<regex>
<name>data</name>
<expres>iframe.+?stream=([^']+)</expres>
<page>[makelist.param1]</page>
<referer>https://ustv247.tv/</referer>
</regex>
<regex>
<name>m4</name>
<expres>$pyFunction:'$doregex[m3]'.replace('\\','')</expres>
<page></page>
</regex>
<regex>
<name>m3</name>
<expres>thumbnail_url":"([^"]+)</expres>
<page>https://ustv247.tv/wp-json/oembed/1.0/embed?url=[makelist.param1]</page>
<referer>https://ustv247.tv/</referer>
</regex>
</item>
Thanks, m5
 

gujal

Developer
Dec 26, 2013
526
290
63
It will take long as for each thumbnail you are opening the channel embed page and then scraping it for the thumbnail. Not a good idea as you have 75 channels, you will be opening 75 pages and then scrape them to get the thumbnail

And the replace is not needed in this instance, that is why i removed it in the code I posted above
 

undpnd tqucbo

Member
Jan 25, 2021
55
0
6
Can some help me the site & tk!
Code:
hxxp://wizhdsports.net/free7.php
 

m5Germany

Active member
Mar 20, 2014
204
58
28
LSP3 XML:
<item>
<title>wizhdsports.net/free7.php</title>
<link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Referer=https://www.wmsxx.com/</link>
<regex>
<name>m5</name>
<expres>source:\s*"([^"]+)</expres>
<page>$doregex[m4]</page>
<referer>http://wizhdsports.net/</referer>
</regex>
<regex>
<name>m4</name>
<expres>iframe\s*src="([^"]+)</expres>
<page>http://wizhdsports.net/free7.php</page>
<referer>http://wizhdsports.net/</referer>
</regex>
</item>
 
  • Like
Reactions: undpnd tqucbo

vbprofi

Member
Feb 9, 2016
77
3
8
hello dear friends,
I need help for this stream. have someone an idea whats wrong here? I hope someone have an solution for this problem.
Code:
<item>
<title>test besta</title>
<link>$doregex[m3u]</link>

<regex>
<name>m3u</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
 stream = re.findall('\<source src="(.*?bestazindi.*?)"', page_data)[0]
 return stream
]]></expres>
<page>http://www.besta2.com/NewsClips/MedyaHaber</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>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
204
58
28
id="content_video2" has a higher quality stream at 1080p. Coded for that.
LSP3 XML:
<item>
<title>1080p: test besta | id="content_video2"</title>
<link>$doregex[m3u]</link>
<regex>
<name>m3u</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
 stream = re.findall('ce src="(.*?Medya/[^"]+)', page_data)[0]
 return stream
]]></expres>
<page>http://www.besta2.com/NewsClips/MedyaHaber</page>
</regex>
</item>
 
  • Like
Reactions: udomrat and vbprofi
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5