LSP Regex & Makelist Discussion.

dobbelina

Developer
Aug 11, 2013
24
2
3
USTVGO stopped working again, code below if somebody please could fix, thanks:
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>
 

upd8t3r

New member
Oct 16, 2019
10
3
3
Try this, I just tested and it seems to work for non-US.

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]&amp;X-Forwarded-For=198.23.143.11:8080</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>
 

dobbelina

Developer
Aug 11, 2013
24
2
3
No, it doesn't work.
They have started geo-blocking.
Browser message:
Block reason:Access from your Country was disabled by the administrator.
 

upd8t3r

New member
Oct 16, 2019
10
3
3
I know it's geo-blocked, that's the method I use for streaming other geo-blocked content. If you're wanting to view the site on a browser, you should check out Location Guard and similar apps to it, that hide your geo location and allow you to set a fixed location. Otherwise a simple solution is just to use a vpn and connect to a US server.
 

boomski2

New member
Aug 19, 2019
22
1
3
hi guys. anyone can help with this tamil site

Code:
https://tamilian.net/tamil-movies-online/
 

streamwatcher2013

Active member
Oct 24, 2013
546
144
43
USA
Try this:

LSP XML:
<item>
<title>https://tamilian.net/tamil-movies-online/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3] [COLOR dodgerblue]([makelist.param4])[/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param1]</thumbnail>
  <info>[makelist.param5]</info>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
  data=re.findall('(?s)"movie-poster".+?(?:img\s*|)src="([^"]+)".+?href="(.*?)"\s*title="([^"]+).+?movie-release.+?(\d+).+?story.>([^<]+)',page_data)
  for pn in xrange(2,4):  # increase 4 to higher number to get more streams
     pages='https://tamilian.net/tamil-movies-online/page/'+str(pn)+'/';source=requests.get(pages,headers={'user-agent':'Mozilla/5.0','accept':'*/*'}).content
     data +=re.findall('(?s)"movie-poster".+?(?:img\s*|)src="([^"]+)".+?href="(.*?)"\s*title="([^"]+).+?movie-release.+?(\d+).+?story.>([^<]+)',source)
  return sorted(data,key=lambda k: k[3],reverse=True)
]]></expres>
<page>https://tamilian.net/tamil-movies-online/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
  plink,IDs=re.findall('(?s)"video-content".+?action="([^"]+).+?value="([^"]+)',page_data)[0]
  source=requests.post(plink,headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param2]','x-requested-with':'XMLHttpRequest'},data={'id':IDs}).content
  slink=re.findall('"videoWrapper"[\w\W]*?iframe.+?src="([^"]+)',source)[0]
  source=requests.get(slink,headers={'user-agent':'Mozilla/5.0','referer':plink,'accept':'*/*'}).content
  packed=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0]).replace('\\','')
  return re.findall('src:[\'"]([^\'"]+)',packed)[0]+'|user-agent=ipad&referer='+slink
]]></expres>
<page>[makelist.param2]</page>
<page>https://tamilian.net/tamil-movies-online/</page>
</regex>
<thumbnail>https://tamilian.net/android-icon-192x192.png</thumbnail>
</item>
 

streamwatcher2013

Active member
Oct 24, 2013
546
144
43
USA
running LSP 2.9.3. if you get error try to add the line contains resolve line below import line
Code:
import re,requests,jsunpack
from urlresolver.plugins.lib import jsunpack

or 
import re,requests,jsunpack
from resolveurl.plugins.lib import jsunpack
 

franciscotorre

New member
Feb 14, 2020
2
0
1

streamwatcher2013

Active member
Oct 24, 2013
546
144
43
USA
Try this

LSP XML:
<item>
<title>http://lacasadeltikitaka.info/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[href="([^"]+).+?"tv".+?title="([^="]+).+?src="([^"]+)]]></expres>
<page>https://revolucionariostv.eu/inicio.php</page>
<referer>http://lacasadeltikitaka.info/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urllib,jsunpack
def GetLSProData(page_data, Cookie_Jar,m):#streamwatcher
  link=re.findall('id="tv".+?src=[\'"]([^\'"]+)',page_data)[0]
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param1]'}).content.decode('ascii','ignore')
  glink=re.findall('iframe.+?src=[\'"](.+?/(?:MultiTV|Repros)[^\'"]+)',source)[0]
  if 'Repros' in glink:
     source=requests.get(glink,headers={'user-agent':'Mozilla/5.0','referer':link}).content
     if 'janjua.tv' in source:
        cn,gID=re.findall('channel=[\'"]([^\'"]+).+?g=[\'"](\d+).+?janjua',source)[0]
        jjurl='https://www.janjua.tv/hembedplayer/%s/%s/730/430'%(cn,gID)
        fsource=requests.get(jjurl,headers={'user-agent':'Mozilla/5.0','referer':glink,'accept':'*/*'}).content
        jsurl,scheme,netloc,param,blurl=re.findall('(?s)text.javascript.\s*src=[\'"](.*?newjanjua[^\'"]+).+?var\s*hlsUrl.+?"([^"]+).+?"([^"]+).+?enableVideo.[\'"]([^\'"]+).+?ajax.{url.+?"([^"]+)',fsource)[0]
        jssource=requests.get(jsurl,headers={'user-agent':'Mozilla/5.0','referer':jjurl,'accept':'*/*'}).content
        if 'substring' in jssource:
           p1,p2=re.findall('enableVideo.+?,(\d+).+?(\d+)',jssource)[0];param=param[:int(p1)]+param[int(p2):]
           blsource=requests.get(blurl,headers={'user-agent':'Mozilla/5.0','referer':jjurl,'accept':'*/*'}).content
           furl=re.findall('(.*)',blsource)[0].split('=')[1]
           return '%s%s%s%s|user-agent=ipad&referer=%s'%(scheme,furl,netloc,param,jjurl)
        else:
           blsource=requests.get(blurl,headers={'user-agent':'Mozilla/5.0','referer':jjurl,'accept':'*/*'}).content
           furl=re.findall('(.*)',blsource)[0].split('=')[1]
           return '%s%s%s%s|user-agent=ipad&referer=%s'%(scheme,furl,netloc,param,jjurl)
     elif 'montenegroweb' in source:
        html=re.findall('iframe.+?src="(.+?montenegroweb[^"]+)',source)[0]
        source=requests.get(html,headers={'user-agent':'Mozilla/5.0','referer':glink}).content
        if 'sportsbay.org' in source:
           furl='https:'+re.findall('<iframe .+?src.+?(//sportsbay.org[^\'"]+)',source)[0]
           sbsource=requests.get(furl,headers={'user-agent':'Mozilla/5.0','referer':html,'accept':'*/*'}).content
           return re.findall('Clappr.Player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',sbsource)[0]+'|user-agent=ipad&referer='+furl
        elif 'janjua.tv' in source:
           cn,gID=re.findall('channel=[\'"]([^\'"]+).+?g=[\'"](\d+).+?janjua',source)[0]
           jjurl='https://www.janjua.tv/hembedplayer/%s/%s/730/430'%(cn,gID)
           fsource=requests.get(jjurl,headers={'user-agent':'Mozilla/5.0','referer':glink,'accept':'*/*'}).content
           jsurl,scheme,netloc,param,blurl=re.findall('(?s)text.javascript.\s*src=[\'"](.*?newjanjua[^\'"]+).+?var\s*hlsUrl.+?"([^"]+).+?"([^"]+).+?enableVideo.[\'"]([^\'"]+).+?ajax.{url.+?"([^"]+)',fsource)[0]
           jssource=requests.get(jsurl,headers={'user-agent':'Mozilla/5.0','referer':jjurl,'accept':'*/*'}).content
           if 'substring' in jssource:
              p1,p2=re.findall('enableVideo.+?,(\d+).+?(\d+)',jssource)[0];param=param[:int(p1)]+param[int(p2):]
              blsource=requests.get(blurl,headers={'user-agent':'Mozilla/5.0','referer':jjurl,'accept':'*/*'}).content
              furl=re.findall('(.*)',blsource)[0].split('=')[1]
              return '%s%s%s%s|user-agent=ipad&referer=%s'%(scheme,furl,netloc,param,jjurl)
           else:
              blsource=requests.get(blurl,headers={'user-agent':'Mozilla/5.0','referer':jjurl,'accept':'*/*'}).content
              furl=re.findall('(.*)',blsource)[0].split('=')[1]
              return '%s%s%s%s|user-agent=ipad&referer=%s'%(scheme,furl,netloc,param,jjurl)
     else:
        source=requests.get(glink,headers={'user-agent':'Mozilla/5.0','referer':link}).content
        dlink='https:'+re.findall('iframe\s*src.+?(//[^\'"]+)',source)[0]
        source=requests.get(dlink,headers={'user-agent':'Mozilla/5.0','referer':url}).content
        m3u8=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0])
        return re.findall('player.src[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',m3u8)[0]+'|user-agent=ipad&referer-'+dlink
  elif 'MultiTV' in glink:
     source=requests.get(glink,headers={'user-agent':'Mozilla/5.0','referer':link}).content
     url=re.findall('iframe.+?src="(.+?Repros[^"]+)',source)[0]
     source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':glink}).content
     html=re.findall('id="tv".+?src="([^"]+)',source)[0]
     source=requests.get(html,headers={'user-agent':'Mozilla/5.0','referer':url}).content
     cn,gID=re.findall('channel=[\'"]([^\'"]+).+?g=[\'"](\d+).+?janjua',source)[0]
     jjurl='https://www.janjua.tv/hembedplayer/%s/%s/730/430'%(cn,gID)
     fsource=requests.get(jjurl,headers={'user-agent':'Mozilla/5.0','referer':html,'accept':'*/*'}).content
     jsurl,scheme,netloc,param,blurl=re.findall('(?s)text.javascript.\s*src=[\'"](.*?newjanjua[^\'"]+).+?var\s*hlsUrl.+?"([^"]+).+?"([^"]+).+?enableVideo.[\'"]([^\'"]+).+?ajax.{url.+?"([^"]+)',fsource)[0]
     jssource=requests.get(jsurl,headers={'user-agent':'Mozilla/5.0','referer':jjurl,'accept':'*/*'}).content
     if 'substring' in jssource:
        p1,p2=re.findall('enableVideo.+?,(\d+).+?(\d+)',jssource)[0];param=param[:int(p1)]+param[int(p2):]
        blsource=requests.get(blurl,headers={'user-agent':'Mozilla/5.0','referer':jjurl,'accept':'*/*'}).content
        furl=re.findall('(.*)',blsource)[0].split('=')[1]
        return '%s%s%s%s|user-agent=ipad&referer=%s'%(scheme,furl,netloc,param,jjurl)
     else:
        blsource=requests.get(blurl,headers={'user-agent':'Mozilla/5.0','referer':jjurl,'accept':'*/*'}).content
        furl=re.findall('(.*)',blsource)[0].split('=')[1]
        return '%s%s%s%s|user-agent=ipad&referer=%s'%(scheme,furl,netloc,param,jjurl)
]]></expres>
<page>[makelist.param1]</page>
<referer>https://revolucionariostv.eu/inicio.php</referer>
</regex>
</item>
 

JonnyB

New member
Oct 8, 2016
7
0
1
Hi,

Possible a regex from here:

Code:
https://www.redbull.com/int-en/channels/best-of-red-bull-stream
I think the site has diferent quality streams, is it possible to choose from regex?

Thanks
 

streamwatcher2013

Active member
Oct 24, 2013
546
144
43
USA
Try this

LSP XML:
<item>
<title>https://www.redbull.com/int-en/channels/best-of-red-bull-stream</title>             
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar,m):#streamwatcher
  ref='https://www.redbull.com/int-en/channels/best-of-red-bull-stream'
  tok=requests.get('https://api.redbull.tv/v3/session?os_family=http',headers={'user-agent':'ipad','host':'api.redbull.tv','referer':ref}).json()['token']
  html=requests.get('https://dms.redbull.tv/v3/linear-borb/%s/playlist.m3u8'%tok,headers={'user-agent':'ipad','referer':ref},allow_redirects=False).url
  m3u8=requests.get(html,headers={'user-agent':'ipad','referer':ref}).text
  if 'x1080' in m3u8:
     return re.findall('x1080.*\n(.*)',m3u8)[0]+'|user-agent=ipad&origin=https://www.redbull.com&referer='+ref
  elif 'x720' in m3u8:
     return re.findall('x720.*\n(.*)',m3u8)[0]+'|user-agent=ipad&origin=https://www.redbull.com&referer='+ref
  else:
     return re.findall('x480.*\n(.*)',m3u8)[0]+'|user-agent=ipad&origin=https://www.redbull.com&referer='+ref
]]></expres>
<page></page>
</regex>
<thumbnail>https://sofa-entertainment.tv/wp-content/uploads/2014/10/redbulltv.jpg</thumbnail>
</item>
 

streamwatcher2013

Active member
Oct 24, 2013
546
144
43
USA
Or you mean like this:

LSP XML:
<item>
<title>https://www.redbull.com/int-en/channels/best-of-red-bull-stream</title>             
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold]Red Bull TV[COLOR dodgerblue] ([makelist.param1]p)[/COLOR]</title>
  <link>[makelist.param2]|user-agent=ipad&amp;referer=https://www.redbull.com/int-en/channels/best-of-red-bull-stream</link>
  <thumbnail>https://sofa-entertainment.tv/wp-content/uploads/2014/10/redbulltv.jpg</thumbnail>
  <fanart>https://wallpapercave.com/wp/wp2072660.jpg</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar,m):#streamwatcher
  ref='https://www.redbull.com/int-en/channels/best-of-red-bull-stream'
  tok=requests.get('https://api.redbull.tv/v3/session?os_family=http',headers={'user-agent':'ipad','host':'api.redbull.tv','referer':ref}).json()['token']
  html=requests.get('https://dms.redbull.tv/v3/linear-borb/%s/playlist.m3u8'%tok,headers={'user-agent':'ipad','referer':ref},allow_redirects=False).url
  m3u8=requests.get(html,headers={'user-agent':'ipad','referer':ref}).text;list=re.findall('x240(?s)(.*)',m3u8)[0]
  return re.findall('RESOLUTION.+?x(\d+).*\n(.*)',list)
]]></expres>
<page></page>
</regex>
<thumbnail>https://sofa-entertainment.tv/wp-content/uploads/2014/10/redbulltv.jpg</thumbnail>
<fanart>https://wallpapercave.com/wp/wp2072727.jpg</fanart>
</item>
 

BymemoLee

Member
Apr 30, 2018
51
6
8
Hello, can you help me this site thanks in advance
Code:
https://vegol.live/
 

streamwatcher2013

Active member
Oct 24, 2013
546
144
43
USA
Try this:

LSP XML:
<item>
<title>https://vegol1.live/ | Channels</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <inputstream>$doregex[getUrl]</inputstream>
  <thumbnail>https://vegol1.live/wp-content/uploads/2019/08/logo-small.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
  return re.findall('class="(?:active\s*|)item live".+?href="([^"]+).+?name.>([^<]+)',re.findall('id="channel-list">(?s)(.*?)</section',page_data)[0])
]]></expres>
<page>https://vegol1.live/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
  link=re.findall('id="player".+?data-player-url="([^#]+)',page_data)[0]
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param1]','accept':'*/*'}).content
  decoder=re.findall('JSON.parse.atob.[\'"]([^\'"\)]+)',source)[0].decode('base64').replace('\\','')
  return re.findall('\[[\'"]([^\'",]+)',decoder)[0]
]]></expres>
<page>[makelist.param1]</page>
<page>https://vegol1.live/</page>
</regex>
<thumbnail>https://vegol1.live/wp-content/uploads/2019/08/logo-small.png</thumbnail>
</item>
 

cearuchos

New member
Oct 30, 2019
7
0
1
Is it possible a regex for hxxp://yoursports.stream
 

streamwatcher2013

Active member
Oct 24, 2013
546
144
43
USA
Try this:

LSP XML:
<item>
<title>http://yoursports.stream</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2] [COLOR dodgerblue][makelist.param1][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  url='http://yoursports.stream/games.js?x='+re.findall('src="(/games.js[^"]+)',page_data)[0]
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'http://yoursports.stream','accept':'*/*'}).content
  return re.findall('time:.([^\'"]+)..chan:.([^\'"]+)..url:.([^\'"]+)',source)
]]></expres>
<page>http://yoursports.stream</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar,m):#streamwatcher
  url='http://yoursports.stream'+re.findall('id=playframe.+?src="([^"]+)',page_data)[0]
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'http://yoursports.stream/live?v=[makelist.param3]'}).content
  return re.findall('atob.[\'"]([^\'"]+)',source)[0].decode('base64')+'|user-agent=ipad&referer='+url
]]></expres>
<page>http://yoursports.stream/live?v=[makelist.param3]</page>
<referer>http://yoursports.stream</referer>
</regex>
</item>
 
  • Like
  • Winner
Reactions: altug and cearuchos

Beezlo

Member
Mar 17, 2016
31
0
6
Hello anybody fix this please?

XML:
<item>
<title>[COLOR magenta]C[COLOR white]UKUR[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[encodeURL.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
 if 'Bölüm Seçiniz' in page_data:
   return re.findall('(?s).*?data-href="/([^<]+)".>([^<]+)</a>',re.findall('class="dropdown-content dropdown-scroll">(?s)(.*?)</div',page_data)[0])
 elif 'Bölüm Seçiniz' not in page_data:
   return re.findall('(?s)<a href="/(.*?)"[\w\W]*?<img.+?src="(.*?)"[\w\W]*?<span class="title">(.*?)</span>',re.findall('<section>(?s)(.*?)</section>',page_data)[0])
]]></expres>
<page>https://www.showtv.com.tr/dizi/tanitim/cukur/2076</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3] ([makelist2.param1]. Part)[/COLOR]</title>
  <link>$doregex[get-pixel]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
 if '"video-part"' in page_data:
   list=re.findall('video-part-name">(?s)(.*?)</ul',page_data)[0].replace('\/','/')
   title=re.findall('href.+?>(\d+)<',list);link=re.findall('href="/([^"]+)',list)
   return zip(title,link)
 elif '"video-part"' not in page_data:
   list=re.findall('"TVEpisode"(?s)(.*?)</script',page_data)[0].replace('\/','/')
   return re.findall('"episodeNumber":"([^"]+)".*?url".*?.tr/([^"]+)',list)
]]></expres>
<page>https://www.showtv.com.tr/[makelist.param1]</page>
</regex>
<regex>
<name>get-pixel</name>
<listrepeat><![CDATA[
    <title>[get-pixel.param1]p</title>
    <link>$doregex[getUrl]</link>       
]]></listrepeat>
<expres>u'(.*?)'</expres>
<page>$doregex[get-number]</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>get-number</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
   import re
   number = re.findall('page-(.*?),', page_data)
   return number
]]></expres>
<page>(page-1080,page-720,page-540,page-360,)</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('"ht_files"(?s)(.*?)<script',page_data)[0].replace('\/','/')
  data='[get-pixel.param1]'
  if '1080' in data:
    return re.findall('"name":"1080"."file":"([^"]+)',list)[0]+'|Referer=https://www.showtv.com.tr/[makelist2.param2]'
  elif '720' in data:
    return re.findall('"name":"720"."file":"([^"]+)',list)[0]+'|Referer=https://www.showtv.com.tr/[makelist2.param2]'
  elif '540' in data:
    return re.findall('"name":"480"."file":"([^"]+)',list)[0]+'|Referer=https://www.showtv.com.tr/[makelist2.param2]'
  elif '360' in data:
    return re.findall('"name":"360"."file":"([^"]+)',list)[0]+'|Referer=https://www.showtv.com.tr/[makelist2.param2]'
  else:
    return re.findall('"name":"Standart"."file":"([^"]+)',list)[0]+'|Referer=https://www.showtv.com.tr/[makelist2.param2]'
]]></expres>
<page>https://www.showtv.com.tr/[makelist2.param2]</page>
<referer>https://www.showtv.com.tr/[makelist2.param2]</referer>
<agent>Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Mobile Safari/537.36</agent>
<cookieJar></cookieJar>
</regex>
<thumbnail>http://aslininsureti.com/wp-content/uploads/2017/10/yama%C3%A7-ko%C3%A7oval%C4%B1-aras-bulut-iynemli-%C3%A7ukur-1c.jpg</thumbnail>
</item>
 

streamwatcher2013

Active member
Oct 24, 2013
546
144
43
USA
Try this:

LSP XML:
<item>
<title>https://www.showtv.com.tr/dizi/tanitim/cukur/2076</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR yellow][makelist.param3][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param2]</thumbnail>
  <info>[makelist.param4]</info>
]]></listrepeat>
<expres><![CDATA[(?s)class="box box-xs-12".+?a\s*href="/([^"]+).+?data-src="([^"]+).+?"title">([^<]+).+?"description">([^<]+)]]></expres>
<page>https://www.showtv.com.tr/dizi/tanitim/cukur/2076</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('"ht_(?:video_id|embed_link)"(?s)(.*?)<script',page_data)[0].replace('\\','')
  fm3u8=re.findall('"ht_files":.+?file":"([^"]+)',list)[0]
  if '"1080' in list:
    return fm3u8.replace('.m3u8','_1920x1080.mp4')+'|user-agent=ipad&referer=https://www.showtv.com.tr/[makelist.param1]'
  elif '"720' in list:
    return fm3u8.replace('.m3u8','_1280x720.mp4')+'|user-agent=ipad&referer=https://www.showtv.com.tr/[makelist.param1]'
  elif 'ht_mobile' in list:
    return re.findall('"ht_mobile_m3u8":"([^"]+)',list)[0]+'|user-agent=ipad&referer=https://www.showtv.com.tr/[makelist.param1]'
  else:
    source=requests.get(fm3u8,headers={'user-agent':'Mozilla/5.0','referer':'https://www.showtv.com.tr/[makelist.param1]'}).content
    m3u8=fm3u8[:42]
    if 'x1080' in source:
       return m3u8+re.findall('x1080.*\n(.*)',source)[0]+'|user-agent=ipad&referer=https://www.showtv.com.tr/[makelist.param1]'
    elif 'x720' in source:
       return m3u8+re.findall('x720.*\n(.*)',source)[0]+'|user-agent=ipad&referer=https://www.showtv.com.tr/[makelist.param1]'
    else:
       return m3u8+re.findall('x480.*\n(.*)',source)[0]+'|user-agent=ipad&referer=https://www.showtv.com.tr/[makelist.param1]'
]]></expres>
<page>https://www.showtv.com.tr/[makelist.param1]</page>
<referer>https://www.showtv.com.tr/dizi/tanitim/cukur/2076</referer>
</regex>
</item>
 
  • Like
Reactions: Beezlo

kavan

Member
Aug 14, 2016
51
2
8
Is it possible to regex this Directory ?
Code:
http://dl2.uploadmax.ir/Film/New-Server/Series/Narcos%20Mexico/
Thanks in advance
 

streamwatcher2013

Active member
Oct 24, 2013
546
144
43
USA
Try this:

LSP XML:
<item>
<title>Narcos Mexico</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <link>$doregex[makelist2]</link>
]]></listrepeat>
<expres><![CDATA[href.+?>(\w[^/<]+)]]></expres>
<page>http://dl2.uploadmax.ir/Film/New-Server/Series/Narcos%20Mexico/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold]Narcos Mexico [COLOR dodgerblue](Eps. [makelist2.param2])[/COLOR]</title>
  <link>[makelist2.param1]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
  hUrl='http://dl2.uploadmax.ir/Film/New-Server/Series/Narcos%20Mexico/[makelist.param1]/'+re.findall('href="(720[^">]+)',page_data)[0]
  source=requests.get(hUrl).content
  list=re.findall('</h1>(?s)(.*)',source)[0]
  stream=re.findall('href="(\w[^">]+)',list)
  for s in stream:
     fstream=hUrl+s
     list=list.replace(s,fstream)
  return re.findall('href="(h.+?\.(s[^\.]+)[^"]+)',list)
]]></expres>
<page>http://dl2.uploadmax.ir/Film/New-Server/Series/Narcos%20Mexico/[makelist.param1]/</page>
</regex>
</item>
 
  • Like
Reactions: kavan

adrianhn

New member
Mar 20, 2014
19
4
3
any help with this

Code:
ESPN 
hxxps://byetv.xyz/online.php?id=63

 ESPN DEPORTES 
hxxps://byetv.xyz/online.php?id=88
thks
 

streamwatcher2013

Active member
Oct 24, 2013
546
144
43
USA
May be not playable within AES

Code:
https://bye2.xyz/live/bygaewhqt.m3u8?token=c2VydmVyX3RpbWU9MTU4MjI0MjI2OCZoYXNoX3ZhbHVlPXVKbVI1cjJoeExQalAzNTd1ZlNlQmc9PSZ2YWxpZG1pbnV0ZXM9MTA=

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:19397
#EXT-X-TARGETDURATION:10
#EXT-X-KEY:METHOD=AES-128,URI="https://byetv.xyz/videokey.php?e=bye2&key=bygaewhqt-19394.key",IV=0x00000000000000000000000000004BC2
#EXTINF:8.342,
bygaewhqt-19397.ts
 

Doom

Member
Sep 16, 2019
30
2
8
Can someone help me fixing this code stopped working & thanks!
<item>
<title>NBA GAMES</title>
<genre></genre>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR blue][makelist.param4][/COLOR] [COLOR red]|[/COLOR] [COLOR white][makelist.param3][/COLOR]</title>
<link>$doregex[m3u8]|Referer=http://nbastreams.xyz/schedule/&amp;User-Agent=Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Mobile Safari/537.36</link>
<thumbnail>http://nbastreams.xyz/schedule/[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[href='(.*?)'[\w\W]*?src='(.*?)'[\w\W]*?heading'>\s(.*?)<[\w\W]*?p>(.*?)<]]></expres>
<page>http://nbastreams.xyz/schedule/</page>
<referer>http://nbastreams.xyz/schedule/</referer>
<cookieJar></cookieJar>
</regex>
<regex>
<name>m3u8</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
source=requests.get('[makelist.param1]', headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'}).text;link=re.findall('iframe.*?src="(.*?)"',source)[0]
source=requests.get(link,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Referer':'[makelist.param1]','Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'}).text;return re.findall('source: "(.*?)"',source)[0]+'|User-Agent=iPad&Referer='+link
]]></expres>
<page></page>
<thumbnail></thumbnail>
</regex>
</item>
 

Download

New member
Jun 16, 2016
9
1
3
Japan
Hi.Is it possible to regex this url epl-1 ?

Code:
https://www.iptv4k.tv/tv/884
Code:
https://cdn-edge-sg2.idoohd.com/play/98a3447e7cb89824a766f2b2c9a9ddea/0bd0bdd49bb6b4d9f7ce902ede7fad09/1582418170/playlist.m3u8
 
Thread starter Similar threads Forum Replies Date
J Scraper Development 0
D Apple TV 4 44
O Addon Requests 5