LSP Regex & Makelist Discussion.

Doom

Member
Sep 16, 2019
188
20
18
Need a code for a m3u that changes only the username & password often with user-agent=vlc and hope i explained my self correctly & thanks

example👇
hxxp://adc.net:25461/get.php?username=xxxx&password=xxxx&type=m3u
 

streamwatcher2013

Well-known member
Oct 24, 2013
785
317
63
USA
may be like this:

LSP XML:
<item>
<title>get m3u</title>
<link>$doregex[getm3u]</link>
<regex>
<name>getm3u</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#
  uname,pword=re.findall('adc.net:25461/get.php.+?e=([^&]+).+?d=([^&]+)',page_data)[0]
  return 'http://adc.net:25461/get.php?username=%s&password=%s&type=m3u'%(uname,pword)
]]></expres>
<page>http://......main url contains the m3u link........</page>
</regex>
</item>
 
  • Like
Reactions: Doom

juju

New member
Jul 6, 2016
19
1
3
hello thanks for you help ,y try put username ,pass and url but not working ,my questios is in the page need put only http o need put everithing with username and pass too?

<item>
<title>get m3u</title>
<link>$doregex[getm3u]</link>
<regex>
<name>getm3u</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#
uname,pword=re.findall('adc.net:25461/get.php.+?e=([^&]+).+?d=([^&]+)',page_data)[0]
return 'http://adn.globaldomain.ml:8000/get.php?username xxxxx=%s&password xxxxxx=%s&type=m3u'%(uname,pword)
]]></expres>
<page>http://adn.globaldomain.ml:8000</page>
</regex>
</item>
 

juju

New member
Jul 6, 2016
19
1
3
in the xxxx i put my usename and pass but not working ,y try one more time ,but its ok guys you the best everithing help with link and regex thnk you so much
 

anisesl2

New member
Sep 1, 2020
3
0
1
alguien me ayuda con un regez para (LIVE LINK REMOVED)
 
Last edited by a moderator:

faustino

New member
Sep 1, 2020
10
0
1
Someone help me with the regex for this site?
in "EXTRA HD OPTION" (OPÇÃO EXTRA HD)

(LIVE LINK REMOVED)
 
Last edited by a moderator:

tungbeng95

Member
Oct 25, 2018
228
7
18
Can help me this?
https://ethiov.com/single-channel/114
 

streamwatcher2013

Well-known member
Oct 24, 2013
785
317
63
USA
Try this:

LSP XML:
<item>
<title>Ethio V</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://ethiov.com/single-channel/114',headers={'user-agent':'Mozilla/5.0'},verify=False).content
  url=re.findall('"video-container.*?src=[\'"]([^\'"]+)',source)[0];url='https:'+url if url.startswith('//') else url
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0'},verify=False).content
  stream=urllib.quote_plus(re.findall('var\s*src=[\'"]([^\'"]+)',source)[0])
  return 'plugin://plugin.video.f4mTester/?streamtype=HLSRETRY&url=%s&name=Ethio V|user-agent=VLC&referer=https://video2b.vixtream.net/'%stream
]]></expres>
<page></page>
</regex>
<thumbnail>https://ethiov.com/img/EthioV_LOGO3.png</thumbnail>
</item>


<item>
<title>Ethio V</title>
<link>plugin://plugin.video.f4mTester/?streamtype=HLSRETRY&amp;url=$doregex[getUrl]&amp;name=Ethio V&amp;iconImage=https://ethiov.com/img/EthioV_LOGO3.png|user-agent=VLC&amp;referer=https://video2b.vixtream.net/</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://ethiov.com/single-channel/114',headers={'user-agent':'Mozilla/5.0'},verify=False).content
  url=re.findall('"video-container.*?src=[\'"]([^\'"]+)',source)[0];url='https:'+url if url.startswith('//') else url
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0'},verify=False).content
  return urllib.quote_plus(re.findall('var\s*src=[\'"]([^\'"]+)',source)[0])
]]></expres>
<page></page>
</regex>
<thumbnail>https://ethiov.com/img/EthioV_LOGO3.png</thumbnail>
</item>
 

tungbeng95

Member
Oct 25, 2018
228
7
18
My kodi can't install addon: plugin://plugin.video.f4mTester/,it said: The dependency on script.video.F4m.Proxy 2.7.1 could not be satisfied.
 

kavan

Member
Aug 14, 2016
62
5
8
Hi
Can any one help me with this link?
Code:
https://www.gemonline.tv/en-US/Live/Index?channelname=gemtv
Thanks in advance
 

peterpan

Active member
Jul 7, 2013
110
79
28
@kavan Just in case they change that cloudfront header :)


Code:
<item>
<title>GEM TV</title>
<link>$doregex[getM3U8]|User-Agent=iPad</link>
<regex>
<name>getM3U8</name>
<expres>value="(http.*?)"</expres>
<page>https://www.gemonline.tv/en-US/Live/Index?channelname=gemtv</page>
</regex>
</item>
 
  • Like
Reactions: kavan

tungbeng95

Member
Oct 25, 2018
228
7
18

faustino

New member
Sep 1, 2020
10
0
1
Someone help me with the regex for this site?
in "EXTRA HD OPTION" (OPÇÃO EXTRA HD)

https://multicanais.com/sportv-ao-vivo-online-24horashd/
 

gujal

Developer
Dec 26, 2013
423
209
43
Enjoy!

LSP XML:
<item>
  <title>Sport TV</title>
  <inputstream>https://onair.cds.nowonline.com.br/Content/dsc/Live/Channel(SPOSPTHD)/manifest.mpd$$lic=https://futebolonlineaovivo.com/license/now/widevine.php|Origin=https://multicanais.com&amp;Referer=https://multicanais.com/|R{SSM}|</inputstream>
  <thumbnail>http://s.glbimg.com/es/ge/static/live/sportv/img/logos/facebook.png</thumbnail>
</item>
 

gujal

Developer
Dec 26, 2013
423
209
43
You need the following installed
  1. Kodi 18.x
  2. LSP 2.9.1 or above installed
  3. Videoplayer Inputstream Adaptive must be installed
  4. Inputstream Helper must be installed
Then in the Inpustream Helper addon, install Widevine Decryption library.

Once you have done all the above the XML will work
 

streamwatcher2013

Well-known member
Oct 24, 2013
785
317
63
USA
Use the other option works fine. Seem like static link

LSP XML:
<item>
<title>Sport TV</title>
<link>https://live.tvfolha.com/SPORTV/video.m3u8|user-agent=ipad&referer=https://esporteone.com/player/jogos.php?canal=SPORTV</link>
<thumbnail>http://s.glbimg.com/es/ge/static/live/sportv/img/logos/facebook.png</thumbnail>
</item>

OR

<item>
<title>Sport TV</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  s=requests.get('https://multicanais.com/sportv-ao-vivo-online-24horashd/',headers={'user-agent':'Mozilla/5.0','accept':'*/*'})
  link=re.findall('data-id="(.*?jogos.php[^"]+)',s.content)[0]
  page_data=requests.get(link,headers={'user-agent':'Mozilla/5.0','accept':'*/*'},cookies=s.cookies).content
  values=eval(re.findall('var.*?(\[[^;]+)',page_data)[0])
  oval=int(re.findall('replace.*?- (\d*)', page_data)[0])
  msource=''
  for v in values:
    msource +=chr(int(re.findall('\D*(\d*)',v.decode('base64'))[0]) - oval)
  return re.findall('player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',msource)[0]+'|user-agent=ipad&referer='+link
]]></expres>
<page></page>
</regex>
<thumbnail>http://s.glbimg.com/es/ge/static/live/sportv/img/logos/facebook.png</thumbnail>
</item>
 
  • Like
Reactions: faustino

faustino

New member
Sep 1, 2020
10
0
1
@streamwatcher2013

The site has been updated and now a token exists

https://live.esporteone.com/COMBATE/video.m3u8?token=e228a50a4e19207460309564f9e9f976df16a32f-ed88a286e41ff1d3e6751b53e20c43bd-1599967810-1599964.1810&remote=191.253
 

Doom

Member
Sep 16, 2019
188
20
18
Could i get help for all channels "spain & latinos" from here & thanks!
hxxps://www.verlatele.net
 

streamwatcher2013

Well-known member
Oct 24, 2013
785
317
63
USA
Try this

LSP XML:
<item>
<title>https://www.verlatele.net</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param3]</title> 
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  gtitle=re.findall('class="blocks-gallery-item".+?alt="([^"]+)',page_data)
  for t in gtitle:
    title=t.title()
    page_data=page_data.replace(t,title)
  return re.findall('class="blocks-gallery-item".+?href="([^"]+).+?data-src="([^"]+).\s*alt="([^"]+)',page_data)
]]></expres>
<page>https://www.verlatele.net</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  murl='[makelist.param1]';murl='https://www.verlatele.net'+murl if murl.startswith('/') else murl
  msource=requests.get(murl,headers={'user-agent':'Mozilla/5.0','referer':'https://www.verlatele.net','accept':'*/*'}).content
  url=re.findall('(?:(?:data-|src)|href)="(.+?/TV[^"]+)|$',msource)[0];url='https:'+url if url.startswith('//') else url
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param1]','accept':'*/*'},cookies=Cookie_Jar).content
  if 'm3u8' in source:
    return re.findall('(?:P|p)layer[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer='+url
  elif 'wstream' in source:
    link=re.findall('iframe.+?src=[\'"]([^\'"]+)',source)[0]
    source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':url,'accept':'*/*'}).content
    gm3u8=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0])
    return re.findall('(?:P|p)layer[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',gm3u8)[0]+'|user-agent=ipad&referer='+link
  else:
    link=re.findall('(?:(?:data-|src)|href)="(.+?/TV[^"]+)',source)[0];link='https:'+link if link.startswith('//') else link
    source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':url,'accept':'*/*'},cookies=Cookie_Jar).content
    if 'wstream.to' in source:
      turl=re.findall('src=[\'"](.+?wstream[^\'"]+)',source)[0];turl='https:'+turl if turl.startswith('//') else turl
      source=requests.get(turl,headers={'user-agent':'Mozilla/5.0','referer':link,'accept':'*/*'}).content
      gm3u8=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0])
      return re.findall('(?:P|p)layer[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',gm3u8)[0]+'|user-agent=ipad&referer='+turl
    elif 'wstream' not in source:
      turl=re.findall('iframe.+?src=[\'"]([^\'"]+)',source)[0];turl='https:'+turl if turl.startswith('//') else turl
      source=requests.get(turl,headers={'user-agent':'Mozilla/5.0','referer':link,'accept':'*/*'},cookies=Cookie_Jar).content
      html=re.findall('iframe.+?src=[\'"]([^\'"]+)',source)[0];html='https:'+html if html.startswith('//') else html
      source=requests.get(html,headers={'user-agent':'Mozilla/5.0','referer':turl,'accept':'*/*'},cookies=Cookie_Jar).content
      gm3u8=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0])
      return re.findall('(?:P|p)layer[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',gm3u8)[0]+'|user-agent=ipad&referer='+html
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: Doom

urualf

Member
Jan 19, 2016
39
0
6
please regex for this page thanks guys

Code:
hxxps://tv.vera.com.uy/canales
 

gujal

Developer
Dec 26, 2013
423
209
43
Enjoy!



LSP XML:
<item>
<title>Vera TV</title>
<link>$doregex[makelist]</link>
<thumbnail>https://veratvimgs.cdn.antel.net.uy/misc/assets/logo-veratv.png</thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <info>[makelist.param3]</info>
  <thumbnail>https://veratvimgs.cdn.antel.net.uy/dynamic/content_images/[makelist.param2]/240/default.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import json
  channels = []
  items = json.loads(page_data)
  for item in items:
    title = item.get('name')
    cid = item.get('content_id')
    info = item.get('description')
    channels.append((title, cid, info))
  return sorted(channels)
]]></expres>
<page>$doregex[start]$doregex[savecookie]https://tv.vera.com.uy/inicio/get_channels/featured_position_views/1000/0/1</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>start</name>
<expres></expres>
<page>https://tv.vera.com.uy/canales</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>savecookie</name>
<expres></expres>
<page></page>
<cookieJar>save[vera.lwp]</cookieJar>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests, urllib, xbmcgui
  headers = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1',
             'Referer': 'https://tv.vera.com.uy/'}
  eurl = re.findall(r"\s\$\('#iframe.+?src',\s*'([^']+)",page_data)[0]
  source = requests.get(eurl, headers=headers, cookies=Cookie_Jar).text
  msg = 'Geo Blocked to Uruguay'
  if 'para Uruguay' not in source:
    r = re.search('hls":\s*"([^"]+)', source)
    if r:
      return r.group(1) + '|' + urllib.urlencode(headers)
    msg = 'Not a Free Channel'
  xbmcgui.Dialog().notification('LiveStreamsPro', msg, xbmcgui.NOTIFICATION_INFO, 5000, False)
  return
]]></expres>
<page>https://tv.vera.com.uy/canal/[makelist.param2]</page>
<referer>https://tv.vera.com.uy/</referer>
<cookieJar>open[vera.lwp]</cookieJar>
</regex>
</item>
 
  • Like
Reactions: urualf

tungbeng95

Member
Oct 25, 2018
228
7
18
How to find license link mpd on web tv? I want know it.
 

gujal

Developer
Dec 26, 2013
423
209
43
You have to capture the web traffic and go through the source, could be in html, could be javascript, there is no set rule
 

gujal

Developer
Dec 26, 2013
423
209
43
That page calls https://sports24.club/bm/play.php?id=tsn1
Page has this in the source
Code:
var src = "https://pe-ak-lp04a-9c9media.akamaized.net/live/TSN/p/dash/20000001/9d50f71ec5db29e6/manifest.mpd";
var hls = "";
var myWV = "proxy9.php";
So the license url is https://sports24.club/bm/proxy9.php
 
  • Like
Reactions: tungbeng95

tungbeng95

Member
Oct 25, 2018
228
7
18
HTML:
<item>
  <title>Sport TV</title>
  <inputstream>https://pe-ak-lp02a-9c9media.akamaized.net/live/TSN3/p/dash/20000001/8668457937758888/manifest.mpd$$lic=https://sports24.club/bm/proxy9.php||R{SSM}|</inputstream>
</item>
 

tungbeng95

Member
Oct 25, 2018
228
7
18
HTML:
<item>
  <title>TSN 3</title>
  <inputstream>https://pe-ak-lp02a-9c9media.akamaized.net/live/TSN3/p/dash/20000001/8668457937758888/manifest.mpd$$lic=https://sports24.club/bm/proxy9.php||R{SSM}|</inputstream>
</item>
 

gujal

Developer
Dec 26, 2013
423
209
43
It is not that simple as the license server is protected by a captcha server. you may have to do a couple more calls, collect cookies, etc before you could talk to the license server.
 

anisesl2

New member
Sep 1, 2020
3
0
1
Hello, I am looking for someone who can help me make a regex for my addons with these websites.
(LIVE LINK REMOVED)
Thank you
 
Last edited by a moderator:

juju

New member
Jul 6, 2016
19
1
3
hello please need help for open thispage in lsp thanks

Code:
http://www.supertelevisionhd.com/
 

redota

New member
Jul 3, 2016
23
2
3
is possible regex for this link for use in lsp ,really apreciatted you help thank you guys

Code:
http://www.lacasadeltikitakatv.online/canal-4.php#
 

redota

New member
Jul 3, 2016
23
2
3
is possible regex for this link for use in lsp ,really apreciatted you help thank you guys
[codehttp://vtvuruguayenvivohd.blogspot.com/[/code]
 

urualf

Member
Jan 19, 2016
39
0
6
hi masters y try take link for use in livestream but for me is impossible ,need help please

Code:
https://adictosaldeporte.com/ver-vtv-uruguay-en-vivo-24h/
 

makal

Member
Jul 23, 2014
62
16
8
try this
Code:
<item>
<title>vtv</title>
<link>$doregex[geturl]|User-Agent=iPad&amp;Referer=https://adictosalatele.com/TV/latinos/vtv/</link>
<regex>
<name>geturl</name>
<expres>(?:source|file|src):[\'"](h[^\'"]+)</expres>
<page>$doregex[getunpacked]</page>
</regex>
<regex>
<name>getunpacked</name>
<expres>$pyFunction:get_unpacked(page_data,'(eval\(function\(p,a,c,k,e,d.*)')</expres>
<page>https://wstream.to/embed/p4qssv34tl57k7e</page>
<referer>https://adictosalatele.com/TV/latinos/vtv/</referer>
<cookieJar></cookieJar>
</regex>
</item>
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5