LSP Regex & Makelist Discussion.

adioukrou

Member
May 12, 2012
36
0
6
Guys, I need help on this. I thought it was easy but my 2 trials did not work. Thanks.
hxxp://www.arabe-media.com/livetv381.html
Here are what I came up but did not work.
<item>
<title>BEINSPORTS</title>
<link>$doregex[get-m3u8]</link>
<regex>
<name>get-m3u8</name>
<expres>ea \+ "(.*?)"</expres>
<page>https://www.janjua.tv/hembedplayer/beinsportsg2gv/1/700/400</page>
<referer>http://www.arabe-media.com/livetv381.html</referer>
<agent>Mozilla/5.0 (Linux; Android 4.1.1; Nexus 7 Build/JRO03D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Safari/535.19</agent>
<cookieJar></cookieJar>
</regex>
</item>
and this:
<item>
<title>BEINSPORTS</title>
<link>http://$doregex[get-server]$doregex[get-m3u8]</link>
<regex>
<name>get-server</name>
<expres>redirect=(.*?)</expres>
<page>https://tvportremote.com/loadbalancer?96415</page>
<referer>https://www.janjua.tv/hembedplayer/beinsportsg2gv/1/700/400</referer>
<agent>Mozilla/5.0 (Linux; Android 4.1.1; Nexus 7 Build/JRO03D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Safari/535.19</agent>
<cookieJar></cookieJar>
</regex>
<regex>
<name>get-m3u8</name>
<expres>ea \+ "(.*?)"</expres>
<page>https://www.janjua.tv/hembedplayer/beinsportsg2gv/1/700/400</page>
<referer></referer>
<agent>Mozilla/5.0 (Linux; Android 4.1.1; Nexus 7 Build/JRO03D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Safari/535.19</agent>
<cookieJar></cookieJar>
</regex>
</item>
 

upd8t3r

Member
Oct 16, 2019
46
18
8
@streamwatcher2013

The makelist you made for daddylive today's games stopped working. It throws an error for the list=re.findall line in makelist. It says index out of range for the error. I tried figuring it out but I don't understand using the GetLSProData method that well. Here's what you had:

XML:
<item>
<title>https://daddylive.live/index.php - Today Games TRY</title>
<link>$doregex[makelist]</link>
<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):
  today=time.strftime('%A %d',time.localtime())
  list=re.findall('%s(?s)<hr />.+?<h1.+?strong>([^<]+)'%today,page_data)[0]
  return re.findall('<h2>.+?">([^<]+)(?s)(.*?)<p>====',list)
]]></expres>
<page>https://daddylive.live/index.php</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR dodgerblue]([makelist2.param1]) [COLOR gold][makelist2.param3][/COLOR] - [makelist2.param2]</title>
  <link>$doregex[getUrl]</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):
  gtime=re.findall('(\d+:\d+)',page_data)
  for t in gtime:
    localtime=int(t[:-3]) -6  #  Subtract 6 from GMT +1. 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+)\s*(.+?)\s*:\s*([^<]+).+?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
def GetLSProData(page_data,Cookie_Jar,m):
  link=re.findall('<iframe\s*src="(.*?embed[^"]+)',page_data)[0]
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'[makelist2.param4]','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.param4]</page>
<referer>https://daddylive.live/index.php</referer>
</regex>
<thumbnail>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</thumbnail>
</item>


So I ended up created my own using the simpler regex method, it displays all of the links and works, it just doesn't display the day or correct the time like yours did, so you kind of have to know what events are today or you'll just be guessing. Here's the one that I created:

XML:
<item>
<title>[COLOR skyblue][B]DADDY LIVE SPORTING EVENTS [/B][/COLOR]</title>
<link>$doregex[channels]</link>
<thumbnail>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</thumbnail>
<fanart>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</fanart>
<regex>
  <name>channels</name>
  <listrepeat><![CDATA[
    <title>[COLOR skyblue][B][channels.param1] -- [channels.param3][/B][/COLOR]</title>
    <link>$doregex[url]|User-Agent=iPad</link>
    <thumbnail>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</thumbnail>
    <fanart>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</fanart>
  ]]></listrepeat>
  <expres><![CDATA[(?:<p>|/>)([^"]+)<a\s*href="([^"]+)".+?">([^"]+)</span>]]></expres>
  <page>https://daddylive.live/index.php</page>
  <referer>https://daddylive.live/</referer>
</regex>
<regex>
  <name>url</name>
  <expres>source:\s*"([^"]+)</expres>
  <page>$doregex[unpack]</page>
</regex>
<regex>
  <name>unpack</name>
  <expres>$pyFunction:get_unpacked(page_data,'(?s)(eval\(function\(p,a,c,k,e,d.*?)&lt;/.+')</expres>
  <page>$doregex[url2]</page>
  <referer>https://daddylive.live/</referer>
</regex>
<regex>
  <name>url2</name>
  <expres>iframe\s*src="([^"]+)</expres>
  <page>[channels.param2]</page>
  <referer>https://daddylive.live/</referer>
</regex>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Enjoy :). Change urlresolver or resolveurl for your need

LSP XML:
<item>
<title>https://daddylive.live/index.php</title>
<link>$doregex[makelist]</link>
<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('<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 dodgerblue][[makelist2.param1]]  [COLOR gold][makelist2.param2][/COLOR]</title>
  <link>$doregex[getUrl]</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
  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>
 

gujal

Developer
Dec 26, 2013
472
243
43
@streamwatcher2013 jsunpack and unwise are now part of LSP, dont need urlresolver or resolveurl for that functionality. you can go import jsunpack instead of from urlresolver.plugins.lib import jsunpack and use it as before
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Thanks @gujal The code updates

LSP XML:
<item>
<title>https://daddylive.live/index.php</title>
<link>$doregex[makelist]</link>
<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('<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 dodgerblue][[makelist2.param1]]  [COLOR gold][makelist2.param2][/COLOR]</title>
  <link>$doregex[getUrl]</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
  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,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>
 

turko03

Member
Mar 27, 2018
52
1
8
hi can you Help me this code

hxxps://netsportv2.com
 
  • Like
Reactions: myosmc

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Try this

LSP XML:
<item>
<title>NetSporTV</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
   <title>[COLOR gold][makelist.param3] vs [makelist.param2][COLOR dodgerblue]  ([makelist.param5] | [makelist.param4])[/COLOR]</title>
   <link>$doregex[getUrl]</link>
   <thumbnail>https://cdn.nsxcdn.com/cdn/ns/img/logo.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,json
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  rUrl=requests.get('https://netsportv2.com/',headers={'user-agent':'Mozilla/5.0','accept':'*/*'},allow_redirects=False).headers['Location']
  source=requests.get(rUrl,headers={'user-agent':'Mozilla/5.0','accept':'*/*'},).content;jslink=re.findall('src="(.*?default.js[^"]+)',source)[0]
  source=requests.get(jslink,headers={'user-agent':'Mozilla/5.0','referer':rUrl,'accept':'*/*'}).content
  html,fUrl=re.findall('(?s)url:\s*"([^"]+).+?append.+?"([^\'"]+)',source)[0]
  jdata=requests.get(html+'$doregex[ntime]',headers={'user-agent':'Mozilla/5.0','referer':rUrl,'accept':'*/*'}).json()
  data=[]
  for j in jdata:
     sID=j['streamid']
     sUrl=fUrl+j['streamid']
     home=j['eventhome']#.encode('utf8')
     away=j['eventaway']
     time=j['start']
     sport=j['sport']
     data.append((sUrl,home,away,time,sport,sID))
  return data
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url='[makelist.param1]&title=[makelist.param2]';ref='[makelist.param1]'[:23]
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','accept':'*/*'}).content
  return re.findall('id=.player[\w\W]*?(?:source|src|file):.+?[\'"](h[^\'"]+)',source)[0]+'[makelist.param6].m3u8|user-agent=ipad&referer'+urllib.quote_plus(ref)
]]></expres>
<page></page>
</regex>
<regex>
<name>ntime</name>
<expres><![CDATA[#$pyFunction
import time,math
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return int(math.floor(int(round(time.time() * 1000)) / 6000))
]]></expres>
<page></page>
</regex>
<thumbnail>https://cdn.nsxcdn.com/cdn/ns/img/logo.png</thumbnail>
</item>
 
  • Like
Reactions: altug and turko03

efradncr

Member
Mar 26, 2018
60
1
8
Hola @streamwatcher2013 podrias ayudarme a corregir este código que no abre los videos, te agradezco de antemano.
Code:
<item>
<item><title>[RESUMENES DE NOTICIAS ] [COLOR lime]CANAL 6[/COLOR] </title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param1]</title>
<link>plugin://plugin.video.youtube/play/?video_id=[makelist.param2]</link>
<thumbnail>https://i.ytimg.com/vi/[makelist.param2]/hqdefault.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,json,math
def GetLSProData(page_data,Cookie_Jar,m,purl='https://www.youtube.com'):#streamwatcher2013
  pageUrl='https://www.youtube.com/channel/UCr6TeVofbyCvtCdxV_niQKQ/videos'
  headers={'user-agent': 'Mozilla/5.0','referer':'https://www.youtube.com/channel/UCr6TeVofbyCvtCdxV_niQKQ/'}
  source=requests.get(pageUrl,headers=headers).content
  data=re.findall('dir="ltr".*?title="([^"]+)".*?watch\?v=(.*?)"',source)
  for itr in xrange(1,20):
     continuex=re.findall('data-uix-load-more-href="(.*?)"',source)[0].replace('amp;','');continuationx=purl+continuex
     data +=re.findall('dir="ltr".*?title="([^"]+)".*?watch\?v=(.*?)"',requests.get(continuationx,headers=headers).json()["content_html"])
  return data
]]></expres>
<page></page>
</regex>
<thumbnail>https://yt3.ggpht.com/a/AGF-l7-1Q5zKxZQcMqiW0AqqRCaKo9qPiKFZOzGLVg=s288-mo-c-c0xffffffff-rj-k-no</thumbnail>
<fanart>https://www.dropbox.com/s/ebipdmr3enwltl3/CANCR.jpeg?dl=1</fanart>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Try this:

LSP XML:
<item>
<item><title>[RESUMENES DE NOTICIAS ] [COLOR lime]CANAL 6[/COLOR] </title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param1]</title>
  <link>plugin://plugin.video.youtube/play/?video_id=[makelist.param2]</link>
  <thumbnail>https://i.ytimg.com/vi/[makelist.param2]/hqdefault.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,json,urllib2
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  html='https://www.youtube.com/channel/UCr6TeVofbyCvtCdxV_niQKQ/videos'
  source=urllib2.urlopen(html).read().replace('#39;','')
  data=re.findall('dir=.ltr..*?title=.([^"]+).*?watch\?v=([^\'"]+)',source)
  for itr in xrange(1,5):
    source=urllib2.urlopen(html).read().replace('&#39;','\'')
    lmore=re.findall('data-uix-load-more-href="/([^"]+)',source)[0].replace('amp;','').replace('&#39;','\'')
    source=urllib2.urlopen('https://www.youtube.com/%s'%lmore).read().replace('amp;','').replace('&#39;','\'')
    data +=re.findall('dir="ltr".*?title="([^"]+)".*?watch\?v=(.*?)"',json.loads(source)['content_html'])
  return data
]]></expres>
<page></page>
</regex>
<thumbnail>https://yt3.ggpht.com/a/AGF-l7-1Q5zKxZQcMqiW0AqqRCaKo9qPiKFZOzGLVg=s288-mo-c-c0xffffffff-rj-k-no</thumbnail>
<fanart>https://www.dropbox.com/s/ebipdmr3enwltl3/CANCR.jpeg?dl=1</fanart>
</item>
 

vbprofi

Member
Feb 9, 2016
74
3
8
Hello dear friends,
have somebody an idea for fix this example? I think the problem is cloudflare protection. the old solution from wiki don't work.

Code:
<item>
<title>german dayly iptv</title>
<link>$doregex[makelist]</link>

<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR cyan] [makelist.param1]  [/COLOR]</title>
<link>$doregex[play]</link>
<thumbnail>no</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#vbprofi
    return re.findall('href="(.*?)"', page_data)
]]></expres> -->
<page>https://www.dailyiptvlist.com/europe/german/</page>
</regex>
</item>
 

Beezlo

Member
Mar 17, 2016
31
0
6
Hi all can anybody fix this PLEASE

Dailymotion:
<item><title>FB TV</title>
<link>$doregex[url]|Cookie=$get_cookies$</link><regex>
   <name>url</name>
   <expres>(.*)#</expres>
   <page>$doregex[url2]&amp;redirect=0</page>
   <referer>http://www.dailymotion.com/</referer>
   <cookieJar/>
</regex><regex>
   <name>url2</name>
   <expres>$pyFunction:'$doregex[jsonurl]'.replace('\/','/')</expres>
   <page/>
</regex><regex>
   <name>jsonurl</name>
   <expres>mpegURL","url":"(.*?)"</expres>
   <page>http://www.dailymotion.com/embed/video/x21oo10</page>
   <cookieJar/>
</regex><thumbnail>https://www.dropbox.com/s/q96yc6fr9fkx4x4/fbtv_logo.png?dl=1</thumbnail><fanart></fanart></item>
 

gujal

Developer
Dec 26, 2013
472
243
43
Enjoy!

LSP XML:
<item>
  <title>FB TV</title>
  <dm>x21oo10</dm>
  <thumbnail>https://www.dropbox.com/s/q96yc6fr9fkx4x4/fbtv_logo.png?dl=1</thumbnail>
</item>
 
  • Like
Reactions: Doom and Beezlo

Million

New member
Dec 9, 2018
24
1
3
Here is:

XML:
<item>
<title>FB TV</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  source=requests.get(re.findall('mpegURL","url":"(h.*m3u8.*?)"',page_data)[0].replace('\\','')+'&redirect=0',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Referer':'http://www.dailymotion.com/embed/video/x21oo10','X-Requested-With':'XMLHttpRequest','Accept':'*/*'}).text
  return re.findall('(.*live-[3,4].*)#',source)[0] # 3 for 720p & 4 for 1080p
]]></expres>
<page>http://www.dailymotion.com/embed/video/x21oo10</page>
<cookieJar/>
</regex>
<thumbnail>http://www.cnews.fr/assets/images/sitewide/og_direct.png</thumbnail>
</item>
 

urualf

Member
Jan 19, 2016
40
0
6
hi ,please my question is possible this link reproduce in lsp ?thanks

hxxps://www.twitch.tv/summit1g
 

gujal

Developer
Dec 26, 2013
472
243
43
No Twitch is quite complex code, and has its own addon. Install that addon and in LSP use plugin:// notation to call the addon to play summit1g
 
  • Like
Reactions: urualf

Million

New member
Dec 9, 2018
24
1
3
🇦🇱 Here is bro:
XML:
<item>
<title>Twitch: summit1g</title>
<link>$doregex[play]</link>
<regex>
<name>play</name>
<expres><![CDATA[([^"']+)]]></expres>
<page>https://bit.ly/2UB3ooZ</page>
</regex>
</item>
 
  • Like
Reactions: urualf

Doom

Member
Sep 16, 2019
214
21
18
code stopped working last fix was by @m5Germany can someone take a look and thanks
<item>
<title>[COLOR=FF00FFFF]USA |[COLOR=FF00FF00] USTVGO.TV[/COLOR] | MakeList</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR=FF00FFFF]USA |[COLOR=FF00FF00] [makelist.param2][/COLOR]</title>
<link>$doregex[get-stream]|User-Agent=iPad&amp;Referer=http://ustvgo.tv/</link>
]]></listrepeat>
<expres><![CDATA[pis-title-link".*?["']([^"']+).*?\>([^\<]+)]]></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>get-stream</name>
<expres>file:\s*'([^']+)</expres>
<page>https://ustvgo.tv$doregex[get-iframe]</page>
</regex>
<regex>
<name>get-iframe</name>
<expres>iframe src=['"]([^'"]+)</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>
 

upd8t3r

Member
Oct 16, 2019
46
18
8
Here's a fixed working version.


XML:
<item>
<title>[COLOR skyblue][B]USTVGO[/B][/COLOR]</title>
<link>$doregex[makelist]</link>
<thumbnail>https://s-media-cache-ak0.pinimg.com/originals/37/31/ba/3731ba2dfa91ea1527f1c0044e3aae89.gif</thumbnail>
<fanart>https://s-media-cache-ak0.pinimg.com/originals/37/31/ba/3731ba2dfa91ea1527f1c0044e3aae89.gif</fanart>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR skyblue][B][makelist.param2][/B][/COLOR]</title>
<link>$doregex[getStream]|User-Agent=iPad&amp;Referer=https://ustvgo.tv$doregex[getIframe]</link>
<thumbnail>https://s-media-cache-ak0.pinimg.com/originals/37/31/ba/3731ba2dfa91ea1527f1c0044e3aae89.gif</thumbnail>
<fanart>https://s-media-cache-ak0.pinimg.com/originals/37/31/ba/3731ba2dfa91ea1527f1c0044e3aae89.gif</fanart>
]]></listrepeat>
<expres><![CDATA[pis-title-link".*?["']([^"']+).*?>([^\<]+)]]></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>getStream</name>
<expres>file:\s*'([^']+)</expres>
<page>$doregex[createSessionCookie]</page>
</regex>
<regex>
<name>createSessionCookie</name>
<expres>$pyFunction:sucuri_cookie.createCookie('http://ustvgo.tv$doregex[getIframe]',Cookie_Jar,'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1')</expres>
<page></page>
</regex>
<regex>
<name>getIframe</name>
<expres>iframe\s*src=['"]([^'"]+)</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>
 
  • Like
Reactions: dobbelina and Doom

vbprofi

Member
Feb 9, 2016
74
3
8
give an chance to create code for
Code:
https://www.dailyiptvlist.com/europe/german/
?
 

Million

New member
Dec 9, 2018
24
1
3
🇦🇱 🇩🇪
Here is:
@vbprofi
XML:
<item>
    <title>[COLOR blue][B]Germany[/B] [/COLOR]</title>
    <link>$doregex[leg]</link> <thumbnail>https://www.saamanagement.it/wp-content/uploads/2017/10/1200px-Flag_of_Germany.svg.png</thumbnail>
    <regex>
        <name>leg</name>
        <listrepeat><![CDATA[
       <title>[leg.param2]</title>
       <link>$doregex[list]</link>
       ]]></listrepeat>
        <expres><![CDATA[(?s)<h2 class="post-title".+?href="http(.+?)">(.*?)</a>]]></expres>
        <page>https://www.dailyiptvlist.com/europe/german/</page>
</regex>
 <regex>
<name>list</name>
<listrepeat><![CDATA[
<title>[list.param2]</title>
<link>NA</link>
<externallink>[list.param1]$$TSDOWNLOADER$$</externallink>
]]></listrepeat>
<expres><![CDATA[<a href="(.*?)">Download IpTV(.*?)</a>]]></expres>
<page>http[leg.param1]</page>
</regex>
<regex>
        <name>m3ulist</name>
        <listrepeat><![CDATA[
       <title>[m3ulist.param1]</title>
       <link>$doregex[file]</link>
       ]]></listrepeat>
        <expres><![CDATA[-1,(.*?)\n(.+)]]></expres>
        <page>[list.param1]</page>
        <Referer>[list.param1]</Referer>
    </regex>
    <regex>
        <name>file</name>
        <expres><![CDATA[#$pyFunction
       def GetLSProData(page_data,Cookie_Jar,m,url='[m3ulist.param2]'):
       import urllib
       u = url
       if '.ts' in url:
        u = 'plugin://plugin.video.f4mTester/?streamtype=TSDOWNLOADER&url=' + 
urllib.request.urlopen(url)
       return u
       ]]></expres>
        <page></page>
    </regex>
</item>
 

thingy

Member
May 9, 2018
58
0
6
help me with a regex for this channel
Code:
hxxps://www.limontv36.com/
 

thingy

Member
May 9, 2018
58
0
6
I have already mounted it on another and it works for me
Code:
<item>
<title>[36 limon]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import re
    import requests
    url = 'https://www.limontv36.com/'
    html = requests.get(url, headers={'User-Agent': 'Mozilla/5.0', 'Referer': 'https://www.limontv36.com/'}, verify=False).text
    return re.findall('(?s)source src="(.*?)" type="', html)[0]
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
<thumbnail></thumbnail><fanart></fanart>
</item>
 

turko03

Member
Mar 27, 2018
52
1
8
hi guys is possible

hxxp://ww3.selcuksportshd22.live/?m=1
 

Million

New member
Dec 9, 2018
24
1
3
Here is
XML:
<item>
<title>FB TV</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
source=requests.get(re.findall('mpegURL","url":"(h.*m3u8.*?)"',page_data)[0].replace('\\','')+'&redirect=0',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Referer':'http://www.dailymotion.com/embed/video/x21oo10','X-Requested-With':'XMLHttpRequest','Accept':'*/*'}).text
return re.findall('(.*live-[3,4].*)#',source)[0] # 3 for 720p & 4 for 1080p
]]></expres>
<page>http://www.dailymotion.com/embed/video/x21oo10</page>
<cookieJar/>
</regex>
<thumbnail></thumbnail>
</item>
 

Million

New member
Dec 9, 2018
24
1
3

Picapau

Member
Nov 15, 2018
69
9
8
Code:
<item>
<title>SOCCER 7</title>
<link>$doregex[makelist]</link>
<thumbnail></thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title> [COLOR dodgerblue]([makelist.param1])[/COLOR][COLOR gold] [makelist.param2][/COLOR]</title>
<link>http:$doregex[play]</link>
<thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[title="(\d+.*?)\s-\s(.*?)".href="(.*?)"]]></expres>
<page>http://www.goalsarena.co/en</page>
<referer>https://www.goalsarena.co/en/</referer>
<agent>Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.04</agent>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getiframe</name>
<expres><![CDATA[iframe src.[\'"]([^"']+)']]></expres>
<page>[makelist.param3]</page>
<referer>https://www.goalsarena.co/en/</referer>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getiframe2</name>
<expres><![CDATA[a href="(.*?)"]]></expres>
<page>$doregex[getiframe]</page>
<referer>[makelist.param3]</referer>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[iframe src.[\'"]([^"']+)']]></expres>
<page>$doregex[getiframe2]</page>
<referer>$doregex[getiframe]</referer>
<cookieJar></cookieJar>
</regex>
<regex>
<name>play</name>
<expres><![CDATA[source.[\'"]([^"']+)']]></expres>
<page>$doregex[getUrl]</page>
<referer>https://www.goalsarena.co/en/</referer>
<cookieJar></cookieJar>
</regex>
</item>
 
  • Like
Reactions: Million

thingy

Member
May 9, 2018
58
0
6
Is it possible to make a makelist of these stations to listen on LSP?
Code:
hXXps://www.radio.es/genre/ballads
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5