LSP Regex & Makelist Discussion.

jamesb16

New member
Oct 11, 2019
3
0
1
hi cn anyone help me with hxxp://ustvgo.tv/nbc-sports/
 

gujal

Developer
Dec 26, 2013
291
90
28
Enjoy!

Code:
<item>
<title>NBC SN</title>
<link>$doregex[getpage]|User-Agent=iPad&amp;Referer=http://ustvgo.tv/</link>
<regex>
<name>getpage</name>
<expres>file:\s*'([^']+)</expres>
<page>$doregex[createsession]</page>
</regex>
<regex>
<name>createsession</name>
<expres>$pyFunction:sucuri_cookie.createCookie('http://ustvgo.tv/nbc-sports/',Cookie_Jar,'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1')</expres>
<page></page>
</regex>
</item>
 

m5Germany

New member
Mar 20, 2014
4
0
1
Tried to modify gujal's code to make a makelist. This is what I have:

Code:
<item>
<title>[COLOR=FF00FFFF]USA |[COLOR=FF00FF00] ustvgo.tv MakeList[/COLOR] | TEST</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR=FF00FFFF]USA |[COLOR=FF00FF00] [makelist.param2][/COLOR] | TEST</title>
<link>$doregex[get-m3u8]|User-Agent=Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1;Referer=http://ustvgo.tv/</link>
<thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[pis-title-link".*?["']([^"']+).*?\>([^\<]+)]]></expres>
<page>http://ustvgo.tv/</page>
</regex>
<regex>
<name>createsession</name>
<expres>$pyFunction:sucuri_cookie.createCookie('[makelist.param1]',Cookie_Jar,'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1')</expres>
<page></page>
</regex>
<regex>
<name>get-m3u8</name>
<expres>file: ['"]([^'"]+)</expres>
<page>$doregex[createsession]</page>
<referer>http://ustvgo.tv/</referer>
</regex>
</item>
Can someone point in in the right direction from where I went wrong?

Thanks,

m5
 

m5Germany

New member
Mar 20, 2014
4
0
1
<code>
<title>[COLOR=FF00FFFF]USA |[COLOR=FF00FF00] [makelist.param2][/COLOR] | TEST</title>
<link>$doregex[get-m3u8]|User-Agent=Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1;Referer=http://ustvgo.tv/</link>
<thumbnail></thumbnail>

Noticed:
<title>[COLOR=FF00FFFF]USA |[COLOR=FF00FF00] [makelist.param2][/COLOR] | TEST</title>
<link>$doregex[get-m3u8]|User-Agent=Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1&amp; Referer=http://ustvgo.tv/</link>
<thumbnail></thumbnail>
 

adrianhn

New member
Mar 20, 2014
16
4
3
Regex with multilist for ustvgo

Code:
<item>
<title>•  [B]USTV GO[/B]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param2] </title>
<link>$doregex[getpage]|User-Agent=iPad&amp;Referer=http://ustvgo.tv/</link>
]]></listrepeat>
<expres><![CDATA[title-link"\s*href="(.*?)".*?>(.*?)<]]></expres>
<page>$doregex[createsessionhome]</page>
</regex>
<regex>
<name>createsessionhome</name>
<expres>$pyFunction:sucuri_cookie.createCookie('http://ustvgo.tv/',Cookie_Jar,'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1')</expres>
<page></page>
</regex>
<regex>
<name>getpage</name>
<expres>file:\s*'([^']+)</expres>
<page>$doregex[createsession]</page>
</regex>
<regex>
<name>createsession</name>
<expres>$pyFunction:sucuri_cookie.createCookie('[makelist.param1]',Cookie_Jar,'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1')</expres>
<page></page>
</regex>
</item>
 

omoobatv

New member
Feb 15, 2018
21
0
1
@gujal , just to say a big thank you for keeping LSP alive, really grateful Bro, I just noticed that the following call has stopped working in the latest update. can you please see to it in your next update.

Code:
plugin://plugin.video.live.streamspro/?playitem=$doregex[getitem]
Regards
O
 

mustafa19554

Guest
May 17, 2016
11
0
1
Hi guys, This regex has a bug, but I can not find two Channels ATV and channel D İst o.k but I can not catch others. Can anyone help me where I make mistakes.
Thanks in advance..



<item>
<title>[COLOR peru]https://tvboxtr.com[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR gold][makelist.param2][/COLOR]</title>
<link>$doregex[c]</link>
<thumbnail>[makelist.param3]</thumbnail><fanart>http://www.arturogoga.com/wp-content/uploads/2009/12/image4.png</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
import re
import requests
url = 'https://tvboxtr.com/'
html = requests.get(url, headers={'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0', 'Referer': 'https://tvboxtr.com/'}, verify=False).text
return re.findall('(?s)href="(.{0,100})" title="(.*?)".*?src="(.*?)"', html)
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>c</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
import re
import requests
url = '[makelist.param1]'
html = requests.get(url, headers={'User-Agent': 'Mozilla/5.0', 'Referer': '[makelist.param1]'}, verify=False).text
return re.findall('(http.{0,150}m3u8)', html)[0]
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
</item>
 

gujal

Developer
Dec 26, 2013
291
90
28
Enjoy!



Code:
<item>
<title>[COLOR peru]https://tvboxtr.com[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR gold][makelist.param2][/COLOR]</title>
<link>$doregex[get-url]</link>
<thumbnail>[makelist.param3]</thumbnail>
<fanart>http://www.arturogoga.com/wp-content/uploads/2009/12/image4.png</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re
  import requests
  url = 'https://tvboxtr.com/page/{}/'
  headers={'User-Agent': 'Mozilla/5.0', 'Referer': 'https://tvboxtr.com/'}
  channels = []
  for i in range(1,6):
    html = requests.get(url.format(i), headers=headers).text
    channels += re.findall(r'<li><a\s*href="([^"]+)"\s*title="([^"]+)"><img\s*src="([^"]+)',html)
  return sorted(channels)
]]></expres>
<page></page>
</regex>
<regex>
<name>get-url</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re
  import requests
  headers={'User-Agent': 'Mozilla/5.0', 'Referer': 'https://tvboxtr.com/'}
  if '<iframe' in page_data:
    surl = re.findall('<iframe\s*src="([^"]+)', page_data)[0].replace('&amp;','&')
    surl = 'https:' + surl if surl.startswith('//') else surl
    spage = requests.get(surl, headers=headers).text
    strurl = re.findall('file:\s*"([^"]+)', spage)[0]
  else:
    strurl = re.findall('<source\s*src="([^"]+)', page_data)[0]
    surl = headers['Referer']
  strurl = 'https:' + strurl if strurl.startswith('//') else strurl
  return strurl + '|Referer={}&User-Agent=iPad'.format(surl)
]]></expres>
<page>[makelist.param1]</page>
<referer>https://tvboxtr.com/</referer>
</regex>
</item>
 

kavan

Member
Aug 14, 2016
46
2
8
Can Someone make a regex / makelist for this site?
Code:
 https://www.manototv.com
Thanks in advance
 
Apr 6, 2018
6
0
1
Something to change? it doesn't work for me anymore

<item>
<title>MX | FOX SPORTS 3</title>
<link>$doregex|User-Agent=iPad</link> <thumbnail></thumbnail> <fanart></fanart> <regex> <name>url</name> <expres>id=.player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)</expres> <page>http://www.tv-onlinehd.com/vip/tvonlinehd.php?id=15</page> <referer>http://www.tv-onlinehd.com/</referer> </regex> </item>
 
Apr 6, 2018
6
0
1
Code:
<item>
<title>MX | FOX SPORTS 3</title>
<link>$doregex|User-Agent=iPad</link>
<thumbnail></thumbnail>
<fanart></fanart>
<regex>
<name>url</name>
<expres>id=.player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)</expres>
<page>http://www.tv-onlinehd.com/vip/tvonlinehd.php?id=15</page>
<referer>http://www.tv-onlinehd.com/</referer>
</regex>
</item>
 

joeguardian

New member
Jun 6, 2017
1
0
1

gujal

Developer
Dec 26, 2013
291
90
28
Enjoy!

Code:
<item>
  <title>Race TV Wapa (mipsplayer)</title>
  <link>$doregex[url]|User-Agent=iPad</link>
  <thumbnail></thumbnail>
  <regex>
    <name>url</name>
    <expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests, time
  channel, e = re.findall(r'''bigvideo".+?channel='([^']+)',\s*e='([^']+)''', page_data)[0]
  eurl = 'https://www.mipsplayer.net/hembedplayer/{0}/{1}1/830/500'.format(channel,e)
  headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1',
             'Referer': 'https://www.mipsplayer.net/'}
  epage = requests.get(eurl, headers=headers, cookies=Cookie_Jar).text
  lburl, lbparam = re.findall(r'\{url:\s*"([^"]+)"\s*\+\s*([^,]+)', epage)[0]
  lburl += lbparam
  ct = int(time.time()*1000)
  surl = 'https://www.mipsplayer.net/resources/scripts/newmips.js?id={}'.format(ct)
  spage = requests.get(surl, headers=headers, cookies=Cookie_Jar).text
  mn = int(re.findall('enableVideo.+?,\s*(\d+)', spage, re.DOTALL)[0])
  ea = requests.get(lburl, headers=headers, cookies=Cookie_Jar).text.split('=')[-1]
  p1, p2, p3 = re.findall('var\s*hlsUrl\s*=\s*"([^"]+)".+?"([^"]+).+?"([^"]+)', epage, re.DOTALL)[0]
  url = p1 + ea + p2 + p3[:mn] + p3[mn+1:]
  return url
    ]]></expres>
    <page>https://www.mipsplayer.net/RaceTVWapa</page>
    <cookieJar></cookieJar>
  </regex>
</item>
 
  • Like
Reactions: joeguardian

redota

New member
Jul 3, 2016
13
0
1
hello please need help with this ,thanks guys

hxxps://televisionlibre.net/canal/net-en-vivo/
 

gujal

Developer
Dec 26, 2013
291
90
28
Enjoy!

Code:
<item>
<title>Television Libre</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param3]</title>
<link>$doregex[getpage]|User-Agent=iPad&amp;Referer=http://ustvgo.tv/</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)card-wrapper">\s*<a href="(?:\.\.)?(/[^"]+).+?src="([^"]+).+?title="([^"]+)]]></expres>
<page>https://televisionlibre.net/es/</page>
</regex>
<regex>
<name>getpage</name>
<expres>file:\s*['"]([^'""]+)</expres>
<page>https://televisionlibre.net$doregex[embed]</page>
<referer>https://televisionlibre.net/</referer>
</regex>
<regex>
<name>embed</name>
<expres><![CDATA[<iframe.+?src="(?:\.\./\.\.)?(/[^"]+)]]></expres>
<page>https://televisionlibre.net[makelist.param1]</page>
<referer>https://televisionlibre.net/</referer>
</regex>
</item>
 
  • Like
Reactions: redota

dobbelina

Developer
Aug 11, 2013
20
2
3
streamwatcher2013 posted code for hXXps://acestreamsearch.com/en/ in an
earlier post in this thread on pastebin, that has now been removed,
could somebody please re-post?
Url is now hXXps://acestreamsearch.net/en/

Suggest you stop using pastebin, and instead post your code in nested
code/spoiler tags, it's neat and i wouldn't have to make this request
for that lost info.
Example:
My Solution:
bla bla  <tag>More bla</tag>
some more code
And yet even more....
 
  • Like
Reactions: udomrat

boomski

New member
Mar 23, 2017
19
1
3
Can anyone make a regex for this site?
Code:
https://acb-tv.com/
 

gujal

Developer
Dec 26, 2013
291
90
28
Enjoy!

Code:
<item>
  <title>ACB TV</title>
  <urlsolve>https://ok.ru/videoembed/589897427</urlsolve>
  <thumbnail>https://acb-tv.com/local/templates/acb/img/logo.png</thumbnail>
</item>
 
  • Like
Reactions: boomski

bernardo

New member
Jun 9, 2016
2
0
1
hello, team some guru please can help me we this page, hXXps://60fps.live/ and make a regex for Kodi, thank.
 

Download

New member
Jun 16, 2016
8
1
3
Japan
Code:
" https://dbs168.blackboxsys.net/ "
<item>
<title>DBS168</title>
<link>https://vodcache.worldwidetv.club/4mdnv8aldjfh72cc/liveorigin/rs-arena1_480/chunks.m3u8?wmsAuthSign=$doregex[get-m3u8]|User-Agent=Mozilla/5.0
(Windows NT 6.2; WOW64; rv:39.0) Gecko/20100101 Firefox/39</link>
<regex>
<name>get-wmsAuthSign</name>
<expres>file:.":"(.*?)"</expres>
<page>https://embed.blackboxsys.net/player_p2p.php?channel=rs-arena3&api_key=4mdnv8aldjfh72cc</page>
<agent>Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36</agent>
<referer>https://dbs168.blackboxsys.net/</referer>
<cookieJar></cookieJar>
</regex>
<thumbnail></thumbnail>
</item>
Hi, is it possible to have a regex for this website? I tried it and it didn't work.
 

gujal

Developer
Dec 26, 2013
291
90
28
Does it work for you on the website? I get an error 403 on the website for the actual video url, so can't test. The following code extracts the correct url( same as the website). It will work for you if it work on the website for you
XML:
<item>
<title>Arena 3 DBS168</title>
<link>$doregex[getUrl]|Referer=https://embed.blackboxsys.net/</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, json, pyaes, jscrypto, hashlib
  e = re.findall("crypt_url\s*=\s*'([^']+)",page_data)[0]
  e = json.loads(e)
  iv = e['iv'].decode('hex')
  salt = e['salt'].decode('hex')
  data = e['ciphertext'].decode('base64')
  secret = jscrypto.PBKDF2("ThisKeyIsForEmbedding!", salt, 999, 32, hashlib.sha512)
  decryptor = pyaes.new(secret, pyaes.MODE_CBC, IV=iv)
  surl = decryptor.decrypt(data).strip()
  return surl[:-ord(surl[-1])]
]]></expres>
<page>https://embed.blackboxsys.net/player_p2p.php?channel=rs-arena3&amp;api_key=4mdnv8aldjfh72cc</page>
<referer>https://dbs168.blackboxsys.net/</referer>
</regex>
<thumbnail></thumbnail>
</item>
 
  • Like
Reactions: altug and Download

Doom

New member
Sep 16, 2019
7
0
1
Hi fellas can it be possible to get all the season for this show... whit a few server options & thanks!
hxxps://streamdreams.org/shows/zzz-mom/
 
Thread starter Similar threads Forum Replies Date
J Scraper Development 0
D Apple TV 4 44
O Addon Requests 5