LSP Regex & Makelist Discussion.

Doom

Member
Sep 16, 2019
329
21
18
Could i get help here... the other's code none are working anymore and thanks!

hxxps://topmoviesonline.org/release/2020/
 

Nature

New member
Dec 12, 2018
19
0
1

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Is it the way you looking for? If you want to use m3u8 then use the 2nd return in getUrl. The 1st return is mp4

LSP XML code:
<item>
<title>https://www.pokemon.com/us/pokedex/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2] ([makelist.param4])</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  ID=re.findall('xpid:"([^"]+)',page_data)[0]
  headers={'user-agent':'Mozilla/5.0','host':'www.pokemon.com','referer':'https://www.pokemon.com/us/pokedex/','accept':'*/*'}
  source=requests.get('https://www.pokemon.com/us/api/pokedex/kalos',headers=headers,cookies={'X-NewRelic-ID':ID}).content.replace('amp;','').replace('&#39;','\'').replace('\\','')
  return re.findall('"detailPageURL":"([^"]+).+?"name":"([^"]+).+?ThumbnailImage":"([^"]+).+?type":."([^"]+)',source)
]]></expres>
<page>https://www.pokemon.com/us/pokedex/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[makelist2.param1] ([makelist2.param3])</title>
  <link>$doregex[makelist3]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)<h5 class="title">([^<]+).+?href="([^"]+).+?title="([^"]+)]]></expres>
<page>https://www.pokemon.com[makelist.param1]</page>
<referer>https://www.pokemon.com/us/pokedex/</referer>
</regex>
<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
  <title>[makelist3.param3] ([makelist3.param4])</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist3.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://www.pokemon.com[makelist2.param2]',headers={'user-agent':'Mozilla/5.0','host':'www.pokemon.com','referer':'https://www.pokemon.com[makelist.param1]','accept':'*/*'},cookies=Cookie_Jar).content
  elink='https://www.pokemon.com'+re.findall('all-episodes-block">[\w\W]*?href="([^"]+)',source)[0]
  source=requests.get(elink,headers={'user-agent':'Mozilla/5.0','host':'www.pokemon.com','referer':'https://www.pokemon.com[makelist2.param2]','accept':'*/*'},cookies=Cookie_Jar).content
  return re.findall('(?s)class="match".+?href="([^"]+).+?img\s*src="(.*?)"\s*alt="([^"]+).+?"season-info">([^<]+)',source)
]]></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://www.pokemon.com[makelist3.param1]',headers={'user-agent':'Mozilla/5.0','host':'www.pokemon.com','referer':'https://www.pokemon.com[makelist2.param2]','accept':'*/*'},cookies=Cookie_Jar).content
  link='https://production-ps.lvp.llnw.net/r/PlaylistService/media/'+re.findall('data-video-id="([^"]+)',source)[0]+'/getMobilePlaylistByMediaId'
  headers={'user-agent':'Mozilla/5.0','host':'production-ps.lvp.llnw.net','origin':'https://www.pokemon.com','referer':'https://www.pokemon.com[makelist3.param1]','accept':'*/*'}
  source=requests.get(link,headers=headers,cookies=Cookie_Jar).content.replace('amp;','').replace('&#39;','\'').replace('\\','')
  return re.findall('"MobileH264","mobileUrl":"([^"]+)',source)[0]
#  return re.findall('"HttpLiveStreaming","mobileUrl":"([^"]+)',source)[0]+'|user-agent=ipad&referer=https://www.pokemon.com[makelist3.param1]'
]]></expres>
<page></page>
</regex>
<thumbnail>https://assets.pokemon.com/assets//cms2/img/misc/_tiles/generic/pokemon-169.jpg</thumbnail>
<item>
 
  • Like
Reactions: Nature

gujal

Developer
Dec 26, 2013
609
333
63
Enjoy!

LSP XML:
<item>
  <title>TVI24</title>
  <inputstream>$doregex[getUrl]?wmsAuthSign=$doregex[auth]|User-Agent=iPad</inputstream>
  <thumbnail></thumbnail>
  <regex>
    <name>getUrl</name>
    <expres>videoUrl":"([^"]+)</expres>
    <page>https://tvi24.iol.pt/direto</page>
  </regex>
  <regex>
    <name>auth</name>
    <expres>([^\n]+)</expres>
    <page>https://services.iol.pt/matrix?userId=</page>
    <origin>https://tvi24.iol.pt</origin>
  </regex>
</item>
 

Nature

New member
Dec 12, 2018
19
0
1
Try this:
<item>
<title>TVi24</title>
<link>$doregex[play]/live_edge/tvi24_abr/edge_servers/tvi24-480p/chunks.m3u8|User-Agent=Mozilla/5.0&amp;Referer=https://tvi24.iol.pt/direto</link>
<thumbnail>https://cdn.iol.pt/img/logostvi/branco/tvi24.png</thumbnail>
<fanart>https://www.iol.pt/multimedia/oratvi/multimedia/imagem/id/58a7505a0cf2b10cb6612521/</fanart>
<regex>
<name>play</name>
<expres><![CDATA["videoUrl":"([^"']+)/live_edge]]></expres>
<page>https://tvi24.iol.pt/direto</page>
</regex>
</item>
 

tpoupi

Member
Jan 2, 2016
41
0
6
hi guru, this regex has stopped, please need help.
Thx

<item>
<title>Regex-youtube nollywood</title>
<link>ignorme</link>
<jsonrpc>plugin://plugin.video.youtube/kodion/search/query/?q=NollywoodPicturestv</jsonrpc>
<thumbnail>hxxp://nollywood.company/wp-content/uploads/2013/03/nollywoodcompany_aboutus_logo-300x99.png</thumbnail>
</item>
 

BymemoLee

Member
Apr 30, 2018
93
20
8
Hello, any help on Regex for the following channel?
hxxps://www.trtizle.com/diziler/tutunamayanlar
 

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Try this:

LSP XML code:
<item>
<title>Tutunamayanlar Bölüm</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold]Tutunamayanlar [makelist.param2]. Bölüm[/COLOR]</title>
  <link>[makelist.param4]</link>
  <thumbnail>[makelist.param3]</thumbnail>
  <fanart>https://cdn-i.pr.trt.com.tr/trttv/w1780/h940/q70/6910571.jpeg</fanart>
  <info>[makelist.param1]</info>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  jdata=re.findall('"videos(?s)(.*)',page_data)[0].replace('\\','')
  return re.findall('description":"([^"]+).+?episode":(\d+).+?mainImageUrl":"([^"]+).+?"mp4Url":"([^"]+)',jdata)
]]></expres>
<page>https://www.trtizle.com/api/video?path=/diziler/tutunamayanlar/tutunamayanlar-1-bolum-130659</page>
<referer>https://www.trtizle.com/diziler/tutunamayanlar</referer>
</regex>
<thumbnail>https://www.trtizle.com/images/icons/apple-touch-icon.png</thumbnail>
<fanart>https://cdn-i.pr.trt.com.tr/trttv/w1780/h940/q70/6910571.jpeg</fanart>
</item>
 
  • Like
Reactions: altug

tungbeng95

Member
Oct 25, 2018
392
16
18
Can you help me this regex: hxxps://play.sbs.co.kr/onair/pc/index.html?id=S01
 

peterpan

Active member
Jul 7, 2013
117
84
28
Code:
<item>
<title>KR</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres>captionurl":"([^"]+)</expres>
<page>http://apis.sbs.co.kr/play-api/1.0/onair/channel/S01?v_type=2&amp;platform=pcweb&amp;protocol=hls&amp;ssl=N&amp;jwt-token=&amp;rnd=304</page>
</regex>
</item>
 
  • Like
Reactions: tungbeng95

tungbeng95

Member
Oct 25, 2018
392
16
18
Sorry because I post help so much.But I need help this regex:
hxxp://playvod.imbc.com/Vod/PopupPlayer?channelId=13&isPopup=Y&isAd=N&mediaType=ONAIR&isAutoPlay=Y
 

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Try this. Finally got it without blank screen. I beleive the 1st one is MBC Live Channel

LSP XML code:
<item>
<title>MBC | http://m.imbc.com</title>
<inputstream>$doregex[getUrl]|referer=http://m.imbc.com/</inputstream>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('http://mediaapi.imbc.com/Player/OnAirURLUtil?type=m',headers={'user-agent':'ipad','origin':'http://m.imbc.com','host':'mediaapi.imbc.com','referer':'http://m.imbc.com/onair','accept':'*/*'},cookies=Cookie_Jar).content
  return re.findall('"MediaURL":"([^"]+)',source)[0]
]]></expres>
<page></page>
</regex>
<thumbnail>https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcR9BrpFRvQJVr3xmbJdMMsxuLFjWHQlFs8QguBZuV-TfWG5yt-e&usqp=CAU</thumbnail>
</item>


<item>
<title>MBC Drama | http://playvod.imbc.com</title>
<inputstream>$doregex[getUrl]|referer=http://playvod.imbc.com/</inputstream>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  headers={'user-agent':'ipad','origin':'http://playvod.imbc.com','host':'mediaapi.imbc.com','referer':'http://playvod.imbc.com/Vod/PopupPlayer?channelId=13&isPopup=Y&isAd=N&mediaType=ONAIR&isAutoPlay=Y','accept':'*/*'}
  source=requests.get('http://mediaapi.imbc.com/Player/OnAirPlusURLUtil?type=m&ch=1',headers=headers,cookies=Cookie_Jar).content
  return re.findall('"MediaURL":"([^"]+)',source)[0]
]]></expres>
<page></page>
</regex>
<thumbnail>https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcR9BrpFRvQJVr3xmbJdMMsxuLFjWHQlFs8QguBZuV-TfWG5yt-e&usqp=CAU</thumbnail>
</item>
 
  • Like
Reactions: tungbeng95

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Try this. It's simple regex

LSP XML Code:
<item>
<title>SBS MTV</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres>"mediaurl"."([^"]+)</expres>
<page>http://apis.sbs.co.kr/play-api/1.0/onair/channel/S09?v_type=2&amp;platform=pcweb&amp;protocol=hls&amp;ssl=N&amp;jwt-token=</page>
</regex>
<thumbnail>https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQdc-l2LBFoZmF1X2u2VBYZqlYlWLesbvMcc-AE65v9Ajoy9vs6&s</thumbnail>
</item>
 
  • Like
Reactions: tungbeng95

m5Germany

Active member
Mar 20, 2014
350
115
43
Can't figure out where the CODE fails - not good w/ Python. When time permits would someone Please revise CODE?
LSP XML:
<item>
<title>[COLOR=FF00FFFF]USA |[COLOR=FF00FF00] FOX News - 123tvnow.com ([COLOR=blue]SD[/COLOR])[/COLOR] | BROKEN[/COLOR]</title>
<thumbnail>https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSYtLiKblNpO4MOUpSV8b62NhMqiA3bFSz0MFCbkMLnyy96I-Ie&s</thumbnail>
<fanart>https://www.broadcastingcable.com/.image/t_share/MTU4Nzc0ODkxMjQ2NTI4MTYx/fox-news-channel-logo.jpg</fanart>
<link>$doregex[getUrl]|Referer=http://123tvnow.com/</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests, json, pyaes, jscrypto, hashlib
  e, key, part2 = re.findall("video-id.+?function.+?var.+?'([^']+)','([^']+).+?='([^']+)",page_data)[0]
  e = json.loads(e.decode('base64'))
  iv = e['iv'].decode('hex')
  salt = e['salt'].decode('hex')
  data = e['ciphertext'].decode('base64')
  secret = jscrypto.PBKDF2(key, salt, e['iterations'], 32, hashlib.sha512)
  decryptor = pyaes.new(secret, pyaes.MODE_CBC, IV=iv)
  surl = decryptor.decrypt(data).strip() + part2
  headers = {'User-Agent': 'Mozilla/5.0',
        'Origin': 'http://123tvnow.com',
        'Referer': 'http://123tvnow.com/'}
  url = requests.get(surl, headers=headers).json()[0]['file']
  return url
]]></expres>
<page>http://123tvnow.com/watch/fox-news-hd/</page>
</regex>
</item>
As Always, Thanks.
m5
 

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Try this:

LSP XML code:
<item>
<title>[COLOR=FF00FFFF]USA |[COLOR=FF00FF00] FOX News - 123tvnow.com ([COLOR=blue]SD[/COLOR])[/COLOR] | BROKEN[/COLOR]</title>
<thumbnail>https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSYtLiKblNpO4MOUpSV8b62NhMqiA3bFSz0MFCbkMLnyy96I-Ie&s</thumbnail>
<fanart>https://www.broadcastingcable.com/.image/t_share/MTU4Nzc0ODkxMjQ2NTI4MTYx/fox-news-channel-logo.jpg</fanart>
<link>$doregex[getUrl]|Referer=http://123tvnow.com/</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  import re,requests,json,pyaes,jscrypto,hashlib
  list=re.findall('class="content">(?s)(.*?)123tv-player',page_data)[0]
  e,gkeys,part2=re.findall('(?s)\#video-id.+?\[([^\]]+).+?var(?s)(.*?)var.+?\+[\'"](\?1[^\'"]+)',list)[0]
  skey=','.join(re.findall('=\[(.*?)\]',gkeys));nkeys=re.findall('(\d+)',skey)
  for k in nkeys:
     skey=skey.replace(k,(chr(int(k)))).replace(',','')
  e=''.join(eval(e));e=json.loads(e.decode('base64'))
  iv=e['iv'].decode('hex');salt=e['salt'].decode('hex');data=e['ciphertext'].decode('base64')
  secret=jscrypto.PBKDF2(skey[::-1],salt,e['iterations'],32,hashlib.sha512)
  decryptor=pyaes.new(secret,pyaes.MODE_CBC,IV=iv)
  surl = decryptor.decrypt(data).strip() + part2
  headers = {'User-Agent': 'Mozilla/5.0',
        'Origin': 'http://123tvnow.com',
        'Referer': 'http://123tvnow.com/'}
  url = requests.get(surl, headers=headers).content
  return re.findall('"file":"(h[^"]+)',url)[0]
]]></expres>
<page>http://123tvnow.com/watch/fox-news-hd/</page>
</regex>
</item>
 

upd8t3r

Member
Oct 16, 2019
46
18
8
I get an error trying to play it, the log says UnicodeDecodeError: 'utf8' codec can't decode byte 0x99 in position 0: invalid start byte. I don't think I'm doing anything wrong, but at the same time, the source code doesn't look like it has changed. I understand some of it but not enough to know where the issue is causing the error.
 

altug

Member
Jul 7, 2016
70
2
8
for example https: //pastebin.com/raw / ...........
hello loud i need a regex code for pastbin.com can someone please help me
Thank you in advance
 

upd8t3r

Member
Oct 16, 2019
46
18
8
It's not the best way of doing it, but it seems like it should be working but isn't. It's capturing the link that it should but no matter what I've tried, it refuses to add the required headers like user-agent and referer. I think that's why it doesn't work, but it could always be something else I missed.

The 1st part of the link up to the ? is done by MD5 reversing each character, I couldn't find anything in python that did that so I just hard coded that part.




XML:
<item>
<title>[COLOR skyblue][B]ABC[/B][/COLOR]</title>
<link>https://peer5.ustv24h.live/$doregex[getChannelName]/myStream/playlist.m3u8?token=$doregex[getUrl]|User-Agent=ipad&amp;Referer=https://ustvgo.tv/player.php?stream=$doregex[getChannelName]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re,requests
  link='https://ustvgo.tv/player.php?stream=ABC'
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://ustvgo.tv/'}).content
  sid=re.findall('file:.+?([^\s\(]+)',source)[0]
  tok1,tok2=re.findall('%s[\w\W]*?for.+?return.+?\+(.*?)\[.+?\+.+?0x2.+?\].+?\'(.*?)\''%sid,source)[0]
  token=re.findall('var\s*%s.+?\[([^\]]+)'%tok1,source)[0];token=''.join(eval(token))
  atoken=re.findall('id=%s>(.*?)<'%tok2,source)[0]
  return '%s%s'%(token,atoken)
]]></expres>
<page>https://ustvgo.tv/player.php?stream=ABC</page>
<referer>https://ustvgo.tv/</referer>
</regex>
<regex>
<name>getChannelName</name>
<expres>iframe\s*src=.+?=([^']+)</expres>
<page>https://ustvgo.tv/abc-live-streaming-free/</page>
</regex>
<thumbnail>http://channelpear.com/images/media/2730.jpg</thumbnail>    
<fanart>http://channelpear.com/images/media/2730.jpg</fanart>
</item>
 

m5Germany

Active member
Mar 20, 2014
350
115
43
Here's what I have. May have to try to load it more than once as the server # (1-7+, yours #5) is not being captured. Maybe someone with more knowledge can capture the server.
LSP XML:
<item>
<title>[COLOR=FF00FFFF]USA |[COLOR=FF00FF00] ABC - ustvgo.tv ([COLOR=blue]SD[/COLOR])[/COLOR] | RegEx</title>
<link>https://peer5.ustv24h.live/$doregex[getChannelName]/myStream/playlist.m3u8?wmsAuthSign=$doregex[getWMSauth1]$doregex[getWMSauth2]|User-Agent=Mozilla/5.0&amp;Referer=https://ustvgo.tv/player.php?stream=$doregex[getChannelName]</link>
<thumbnail></thumbnail>
<fanart></fanart>
<regex>
<name>getWMSauth1</name>
<expres>$pyFunction:'$doregex[getRawWMSauth1]'.replace('"','').replace(',','')</expres>
<page></page>
</regex>
<regex>
<name>getRawWMSauth1</name>
<expres>$doregex[getPreWMSauth1].{4}([^\]]+)</expres>
<page>https://ustvgo.tv/player.php?stream=$doregex[getChannelName]</page>
</regex>
<regex>
<name>getPreWMSauth1</name>
<expres><![CDATA[return.{24}\(''\)\+([^\W]+)]]></expres>
<page>https://ustvgo.tv/player.php?stream=$doregex[getChannelName]</page>
</regex>
<regex>
<name>getWMSauth2</name>
<expres>id=$doregex[getPreWMSauth2].([^\<]+)</expres>
<page>https://ustvgo.tv/player.php?stream=$doregex[getChannelName]</page>
</regex>
<regex>
<name>getPreWMSauth2</name>
<expres><![CDATA[\+document.*?\]..([^']+)]]></expres>
<page>https://ustvgo.tv/player.php?stream=$doregex[getChannelName]</page>
</regex>
<regex>
<name>getChannelName</name>
<expres>iframe\s*src=.+?=([^']+)</expres>
<page>https://ustvgo.tv/abc-live-streaming-free/</page>
</regex>
</item>
m5
 
  • Like
Reactions: streamwatcher2013

m5Germany

Active member
Mar 20, 2014
350
115
43
Just checked your code - you can also just replace:
LSP XML:
[getChannelName]/myStream/playlist.m3u8?token=$doregex[getUrl]

with

[getChannelName]/myStream/playlist.m3u8?wmsAuthSign=$doregex[getUrl]
m5
 

upd8t3r

Member
Oct 16, 2019
46
18
8
Thank you, that did turn out to be the problem, having token instead of wmsAuthSign. If there's a python module that can do MD5 reversing of characters, you could just use that convert them into the server name, I just haven't been able to find anything on it.


Code:
Because this right here is what converts to be the 1st part of the link, I used a MD5 reversing website to see what it was. What it is, is a library of MD5 hashes of every character and it looks in the library for a match.

["2510c39011c5be704182423e3a695e91","e358efa489f58062f10dd7316b65649e","e358efa489f58062f10dd7316b65649e","83878c91171338902e0fe0fb97a8c47a","03c7c0ace395d80182db07ae2c30f034","853ae90f0351324bd73ea615e6487517","6666cd76f96956469e7be39d750cc7d9","6666cd76f96956469e7be39d750cc7d9","83878c91171338902e0fe0fb97a8c47a","e1671797c52e15f763380b45e841ec32","e1671797c52e15f763380b45e841ec32","4b43b0aee35624cd95b910189b3dc231","e4da3b7fbbce2345d7772b0674a318d5","5058f1af8388633f609cadb75a75dc9d","7b774effe4a349c6dd82ad4f4f21d34c","03c7c0ace395d80182db07ae2c30f034","e358efa489f58062f10dd7316b65649e","9e3669d19b675bd57058fd4664205d2a","c81e728d9d4c2f636f067f89cc14862c","a87ff679a2f3e71d9181a67b7542122c","2510c39011c5be704182423e3a695e91","5058f1af8388633f609cadb75a75dc9d","2db95e8e1a9267b7a1188556b2013b33","865c0c0b4ab0e063e5caa3387c1a8741","9e3669d19b675bd57058fd4664205d2a","e1671797c52e15f763380b45e841ec32","6666cd76f96956469e7be39d750cc7d9","7fc56270e7a70fa81a5935b72eacbe29","9d5ed678fe57bcca610140957afab571","0d61f8370cad1d412f80b84d143e1257","6666cd76f96956469e7be39d750cc7d9","6f8f57715090da2632453988d9a1501b","415290769594460e2e485922904f345d","5dbc98dcc983a70728bd082d1a47546e","e358efa489f58062f10dd7316b65649e","4b43b0aee35624cd95b910189b3dc231","e1671797c52e15f763380b45e841ec32","0cc175b9c0f1b6a831c399e269772661","6f8f57715090da2632453988d9a1501b","6666cd76f96956469e7be39d750cc7d9","83878c91171338902e0fe0fb97a8c47a","2db95e8e1a9267b7a1188556b2013b33","0cc175b9c0f1b6a831c399e269772661","415290769594460e2e485922904f345d","2db95e8e1a9267b7a1188556b2013b33","865c0c0b4ab0e063e5caa3387c1a8741","03c7c0ace395d80182db07ae2c30f034","e358efa489f58062f10dd7316b65649e","5058f1af8388633f609cadb75a75dc9d","6f8f57715090da2632453988d9a1501b","eccbc87e4b5ce2fe28308fd9f2a7baf3","7b774effe4a349c6dd82ad4f4f21d34c","c9f0f895fb98ab9159f51fd0297e236d","d1457b72c3fb323a2671125aef3eab5d","f1290186a5d0b1ceab27f4e77c0c5d68","6f8f57715090da2632453988d9a1501b","03c7c0ace395d80182db07ae2c30f034","7fc56270e7a70fa81a5935b72eacbe29","7b774effe4a349c6dd82ad4f4f21d34c","e358efa489f58062f10dd7316b65649e","2510c39011c5be704182423e3a695e91","5dbc98dcc983a70728bd082d1a47546e","865c0c0b4ab0e063e5caa3387c1a8741","b2f5ff47436671b6e533d8dc3614845d","7b8b965ad4bca0e41ab51de7b31363a1","43ec3e5dee6e706af7766fffea512721"];
 

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Try this:

LSP XML code:
<item>
<title>[COLOR skyblue][B]ABC[/B][/COLOR]</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  link='https://ustvgo.tv/'+re.findall('(player.php[^\'"]+)',page_data)[0]
  list=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://ustvgo.tv/abc-live-streaming-free/'}).content
  source=re.findall('id=.player(?s)(.*?)</body',list)[0]
  player=re.findall('file:\s*([^\(]+)',source)[0]
  html_list,gtok,tok2=re.findall('(?s)%s.+?return.+?\]=([^\(]+).+?\)\+([^\]\[]+).+?\]\([\'"]([^\'"]+)'%player,source)[0]
  tok=re.findall('%s.+?\[("[^\]]+)'%gtok,source)[0];token=''.join(eval(tok))
  token2=re.findall('id=%s>([^<]+)'%tok2,list)[0]
  ghtml=re.findall('case.+?:\s*return\s*"([^"]+)',re.findall('%s(?s)(.*?)\}\}'%html_list,source)[0])
  return 'https://peer%s.ustv24h.live/ABC/myStream/playlist.m3u8?wmsAuthSign=%s%s|user-agent=ipad&referer=https://ustvgo.tv/'%(ghtml[8],token,token2)
]]></expres>
<page>https://ustvgo.tv/abc-live-streaming-free/</page>
<referer>https://ustvgo.tv/</referer>
</regex>
<thumbnail>http://channelpear.com/images/media/2730.jpg</thumbnail>   
<fanart>http://channelpear.com/images/media/2730.jpg</fanart>
</item>
 
  • Like
Reactions: tungbeng95

upd8t3r

Member
Oct 16, 2019
46
18
8
I added a little extra to it, I thought it'd be nice to be able to see what's on now and next. Not all the channels have a program schedule listing and I haven't checked if this will work with other channels that do have it, so I don't know if or what other channels it'd work with.


XML:
<item>
<title>[COLOR skyblue][B]ABC [COLOR=white]- On Now: $doregex[onNow] | Up Next: $doregex[upNextTime] $doregex[upNextProgram][/B][/COLOR]</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  link='https://ustvgo.tv/'+re.findall('(player.php[^\'"]+)',page_data)[0]
  list=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://ustvgo.tv/abc-live-streaming-free/'}).content
  source=re.findall('id=.player(?s)(.*?)</body',list)[0]
  player=re.findall('file:\s*([^\(]+)',source)[0]
  html_list,gtok,tok2=re.findall('(?s)%s.+?return.+?\]=([^\(]+).+?\)\+([^\]\[]+).+?\]\([\'"]([^\'"]+)'%player,source)[0]
  tok=re.findall('%s.+?\[("[^\]]+)'%gtok,source)[0];token=''.join(eval(tok))
  token2=re.findall('id=%s>([^<]+)'%tok2,list)[0]
  ghtml=re.findall('case.+?:\s*return\s*"([^"]+)',re.findall('%s(?s)(.*?)\}\}'%html_list,source)[0])
  return 'https://peer%s.ustv24h.live/ABC/myStream/playlist.m3u8?wmsAuthSign=%s%s|user-agent=ipad&referer=https://ustvgo.tv/'%(ghtml[8],token,token2)
]]></expres>
<page>https://ustvgo.tv/abc-live-streaming-free/</page>
<referer>https://ustvgo.tv/</referer>
</regex>
<thumbnail>http://channelpear.com/images/media/2730.jpg</thumbnail>   
<fanart>http://channelpear.com/images/media/2730.jpg</fanart>
<regex>
<name>onNow</name>
<expres><![CDATA[(?s)scrolling="no".+?FilledVerySmallSquare.+?</span>([^<]+)]]></expres>
<page>https://ustvgo.tv/abc-live-streaming-free/</page>
</regex>
<regex>
<name>upNextTime</name>
<expres><![CDATA[(?s)scrolling="no".+?FilledVerySmallSquare.+?</span>.+?class="timetable-time">([^<]+)]]></expres>
<page>https://ustvgo.tv/abc-live-streaming-free/</page>
</regex>
<regex>
<name>upNextProgram</name>
<expres><![CDATA[(?s)scrolling="no".+?FilledVerySmallSquare.+?</span>.+?class="timetable-time">.+?class="timetable-name">([^<]+)]]></expres>
<page>https://ustvgo.tv/abc-live-streaming-free/</page>
</regex>
</item>
 

upd8t3r

Member
Oct 16, 2019
46
18
8
It's because the ghtml is capturing the wrong character. It's not the best way of doing it but I find it easier to just hard code the host part in the link. I also added to the regex to get the channel name, so that the only thing you need is what the page is.





XML:
<item>
<title>[COLOR skyblue][B]NICKELODEON[/B][/COLOR]</title>
<link>https://peer6.$doregex[getUrl]</link>
<thumbnail>https://goodlogo.com/images/logos/nickelodeon_logo_3035.gif</thumbnail>       
<fanart>https://goodlogo.com/images/logos/nickelodeon_logo_3035.gif</fanart>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  channel=re.findall('player.php.+?=([^\'"]+)',page_data)[0]
  link='https://ustvgo.tv/'+re.findall('(player.php[^\'"]+)',page_data)[0]
  list=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://ustvgo.tv/nickelodeon-live-streaming-free/'}).content
  source=re.findall('id=.player(?s)(.*?)</body',list)[0]
  player=re.findall('file:\s*([^\(]+)',source)[0]
  html_list,gtok,tok2=re.findall('(?s)%s.+?return.+?\]=([^\(]+).+?\)\+([^\]\[]+).+?\]\([\'"]([^\'"]+)'%player,source)[0]
  tok=re.findall('%s.+?\[("[^\]]+)'%gtok,source)[0];token=''.join(eval(tok))
  token2=re.findall('id=%s>([^<]+)'%tok2,list)[0]
  return 'ustv24h.live/%s/myStream/playlist.m3u8?wmsAuthSign=%s%s|user-agent=ipad&referer=https://ustvgo.tv/'%(channel,token,token2)
]]></expres>
<page>https://ustvgo.tv/nickelodeon-live-streaming-free/</page>
<referer>https://ustvgo.tv/</referer>
</regex>
</item>
 
  • Like
Reactions: tungbeng95

Nature

New member
Dec 12, 2018
19
0
1
Can you help me to fix this regex pls
XML:
<item>
<title>Home</title>
<link>$doregex[cristalazul]</link>
<regex>
<name>cristalazul</name>
 <listrepeat><![CDATA[
<title>[COLOR lightskyblue][cristalazul.param4] [COLOR white][cristalazul.param2][/COLOR]</title>
<link>$doregex[makelist]</link>
<thumbnail>[cristalazul.param3]</thumbnail>
<fanart>[cristalazul.param3]</fanart>
]]></listrepeat>
<expres><![CDATA[(?s)<span class="play">.*?"(.*?)".*?quality-poster">(.*?)<.*?url\((.*?)\).*?title="(.*?)"]]></expres>
<page>http://www.filma24.to/</page>
</regex>
<regex>
<name>makelist</name>
 <listrepeat><![CDATA[
<title>[COLOR lightskyblue][makelist.param2][/COLOR]</title>
<link>$doregex[finallink]</link>
<thumbnail>[cristalazul.param3]</thumbnail>
<fanart>[cristalazul.param3]</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
 return re.findall('(?s)<a href="(.*?)".*?class="(.*?)"',page_data)[0])
]]></expres>
<page>[cristalazul.param1]</page>
</regex>
  <regex>
 <name>cristal</name>
 <expres><![CDATA[(?s)<p class="description">.*?href="(.*?)"]]></expres>
 <page>[makelist.param1]</page>
 </regex>
<regex>
 <name>finallink</name>
<expres><![CDATA[#$pyFunction
import urlresolver
def GetLSProData(page_data,Cookie_Jar,m):
    url = '$doregex[cristal]'
    Link = urlresolver.resolve(url)
    return Link
]]></expres>
 <page></page>
</regex>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Try this:

LSP XML code:
<item>
<title>https://www.filma24.ac/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3] [COLOR dodgerblue]([makelist.param4])[/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('(?s)image:url.([^\)"]+).+?href="(.*?)"\s*title="(.*?)\s*\((\d+)',re.findall('id="movies-grid">(?s)(.*?)pagina',page_data)[0])
  for pn in xrange(2,6):
    source=requests.get('https://www.filma24.ac/page/'+str(pn)+'/',headers={'user-agent':'Mozilla/5.0','referer':'https://www.filma24.ac/','accept':'*/*'}).content.replace('#038;','').replace('&#8211;','-')
    list +=re.findall('(?s)image:url.([^\)"]+).+?href="(.*?)"\s*title="(.*?)\s*\((\d+)',re.findall('id="movies-grid">(?s)(.*?)pagina',source)[0])
  return list
]]></expres>
<page>https://www.filma24.ac/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param2] [COLOR dodgerblue]([makelist.param3] - [makelist.param4])[/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param4]</thumbnail>
]]></listrepeat>
<expres><![CDATA[data-servera="(\d+).+?>([^<]+)]]></expres>
<page>[makelist.param2]</page>
<referer>https://www.filma24.ac/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  url=re.findall('movie-player[\w\W]+?iframe.+?src="([^"]+)',page_data)[0];url='https:'+url if url.startswith('//') else url
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param2]?server=[makelist2.param1]','accept':'*/*'}).content
  return  re.findall('(?:player.updateSrc|var\*player|)[\w\W]+?(?:sources|file|src):.+?[\'"](h[^\'"]+)',source)[0]+'|user-agent=ipad&referer='+url
]]></expres>
<page>[makelist.param2]?server=[makelist2.param1]</page>
<referer>[makelist.param2]</referer>
</regex>
<thumbnail>https://www.filma24.ac/wp-content/themes/cr_filma_greenv2/assets/img/logo2020-1-BLU.png</thumbnail>
</item>
 
  • Like
Reactions: Nature

Doom

Member
Sep 16, 2019
329
21
18

altug

Member
Jul 7, 2016
70
2
8
hello loud can someone please help me there it no longer works
Thank you very much

<item>
<title>NatGeo Wild Türk</title>
<inputstream>$doregex|Referer=https://7.fixspor45.xyz/</inputstream> <regex> <name>url</name> <expres>source:\s*['"]([^'"]+)</expres> <page>https://7.fixspor45.xyz/izle/historychannel.php</page> </regex> </item> [/QUOTE]
 

BymemoLee

Member
Apr 30, 2018
93
20
8
Bunu dene..

HTML:
<item>
<title>History</title>
<inputstream>$doregex[url]|Referer=https://7.fixspor45.xyz/</inputstream>
<regex>
<name>url</name>
<expres>src:\s*['"]([^'"]+)</expres>
<page>https://7.fixspor45.xyz/android/player2.php?id=history</page>
</regex>
</item>
 

BymemoLee

Member
Apr 30, 2018
93
20
8
Ayrıca; <inputstream> etkinleştirmek için,
Sistem>Eklentiler>Enlentilerim>VideoPlayer InputStream>InputStream Adaptive yolunu takip edebilirsin.
 
  • Like
Reactions: altug

Doom

Member
Sep 16, 2019
329
21
18
@streamwatcher2013 Could it be possible to the links from the "download section" in a code and thanks!🙏
hxxps://www.movieminions.co/movie/?id=545609&title=extraction
 

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
I do not know LSP will play instagram video?

XML:
data-xyz='vtmpa/dvMvmlih..S1-rVkH1582v.tCa.7DnB5W5trbx1ips8815030k.todt7a8t3Eg0.0y//eirmSNwe-/elvFrz2x2t/fx8rjc6i4n2242x.x0j05.k0vib.nE3-fL96rH.x66f.eE6CwPlAwFtla22e/i:.tkh'>Extraction 2020 1080p 10bit WEB DL 6CH x265 HEVC mkv
 
  • Like
Reactions: Doom

tpoupi

Member
Jan 2, 2016
41
0
6
hi guru, this regex has stopped, please need help.
Thx

<item>
<title>Regex-youtube nollywood</title>
<link>ignorme</link>
<jsonrpc>plugin://plugin.video.youtube/kodion/search/query/?q=NollywoodPicturestv</jsonrpc>
<thumbnail>hxxp://nollywood.company/wp-content/uploads/2013/03/nollywoodcompany_aboutus_logo-300x99.png</thumbnail>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Try this:

XML:
<item>
<title>YT Search</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2]</title>
  <urlsolve>https://www.youtube.com/watch?v=[makelist.param1]</urlsolve>
  <thumbnail>https://i.ytimg.com/vi/[makelist.param1]/hqdefault.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,time,urllib,xbmc
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  def get_SearchQuery():
     keyboard=xbmc.Keyboard();keyboard.setHeading('Search Here:');keyboard.doModal()
     if keyboard.isConfirmed():
        itext=urllib.quote_plus(keyboard.getText())
     return itext
  gtext=get_SearchQuery()
  sUrl='https://www.youtube.com/results?search_query=%s&pbj=1'%gtext
  headers={'user-agent':'Mozilla/5.0','host':'www.youtube.com','referer':'https://www.youtube.com/','accept':'*/*'}
  source=requests.get(sUrl,headers=headers,cookies=Cookie_Jar).content.replace('amp;','').replace('&#39;','\'').replace('\\','')
  return re.findall('data-video-ids="([^"]+)[\w\W]*?"ltr">([^<]+)',source)
]]></expres>
<page></page>
</regex>
<thumbnail>https://www.wearediagram.com/hubfs/YouTube_Search.jpg</thumbnail>
<item>
 

boomski2

Member
Aug 19, 2019
46
1
8
hola amigos,

need help with this site. please help me. i like to watch dragon ball

Code:
https://animeindo.fun/anime/dragon-ball-super/
 

tungbeng95

Member
Oct 25, 2018
392
16
18
I need play this in LSP :
hxxps://plivenowusodash.secure.footprint.net/live/rtllive/rtllive.isml/.mpd
 

peterpan

Active member
Jul 7, 2013
117
84
28
@streamwatcher2013 : Is there a way to tweak your "YT Search" so we can enter Eastern text (from right to left)? Thanks. Example: " أفلام عربية "
 
Thread starter Similar threads Forum Replies Date
I Scraper Development 1
G Scraper Development 0
O Addon Requests 5