LSP Regex & Makelist Discussion.

Doom

Member
Sep 16, 2019
318
21
18
Stopped working can someone take a look & thanks
<item>
<title>crackstreams</title>
<thumbnail></thumbnail>
<fanart></fanart>
<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('<iframe.+?src="([^"]+)',page_data)[0]
source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'http://crackstreams.com/boxing-streams/watch-dazn-ortiz-jr-vs-vargas/','accept':'*/*'}).content
return re.findall('atob.[\'"]([^\'"]+)',source)[0].decode('base64')+'|user-agent=ipad&origin=http://nbastreams123.xyz&referer='+link
]]></expres>
<page>http://crackstreams.com/boxing-streams/watch-dazn-ortiz-jr-vs-vargas/</page>
</regex>
</item>
 
  • Like
Reactions: turko03

Cosmix

Developer
May 16, 2016
24
32
13
Code:
<item>
<title>crackstreams</title>
<thumbnail></thumbnail>
<fanart></fanart>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
    link=re.findall('<iframe.+?src="([^"]+)',page_data)[0]
    source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'http://crackstreams.com/boxing-streams/watch-dazn-ortiz-jr-vs-vargas/','accept':'*/*'}).content
    return re.findall('(?s)source:\s"([^"]*)',source)[0]
]]></expres>
<page>http://crackstreams.com/boxing-streams/watch-dazn-ortiz-jr-vs-vargas/</page>
</regex>
</item>
This should do for the change.
 
  • Like
Reactions: DerWolf and Doom

Doom

Member
Sep 16, 2019
318
21
18
Can someone help me here, I don't give up easily... common guy's!😅🤞
hxxp://liveonscore.net/category/mlb-streams/
 
  • Like
Reactions: turko03

gujal

Developer
Dec 26, 2013
572
318
63
Forget the original streams from NHL and MLB, these need key hacks as done by LazyMan
The m3u8 presented will have this key url, which can only be accessed with a MLB subscription
#EXT-X-KEY:METHOD=AES-128,URI="https://playback.svcs.mlb.com/silk/events/5dff2468-b3c8-4f7e-aeb5-497ba60d48c5/media/e58a544b-5578-4d31-ae93-c0d326bff8ac/keys/f2014f51-0c5b-47c4-b4fe-c739502c677c",IV=0x67C6697351FF4AEC29CDBAABF2FBE346
The websites presenting these streams have modified html5 player which will make the call to a pirate key server instead of the mlb server, in this website case they are getting the key from http://liveonscore.net/mlbkey?url=5dff2468-b3c8-4f7e-aeb5-497ba60d48c5/media/e58a544b-5578-4d31-ae93-c0d326bff8ac/keys/f2014f51-0c5b-47c4-b4fe-c739502c677c
Kodi player can't do this
 

redota

New member
Jul 3, 2016
23
2
3
please need help ,this regex no more work in lsp ,thanks for you help

<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>
 
  • Like
Reactions: turko03 and DerWolf

tungbeng95

Member
Oct 25, 2018
386
13
18
Last edited by a moderator:
  • Like
Reactions: turko03 and DerWolf

tobotminer

Member
Jan 26, 2018
49
4
8
anyone can check this site. old one provided here is not working anymore

Code:
https://www.dubsstreamz.com/watch/sports/live/motogp.html
 
  • Like
Reactions: turko03 and DerWolf

Cosmix

Developer
May 16, 2016
24
32
13
Hey,
I believe the code does still work as per option 1 below from Gujal.
They also have option 2 for some of their streams so give this one a go.
The link you provided has no current stream on so i could not use that link.

Code:
<item>
<title>dubs streams - option 1</title>
<link>$doregex[URL]</link>
<regex>
<name>URL</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import re

    items = re.findall('=\s*(\[[^;]+)', page_data)[0]
    items = re.findall(r'"(.+?)"', items)
    subitem = int(re.findall(r'atob.+?-\s*(\d+)', page_data)[0])
    srp = ''
    for item in items:
        srp += chr(int(re.sub(r'[^\d]', '', item.decode('base64'))) - subitem)
    link = re.findall(r"source:\s*'([^']+)", srp)[0]
    return link + '|User-Agent=iPad&amp;Referer=http://www.dubsstreamz.com/'
]]></expres>
<page>http://www.dubsstreamz.com/oc.php</page>
</regex>
</item>

Mine edited for other streams on their site...

<item>
<title>dubs streams - option 2</title>
<link>$doregex[URL]</link>
<regex>
<name>URL</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import re
    items = re.findall('=\s*(\[[^;]+)', page_data)[0]
    items = re.findall(r'"(.+?)"', items)
    subitem = int(re.findall(r'atob.+?-\s*(\d+)', page_data)[0])
    srp = ''
    for item in items:
        srp += chr(int(re.sub(r'[^\d]', '', item.decode('base64'))) - subitem)
    link = re.findall('source:(?:[^\']*)\'([^\']*)', srp)[0].decode('base64')
    return link + '|User-Agent=iPad&amp;Referer=http://www.dubsstreamz.com/'
]]></expres>
<page>http://www.dubsstreamz.com/ch3.php</page>
</regex>
</item>
 

Download

New member
Jun 16, 2016
19
7
3
Japan
Hi. @streamwatcher2013 @gujal brather. I have a problem with regex help. This website is free. I have examples available form @peterpan. But still not complete I have already tried the fix, it doesn't work, helps the sports channel regex for you. And thanks for help me @ streamwatcher2013 @gujal @ peterpan
url sing in
Code:
Sign in
http://dootv.streaming-fast.com/Idoo8K/Idoo8K_apk.php
True premier football
EPL-1
http://dootv.streaming-fast.com/videojsplayer_FHD/xqY73dWBoZye/ 
NFL
http://dootv.streaming-fast.com/videojsplayer/2EyEV5BXAk2/
Tennis 
http://dootv.streaming-fast.com/videojsplayer/Q7vaEm8O9e4/
Example
Code:
<item>
<title>i-Concerts HD **http://dootv.streaming-fast.com/Idoo8K/login**</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR gold][makelist.param3][/COLOR]</title>
<link>$doregex[PlayStream]|Cookie=$get_cookies$&amp;User-Agent=iPad</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[class="moviefilm"(?s).+?"location.href='(.*?)'.+?src="(.*?)".*?_under">(.*?)<]]></expres>
<page>http://dootv.streaming-fast.com/Idoo8K/$doregex[getSERVER]</page>
<referer>http://dootv.streaming-fast.com/Idoo8K/Idoo8K_apk.php</referer>
<cookieJar>$doregex[LoginAndCookie]</cookieJar>
</regex>

<regex>
<name>PlayStream</name>
<expres>"src": "(.*?)"</expres>
<page>[makelist.param1]</page>
<referer>http://dootv.streaming-fast.com/Idoo8K/$doregex[getSERVER]</referer>
<cookieJar>$doregex[LoginAndCookie]</cookieJar>
</regex>

<regex>
<name>getSERVER</name>
<expres>location.href='(.*?)'.*?live.png</expres>
<page>http://dootv.streaming-fast.com/Idoo8K/Idoo8K_apk.php</page>
<referer>http://dootv.streaming-fast.com/Idoo8K/login</referer>
<cookieJar>$doregex[LoginAndCookie]</cookieJar>
</regex>

<regex>
<name>LoginAndCookie</name>
<expres></expres>
<page>http://dootv.streaming-fast.com/Idoo8K/check_login.php</page>
<referer>http://dootv.streaming-fast.com/Idoo8K/login</referer>
<rawpost>txtUsername=layer&amp;txtPassword=lrpass</rawpost>
<cookieJar></cookieJar>
</regex>
</item>
 
  • Like
Reactions: turko03 and DerWolf

tungbeng95

Member
Oct 25, 2018
386
13
18
Can I get help this: hxxp://yosports.net/row/ss-cricket.php
 
  • Like
Reactions: turko03 and DerWolf

Cosmix

Developer
May 16, 2016
24
32
13
As below you get the Wstream url from the page source and just replace the links for the other channels.
The channel you posted is offline so the below is an online one at this time.
Code:
<item>
<title>linesports channel 33</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://wstream.to/embed/zj6ab5rg</page>
<referer>https://linesports.xyz/wiz/lschannel-33.php</referer>
</regex>
</item>
 

Doom

Member
Sep 16, 2019
318
21
18
Is there a way to make 2 "urlsolve" in 1 item?
< item >
< urlsolve > 1 </ urlsolve >
< urlsolve > 2 </ urlsolve >
</ item >

thanks!
 
  • Like
Reactions: DerWolf

Cosmix

Developer
May 16, 2016
24
32
13
As per the LSP Wiki if this is what you mean ???

Code:
<item>
<title></title>
<multilink>
<link></link>
<link></link>
</multilink>
</item>



<item>
<title></title>

<link></link>

<link></link>
</item>
 

Doom

Member
Sep 16, 2019
318
21
18
@Cosmix like this example but with <urlsolve> instead of <link>, doesn't work with <urlsolve> is there another way

<item>
<title>HD OP</title>
<link>http://############.m3u8$$lsname=HD OP1$$lsname=</link>
<link>http://############.m3u8$$lsname=HD OP2$$lsname=</link>
<link>http://############.m3u8$$lsname=HD OP3$$lsname=</link>
<thumbnail></thumbnail>
<fanart></fanart>
</item>
 
  • Like
Reactions: DerWolf

Cosmix

Developer
May 16, 2016
24
32
13
Maybe something like this ?

Code:
<item>
<title></title>
<multilink>
<link>$doregex[link1]</link>
<link>$doregex[link2]</link>
</multilink>
<regex>
<name>link1</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
   import resolveurl
   url = 'http....'
   u = resolveurl.resolve(url)
   return u
]]></expres>
<page></page>
</regex>
<regex>
<name>link2</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
   import resolveurl
   url = 'http....'
   u = resolveurl.resolve(url)
   return u
]]></expres>
<page></page>
</regex>       
<item>
 
  • Like
Reactions: DerWolf

turko03

Member
Mar 27, 2018
52
1
8
hxxp://database.freetuxtv.net is possiple
 

Cosmix

Developer
May 16, 2016
24
32
13
Most of the link on this site are dead...
The below i filtered it to grab only english (webtv) as they call it.
You may change the url as you wish for other filters.
It is a simple code so hopefully you can edit it and see how the regex works by looking at the page source maybe ?

Code:
<item>
<title>freetuxtv.net - TVSTREAM - ENGLISH</title>
<link>$doregex[makelist]</link>
<thumbnail></thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
    <title>[makelist.param1]</title>
    <link>[makelist.param2]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = ''):
    import re
    items = re.findall('(?s)<tr class="[even|odd].*?"><td>([^<]*)<br \/>=&gt\; <a href="([^"]*)', page_data)
    items2 = re.findall('(?s)<tr class="[even|odd].*?"><td>([^<]*)<br \/>=&gt\; <a>([^<]*)', page_data)
    return items + items2
]]></expres>
<page>http://database.freetuxtv.net/WebStream/index?WebStreamSearchForm%5BType%5D=1&WebStreamSearchForm%5BLanguage%5D=en&WebStreamSearchForm%5BStatus%5D=2</page>
<referer>http://database.freetuxtv.net/</referer>
</regex>
</item>
 
  • Like
Reactions: turko03 and DerWolf

Lacasitos74

Member
Nov 21, 2016
43
1
8
Hi gurus.
Can any one help me with this link?
hxxp://tvdesporto.live/play.php?canal=benficatv&height=400&width=600
Thanks in advance
 
  • Like
Reactions: turko03

juanvic930

New member
Mar 6, 2017
8
1
3
makelist for this site please (NO LIVE LINK'S)
 
Last edited by a moderator:
  • Like
Reactions: turko03

Cosmix

Developer
May 16, 2016
24
32
13
See below,
I think content is Geo locked to Spain so may require a VPN.
Also some streams may have different code to play so may need seperate code doing to play those.
Code:
<item>
<title>photocall</title>
<link>$doregex[makelist]</link>
<thumbnail></thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2]</title>
  <link>$doregex[play]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = ''):
  import re
  r = re.findall('(?s)<div class="dropdown"><a href="([^"]*)(?:[^=]*)=(?:[^=]*)=(?:[^=]*)="([^"]*)(?:[^=]*)="([^"]*)', page_data)
  r = [('http://photocall.tv/'+i[0],i[1],i[2]) for i in r if 'fD' in i[0]]
  return r
]]></expres>
<page>http://photocall.tv/</page>
<referer>http://photocall.tv/</referer>
</regex>
<regex>
<name>play</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = ''):
  import re
  r = re.findall('source:\s*\'([^\']*)', page_data)[0]
  r = r.replace('http:','')
  r = r.replace('//','http://')
  return r + '|user-agent=iPad&amp;referer=[makelist.param1]'
]]></expres>
<page>[makelist.param1]</page>
<referer>http://photocall.tv/</referer>
</regex>
</item>

 
  • Like
Reactions: turko03

Cosmix

Developer
May 16, 2016
24
32
13
sorry change to this helps a few more play.
Code:
<item>
<title>photocall</title>
<link>$doregex[makelist]</link>
<thumbnail></thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2]</title>
  <link>$doregex[play]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = ''):
  import re
  r = re.findall('(?s)<div class="dropdown"><a href="([^"]*)(?:[^=]*)=(?:[^=]*)=(?:[^=]*)="([^"]*)(?:[^=]*)="([^"]*)', page_data)
  r = [('http://photocall.tv/'+i[0],i[1],i[2]) for i in r if 'fD' in i[0]]
  return r
]]></expres>
<page>http://photocall.tv/</page>
<referer>http://photocall.tv/</referer>
</regex>
<regex>
<name>play</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = ''):
  import re
  r = re.findall('source:\s*\'([^\']*)', page_data)[0]
  r = r.replace('http:','')
  r = r.replace('https:','')
  r = r.replace('//','https://')
  return r + '|user-agent=iPad&amp;referer=[makelist.param1]'
]]></expres>
<page>[makelist.param1]</page>
<referer>http://photocall.tv/</referer>
</regex>
</item>
 
  • Like
Reactions: turko03

Doom

Member
Sep 16, 2019
318
21
18
Stopped working can someone take a look & thanks!

<item>
<title>Daddy Live</title>
<thumbnail></thumbnail>
<fanart></fanart>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[UPPERCASE][COLOR gold][makelist.param1][/COLOR][/UPPERCASE]</title>
<link>$doregex[makelist2]</link>
<thumbnail></thumbnail>
<fanart></fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,time
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
today=time.strftime('%d',time.localtime())
list=re.findall('<h1.+?%s(?s)(.*?)<(?:h1|script)'%today,page_data)[0].replace('&Atilde;','ç).replace('&atilde;','㧩.replace('&Ouml;','֧).replace('&ouml;','ö').replace('&Euml;','˧).replace('&euml;','맩.replace('&ntilde;','񧩮replace('&Uacute;','ڧ).replace('&uacute;','ú').replace('&Uuml;','ܧ).replace('&uuml;','ü').replace('&acute;','\'').replace('&Eacute;','ɧ).replace('&eacute;','駩.replace('&Oacute;','ӧ).replace('&oacute;','󧩊 return re.findall('<h2><strong><.+?>([^<]+)(?s)(.*?)\W</p',list)
]]></expres>
<page>https://daddylive.live/index.php</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[COLOR blue][makelist2.param1] [COLOR white][makelist2.param2][/COLOR]</title>
<link>$doregex[getUrl]</link>
<thumbnail></thumbnail>
<fanart></fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,time
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
gtime=re.findall('(\d+:\d+)',page_data)
for t in gtime:
localtime=int(t[:-3]) -6 # My is Eastern Time Zone
if localtime > 24:
localtime -=24
if localtime < 1:
localtime +=24
lctime=str(localtime)+t[2:]
lctime=lctime.zfill(5)
page_data=page_data.replace(t,lctime)
return re.findall('(\d+:\d+).+?([^<]+).+?href="([^"]+)',page_data)
]]></expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
#from urlresolver.plugins.lib import jsunpack
from resolveurl.plugins.lib import jsunpack
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
link=re.findall('<iframe\s*src="(.*?embed[^"]+)',page_data)[0]
source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'[makelist2.param3]','accept':'*/*'}).content
source=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0]).replace('\\', '')
return re.findall('Clappr.Player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer='+link
]]></expres>
<page>[makelist2.param3]</page>
<referer>https://daddylive.live/index.php</referer>
</regex>
</item>
 
  • Like
Reactions: turko03

Cosmix

Developer
May 16, 2016
24
32
13
Hey,
I'll leave @streamwatcher2013 to do the schedule and work his magic with the time zones if you'd like that... But for now here are the 24/7 channels list for you.

Code:
<item>
<title>Live Channels</title>
<link>$doregex[makelist]</link>
<thumbnail></thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
    <title>[makelist.param2]</title>
    <link>$doregex[playplay]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import re
    e = re.findall('(?s)<a class="btn(?:.*?href)="([^"]*)(?:.*?i>)([^<]*)', page_data)
    sort = [('https://daddylive.live'+i[0],i[1]) for i in e]
    return sort
]]></expres>
<page>https://daddylive.live/24-hours-channels.php</page>
</regex>
<regex>
<name>playplay</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import jsunpack
    import re
    e = re.findall('eval\(function(.+?m3u8.+)',page_data)[0]
    js = jsunpack.unpack(e)
    u = re.findall('source:\s*[\'"]([^\'"]*)', js)[0]
    return u + '|User-Agent=iPad'
]]></expres>
<page>$doregex[embed]</page>
<referer>[makelist.param1]</referer>
</regex>
<regex>
<name>embed</name>
<expres><![CDATA[<iframe src="([^"]*)]]></expres>
<page>[makelist.param1]</page>
<referer>https://daddylive.live/</referer>
</regex>
</item>
 
  • Like
Reactions: turko03 and Doom

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
Thanks @Cosmix for help.
@Doom
Just replace the top makelist regex. Their code been changing

LSP XML code:
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,time
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  today=time.strftime('%d',time.localtime())
  list=re.findall('%s.+?</center>(?s)(.*?)batman-stream'%today,page_data)[0].replace('&Atilde','Ã').replace('&atilde;','ã').replace('&Ouml;','Ö').replace('&ouml;','ö').replace('&Euml;','Ë').replace('&euml;','ë').replace('&ntilde;','ñ').replace('&Uacute;','Ú').replace('&uacute;','ú').replace('&Uuml;','Ü').replace('&uuml;','ü').replace('&acute;','\'').replace('&Eacute;','É').replace('&eacute;','é').replace('&Oacute;','Ó').replace('&oacute;','ó')
  return re.findall('<h3>.+?">([^<]+)(?s)(.*?)<div',list)
]]></expres>
<page>https://daddylive.live/index.php</page>
</regex>
 
  • Like
Reactions: turko03 and Doom

Doom

Member
Sep 16, 2019
318
21
18
@gujal @streamwatcher2013 Found this site for MLB and found a m3u8, is it possible to code just curious
hxxps:// x.cantholdus.xyz/kaynakstreamradarco/mlb1/naxi/caxi.m3u8

hxxps://www.streameast.live/streams/baseball/
 
  • Like
Reactions: turko03

Cosmix

Developer
May 16, 2016
24
32
13
All
Code:
<item>
<title>streameast</title>
<link>$doregex[makelist]</link>
<thumbnail></thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
    <title>[makelist.param3]</title>
    <link>$doregex[playplay]|user-agent=iPad</link>
    <thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import re
    r = page_data.split('SD Streams', 1)[-1]
    e = re.findall('(?s)<div class="container">(?:.*?location=.*?)\'([^\']*)(?:.*?src.*?)="([^"]*)(?:.*?<p>.*?){2}([^<]*)', r)
    sort = [(i[0],i[1],i[2]) for i in e]
    return sort
]]></expres>
<page>https://www.streameast.live/</page>
</regex>
<regex>
<name>playplay</name>
<expres><![CDATA[source:\s"([^"]*)]]></expres>
<page>$doregex[embed]</page>
<referer>[makelist.param1]</referer>
</regex>
<regex>
<name>embed</name>
<expres><![CDATA[<iframe.*?src="([^"]*)]]></expres>
<page>[makelist.param1]</page>
<referer>https://www.streameast.live/</referer>
</regex>
</item>
Baseball
Code:
<item>
<title>streameast</title>
<link>$doregex[makelist]</link>
<thumbnail></thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
    <title>[makelist.param3]</title>
    <link>$doregex[playplay]|user-agent=iPad</link>
    <thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import re
    r = page_data.split('SD Streams', 1)[-1]
    e = re.findall('(?s)<div class="container">(?:.*?location=.*?)\'([^\']*)(?:.*?src.*?)="([^"]*)(?:.*?<p>.*?){2}([^<]*)', r)
    sort = [(i[0],i[1],i[2]) for i in e]
    return sort
]]></expres>
<page>https://www.streameast.live/streams/baseball/</page>
</regex>
<regex>
<name>playplay</name>
<expres><![CDATA[source:\s"([^"]*)]]></expres>
<page>$doregex[embed]</page>
<referer>[makelist.param1]</referer>
</regex>
<regex>
<name>embed</name>
<expres><![CDATA[<iframe.*?src="([^"]*)]]></expres>
<page>[makelist.param1]</page>
<referer>https://www.streameast.live/</referer>
</regex>
</item>
 
  • Like
Reactions: Doom and turko03

DerWolf

Member
Nov 20, 2019
43
5
8
@Cosmix
can you help me this site
thanks in advance
hxxps://dailysport.pw
 
  • Like
Reactions: turko03

Cosmix

Developer
May 16, 2016
24
32
13
See below.



Code:
<item>
<title>Dailysport.pw</title>
<link>$doregex[makelist]</link>
<thumbnail></thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
    <title>[COLOR gold][makelist.param5][/COLOR] [COLOR snow][makelist.param1] [makelist.param2][/COLOR] - [COLOR maroon][makelist.param3][/COLOR]</title>
    <link>$doregex[player]|user-agent=ipad</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = ''):
    import re,requests
    site = requests.get('https://dailysport.pw/', headers={'user-agent':'Mozilla/5.0'},verify=False).content
    items = re.findall('(?s)<td>(\d+[^\s]*)\s([^<]*)(?:[^>]*)>(?:[^>]*)>([^<]*)(?:[^=]*)="([^"]*)">(?:[^\d+]*)\d*\s*([^<]*)', site)
    sort = [(i[0],i[1],i[2].replace('\xc3\xada',''),'https://dailysport.pw/'+i[3],i[4]) for i in items]
    return sort
]]></expres>
<page></page>
</regex>
<regex>
<name>player</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = ''):
    import re,requests
    s = requests.get('[makelist.param4]', headers={'user-agent':'Mozilla/5.0'}, verify=False).content
    l = re.findall('w\.atob\("([^"]*)', s)[0]; l = l.decode('base64')
    return l
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: turko03

Cosmix

Developer
May 16, 2016
24
32
13
Somebody asked for this but i am sorry i forgot who...hopefully you find it, all links are shared so will die very fast. Option 6 is always latest...(you will see what i mean when you open)



Code:
<item>
<title>gratis</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR snow][makelist.param2][/COLOR]</title>
  <link>$doregex[lists]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import re
    return re.findall('(?s)<header class="entry-header cf">(?:.*?href=)"([^"]*)">([^<]*)(?:.*?src=")([^"]*)',page_data)
]]></expres>
<page>https://www.gratisiptv.com/free-playlists/</page>
</regex>
<regex>
<name>lists</name>
<listrepeat><![CDATA[
  <title>[COLOR snow][lists.param2][/COLOR]</title>
  <link>ignoreme</link>
  <externallink>[lists.param1]</externallink>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):#cosmix
    import re
    s = page_data.split('<pre>', 1)[-1]
    return re.findall('(?s)<a href="(.*?m3u[^"]*)">Download\s([^<]*)',s)
]]></expres>
<page>[makelist.param1]</page>
<referer></referer>
</regex>
</item>
 
  • Like
Reactions: DerWolf and turko03

Cosmix

Developer
May 16, 2016
24
32
13
@DerWolf Yes just add it but some streams will be .ts and some .m3u8 so may make it unstable.
Just add it as you usually would do this line...
for M3u8
Code:
  <externallink>plugin://plugin.video.f4mTester/?streamtype=HLSRETRY&amp;name=Playing&amp;url=[lists.param1]</externallink>
For .ts
Code:
<externallink>plugin://plugin.video.f4mTester/?streamtype=TSDOWNLOADER&amp;name=Playing&amp;url=[lists.param1]</externallink>
 
  • Like
Reactions: DerWolf and turko03

adriansyafiq

Member
Jan 3, 2016
34
2
8
hi gurus,
how can i play the following in LSP? it works fine on Tivimate fyi..

#KODIPROP:inputstream.adaptive.license_type=com.widevine.alpha
#KODIPROP:inputstream.adaptive.license_key=hxxps://mrpw.ptmnc01.verspective.net/?deviceId=YWY0OTBlZjEtODAyNC0zZTA0LWFhYzMtY2ZmMGE4NjVjZjU1
#EXTINF:-1,FOX SPORTS ID 1
hxxps://liveanevia.mncnow.id/live/eds/FOXSports/sa_dash_vmx/FOXSports.mpd
 

gujal

Developer
Dec 26, 2013
572
318
63
You do it this way, Enjoy!

LSP XML:
<item>
  <title>Fox Sports</title>
  <inputstream>https://liveanevia.mncnow.id/live/eds/FOXSports/sa_dash_vmx/FOXSports.mpd$$lic=https://mrpw.ptmnc01.verspective.net/?deviceId=YWY0OTBlZjEtODAyNC0zZTA0LWFhYzMtY2ZmMGE4NjVjZjU1||R{SSM}|</inputstream>
</item>
 
  • Like
Reactions: tungbeng95 and KayD

tungbeng95

Member
Oct 25, 2018
386
13
18
I want need help: hxxps://alphacyprus.com.cy/live
 

upd8t3r

Member
Oct 16, 2019
46
18
8
This works for me.

XML:
<item>
<title>ALPHACYPRUS</title>
<link>$doregex[link]|User-Agent=iPad&amp;Referer=https://alphacyprus.com.cy/live&amp;Origin=https://alphacyprus.com.cy&amp;Connection=keep-alive</link>
<regex>
<name>link</name>
<expres>hls:\s*'([^']+)</expres>
<page>https://alphacyprus.com.cy/live</page>
</regex>
</item>
 
  • Like
Reactions: tungbeng95
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5