LSP Regex & Makelist Discussion.

vphuc81

New member
Jun 6, 2015
7
0
1
Hi streamwatcher2013, I don't know why Kodi cannot play this m3u8 link. It was working good before.
It is not expire because I get it then try to play it right away.
Do you know why? Could you fix it? Thank you so much.

Code:
http://photocall.tv/i3vG/un?ch=beinsports11

http://uk.passit.ml/live/bein11-hq/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Ni8yMi8yMDE5IDEyOjIwOjIxIEFNJmhhc2hfdmFsdWU9RmVDckQ2dEhmdWNZeEZCZE9TeHc3dz09JnZhbGlkbWludXRlcz02MCZpZD05NS4xOS44Ny4xNDQmc3RybV9sZW49NQ==|User-Agent=iPad&Referer=http://photocall.tv/i3vG/un?ch=beinsports
 

juju

New member
Jul 6, 2016
23
2
3

This page is no longer available. It has either expired, been removed by its creator, or removed by one of the Pastebin staff.
 

Rockey

Member
Sep 11, 2018
68
0
6
Hello streamwatcher2013.. We are really thankful & greatful for ur hard work in this forum but can you please extend the time limit on your pastbin links? I just logged in after few days and i found some interesting topics but unfurtunatily the pastbin links are expired. We all will be very happy if the pastbin links remain for long time.

once again thanks for your nice work and efforts
 

sunnyhero

New member
Dec 27, 2013
11
0
1
Please can i get regex to watch this channel in Canada. Thanks in advance your help.

hxxtp://sportslive.ptv.com.pk/
 

baboonie

New member
Oct 9, 2016
20
1
3
Jugal,streamwatcher2013 Thanks for you help with the regex list. I do have another request if one of you can do it. Would you do a regex makelist for pluto. I know there is other ways I can get the list but for what I'm doing I like using lsp and do up the channels for my ftvguide the way I want.
Thanks ahead of time and apreciate all the work you two and other are doing to help others. Hoping to do for people myself again here.
 

jjmem22

New member
Mar 9, 2017
6
0
1
Hello
can any one please see what's wrong with this:

<item>
<title>Live</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':'https://www.dailymotion.com/embed/video/x4kopfq','X-Requested-With':'XMLHttpRequest','Accept':'*/*'}).text
return re.findall('(.*live-[3,4].*)#',source)[0] # 3 for 720p & 4 for 1080p
]]></expres>
<page>https://www.dailymotion.com/embed/video/x4kopfq</page>
<cookieJar/>
</regex>
<thumbnail></thumbnail>
</item>

running kodi 18.2 lsp 2.8.3
 

makal

Member
Jul 23, 2014
62
16
8
Enjoy!!
Code:
<item>
<title>DailyMotion</title>
<link>$doregex[start]|Cookie=$get_cookies$</link>
<regex>
<name>start</name>
<expres>(http.*)\#</expres>
<page>$doregex[url]&amp;redirect=0</page>
<referer>http://www.dailymotion.com/</referer>
<cookieJar></cookieJar>
</regex>

<regex>
<name>url</name>
<expres>$pyFunction:'$doregex[jsonurl]'.replace('\/','/')</expres>
<page></page>
</regex>
<regex>
<name>jsonurl</name>
<expres>x-mpegURL","url":"(.*?)"</expres>
<page>https://www.dailymotion.com/embed/video/x4kopfq</page>
<cookieJar></cookieJar>
</regex>
<thumbnail></thumbnail>
</item>
 
  • Like
Reactions: jjmem22

urualf

Member
Jan 19, 2016
40
0
6
please need help with this ,thanks


h..ps://www.somosjujuy.com.ar/canal7vivo
 

makal

Member
Jul 23, 2014
62
16
8
try this
Code:
<item>
<title>canal7</title>
<link>$doregex[m3u8]|User-Agent=Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Mobile Safari/537.36/</link>
 <thumbnail></thumbnail>
<regex>
<name>m3u8</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('src:  "(.*?)"',page_data)[0]
]]></expres>
<page>https://arcast.com.ar/canal7jujuy/</page>
<referer>http://www.somosjujuy.com.ar/canal7vivo</referer>
</regex>
</item>
 
  • Like
Reactions: urualf

adrianhn

New member
Mar 20, 2014
25
4
3
hi, mates,
some help with vaugn.live this dont work anymore

Code:
<link>https://$doregex[tok]|Referer=https://vaughn.live/peliculas_mania</link>
<regex>
<name>tok</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
 inf=re.findall('(?s)mp4ServerNode.+?"([^"]+).+?var.mp4StreamName.+?"([^"]+).+?var.mp4StreamUrl.+?flv\?(.+?)&.+?\d(&[^"]+)',re.findall('id="MvnHlsPlayer">(?s)(.*?)function.handleVideoEventFlv',page_data)[0])[0]
 return '%s/play/%s.flv?%s%s'%(inf[0],inf[1],inf[2],inf[3])
]]></expres>
<page>https://vaughn.live/peliculas_mania</page>
<referer>https://vaughn.live/peliculas_mania</referer>
<accept>*/*</accept>
<cookieJar></cookieJar>
</regex>
 

jjmem22

New member
Mar 9, 2017
6
0
1
makal thank you so much work perfect

i have only one more please this was working good but something went wrong it's make list bringing the links but not working i don't know why here is the code:


<item>
<title>TRT</title><link>$doregex[makelist]</link><regex> <name>makelist</name><listrepeat><![CDATA[<title>[COLOR yellow]*[COLOR red] [makelist.param2][/COLOR]</title><link>$doregex[finalURL]</link><thumbnail></thumbnail>]]></listrepeat><expres><![CDATA[href="./([^"]*)" title="([^"]*)"]]></expres><page>http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trt1</page><agent>iPhone</agent><cookieJar></cookieJar></regex><regex><name>finalURL</name>
<expres>$pyFunction: '$doregex[finalM3U8]' if not '$doregex[finalM3U8]'=='' else '$doregex[finalF4M]'</expres><page></page></regex<regex>
<name>finalM3U8</name><expres>(http.*index_[7|1].*?)\s</expres><page>$doregex[getM3U8]</page></regex><regex><name>getM3U8</name><expres>prmfi = "(http[^"]+)</expres><page>$doregex[getLink]</page><referer>http://www.trt.net.tr/anasayfa/[makelist.param1]</referer>
<cookieJar></cookieJar></regex><regex><name>finalF4M</name><expres>(http.*index_[1|7].*?)\s</expres><page>$doregex[getF4Mclean]</page></regex><regex><name>getF4Mclean</name><expres>$pyFunction:'$doregex[getF4M]'.replace('/z','/i').replace('manifest.f4m','master.m3u8')</expres><page></page></regex><regex><name>getF4M</name><expres>prmfi = "(http.*?f4m)"</expres><page>$doregex[getLink]</page>
<referer>http://www.trt.net.tr/anasayfa/[makelist.param1]</referer><cookieJar></cookieJar></regex><regex><name>getLink</name><expres>$pyFunction:base64.b64decode("$doregex[getBase64]")</expres><page></page>
</regex><regex><name>getBase64</name><expres>dcm1\("([^"]+)</expres><page>http://www.trt.net.tr/anasayfa/[makelist.param1]</page><cookieJar></cookieJar></regex>
<thumbnail></thumbnail>
<fanart>https://s-media-cache-ak0.pinimg.com/originals/77/b8/7c/77b87cdc1961e3006c6e943c0174cea2.jpg</fanart>
</item>
 

makal

Member
Jul 23, 2014
62
16
8
try this
Code:
<item>
<title>TRT KANALLARI</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title> [makelist.param2]</title>
<link>$doregex[m3u8]</link>
<thumbnail>http://logonoid.com/images/trt-logo.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[href="./([^"]*)" title="([^"]*)"]]></expres>
<page>http://www.trt.net.tr/anasayfa/canli.aspx?y=tv&k=trt1</page>
<agent>iPhone</agent>
<cookieJar></cookieJar>
</regex>
<regex>
<name>m3u8</name>
<expres>prmfi = '(https.*?m3u8)'</expres>
<page>$doregex[getLink]</page>
<referer>http://www.trt.net.tr/anasayfa/[makelist.param1]</referer>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getLink</name>
<expres>$pyFunction:base64.b64decode("$doregex[getbase64]")</expres>
<page></page>
</regex>
<regex>
<name>getbase64</name>
<expres>dcm1\("([^"]+)</expres>
<page>http://www.trt.net.tr/anasayfa/[makelist.param1]</page>
<cookieJar></cookieJar>
</regex>
<thumbnail>http://logonoid.com/images/trt-logo.png</thumbnail>
</item>
 
  • Like
Reactions: jjmem22

thingy

Member
May 9, 2018
58
0
6
Something I'm doing wrong in this streamwatcher code could you help me?

Code:
<item>
<title>https://fluxustv.blogspot.com/p/fluxus-faith.html (ES) </title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
   <title>[COLOR gold][makelist.param2][/COLOR]</title>
   <link>[makelist.param3]|user-agent=ipad</link>
   <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[tvg-logo="(.*?)"\s*group-title="CHRISTIANITY (ES)",(.*)\n(.*)]]></expres>
<page>$doregex[iptvLink]</page>
</regex>
<regex>
<name>iptvLink</name>
<expres>id="myInput1".+?value="([^"]+)</expres>
<page>https://fluxustv.blogspot.com/p/fluxus-faith.html</page>
</regex>
</item>
 

makal

Member
Jul 23, 2014
62
16
8
change this
Code:
<expres><![CDATA[tvg-logo="(.*?)"\s*group-title="CHRISTIANITY (ES)",(.*)\n(.*)]]></expres>
for this
Code:
<expres><![CDATA[tvg-logo="(.*?)"\s*group-title="CHRISTIANITY \(ES\)",(.*)\n(.*m3u8)]]></expres>
 

gujal

Developer
Dec 26, 2013
472
243
43
tungbeng95
Hi.Can u help me this regex to stream the kodi:
hxxp://mass.mako.co.il/ClicksStatistics/entitlementsServicesV2.jsp?et=gt&lp=hxxp://keshethlslive-i.akamaihd.net/hls/live/512033/CH2LIVE_HIGH/index_3100.m3u
Enjoy!

Code:
<item>
<title>Channel 2</title>
<inputstream>http://keshethlslive-i.akamaihd.net/hls/live/512033/CH2LIVE_HIGH/index.m3u8?$doregex[token]|User-Agent=ipad</inputstream>
<regex>
<name>token</name>
<expres>ticket":"([^"]+)</expres>
<page>http://mass.mako.co.il/ClicksStatistics/entitlementsServicesV2.jsp?et=gt&amp;lp=http://keshethlslive-i.akamaihd.net/hls/live/512033/CH2LIVE_HIGH/index.m3u8?&amp;rv=AKAMAI</page>
<thumbnail></thumbnail>
</regex>
</item>
 
  • Like
Reactions: tungbeng95

gujal

Developer
Dec 26, 2013
472
243
43
It works fine on Kodi Leia. left it running for more than 3 minutes. The code above even though will work on Kodi17 is not recommended.
 

jjmem22

New member
Mar 9, 2017
6
0
1
hello
can any one help about makelist for this youtube channel videos so it display latest videos and can have next page for older videos

hxxtp://www.youtube.com/user/showtvshowtv/videos

thank you for help
 

gujal

Developer
Dec 26, 2013
472
243
43
There is no possibility of "Next Page" in LSP.
The options are
display list of pages (numbers) first and then display contents of that page when a particular number is selected
OR
Collect a set number of pages at once and display all the content
 

jjmem22

New member
Mar 9, 2017
6
0
1
gujal thank you for your explain
can i have the two options each one separated for this:

hxxtp://www.youtube.com/user/showtvshowtv/videos

thank you
 

goldonx

New member
Mar 30, 2015
8
6
3
For what you want, you could call youtube addon on LSPRO in this way:

Code:
<item>
<title>Youtube video list</title>
<link>ignorme</link>
<jsonrpc>plugin://plugin.video.youtube/user/showtvshowtv/</jsonrpc>
</item>
 
  • Like
Reactions: jjmem22

gujal

Developer
Dec 26, 2013
472
243
43
This site being youtube, it is easy to use youtube addon to handle all the pagination.

The LSP code for this is extremely simple as shown below
Code:
<item>
  <title>ShowTV</title>
  <utube>showtvshowtv</utube>
</item>

 
  • Like
Reactions: jjmem22

jjmem22

New member
Mar 9, 2017
6
0
1
gujal thank you a lot for your help & time
yeah the LSP code very simple for youtube but seriously i don't know about it,
but the problem it's not displaying the latest videos for that youtube channel it's like displaying videos randomly
can i have the two options code for display list of pages (numbers) and collect a set number
i have this code but videos not working saying (invalid parameters) and displaying limit content of videos and no thumbnails for videos:
Code:
<item>
<title>showtvvideos</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param2]   [makelist.param3]</title>
<link>plugin://plugin.video.youtube/play/?video_id=[makelist.param1]</link>
]]></listrepeat>
<expres>href="\/watch\?v=(.*?)">(.*?)<.*?> -.*?:(.*?)<\/span><\/h3></expres>
<page>https://www.youtube.com/user/showtvshowtv/videos</page>
</regex>
</item>
thank you again
 

jamers

New member
Jun 29, 2018
22
0
1
can someone help with making regex for:
hxxp://www.tvsdezsportstvs.com/cmtv-online-gratis/

Thanks
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5