LSP Regex & Makelist Discussion.

cris_manya

Member
Nov 20, 2016
35
1
8
Hello everyone, can you help me with this site:

Code:
hxxps://solnaciente2019.blogspot.com/2019/01/sol-naciente-capitulo-01.html
Thanks in advance
 

vbprofi

Member
Feb 9, 2016
77
3
8
@all, thank you very much. I have fixed my code and using sorted() with key=itemgetter() and fixed it....
 

adrianhn

New member
Mar 20, 2014
25
4
3
amy help with this stream

hxxp://www.liketvw.com/embed/foxsports
thks for advance
 

gujal

Developer
Dec 26, 2013
536
295
63
There is lot of custom javascript decrypt code in
Code:
https://playerlimpitv.com/config-player.js
Until someone has the time and patience to port all the code to python, it is not possible
 

AGAMEN0N

New member
Jul 4, 2019
15
2
3
Thanks gujal, but I can't make that regex work with this channel

This is what i tried:

Code:
<item>
<title>vtv</title>
<link>$doregex[main]</link>
<regex>
  <name>main</name>
  <listrepeat><![CDATA[
  <title>[main.param2]</title>
  <link>$doregex[getUrl]|Referer=http://premiumtvchannels.com/&User-Agent=iPad</link>
  <thumbnail>http://cablegratis.tv/logos/vtv.png</thumbnail>
  ]]></listrepeat>
  <expres>loadIframe.+,\s*'([^']+)[^&gt;]+&gt;([^&lt;]+)</expres>
  <page>http://cablegratis.tv/canal-en-vivo/vtv</page>
</regex>
<regex>
  <name>getUrl</name>
  <expres>(?:file|source):\s*"([^"]+)</expres>
  <page>[main.param1]</page>
  <referer>http://cablegratis.tv/</referer>
</regex>
<thumbnail>http://cablegratis.tv/logos/vtv.png</thumbnail>
</item>
Can you help me? Thanks!
 

makal

Member
Jul 23, 2014
62
16
8
try this
Code:
<item>
<title>vtv</title>
<link>$doregex[m3u8]|Referer=http://premiumtvchannels.com/User-Agent=iPad</link>
<regex>
<name>m3u8</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('(?:file|source):\s*"([^"]+)',page_data)[0]
]]></expres>
<page>http://premiumtvchannels.com/clappr/vtv.php</page>
<referer>http://cablegratis.tv/canal-en-vivo/vtv</referer>
</regex>
</item>
 
  • Like
Reactions: AGAMEN0N

turko03

Member
Mar 27, 2018
52
1
8
can you help me with this code ?

<item>
<title>tvyayinakisi.com</title>
<link>$doregex[program]</link>
<regex>
<name>program</name>
<listrepeat><![CDATA[
<title>[COLOR cyan] [program.param2][/COLOR]</title>
<link>$doregex[getCname]</link>
<thumbnail>hxxp:/xxx.tvyayinakisi.com/[program.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
list=re.findall('class="row.all-channels">(?s)(.*?)class="row',page_data)[0]
return re.findall('href="(.*?)".title="(.*?)".*?src="(.*?)"',list)
]]></expres>
<page>hxxp://xxx.tvyayinakisi.com/</page>
</regex>
<regex>
<name>getCname</name>
<listrepeat><![CDATA[
<title> ([getCname.param1])[COLOR cyan] [getCname.param2][/COLOR]</title>
<link>ignore</link>
<thumbnail>hxxp://xxx.tvyayinakisi.com/[program.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
list=re.findall('"row shadow-upward view">(?s)(.*?)shadow-left',page_data)[0].replace('&#39;','\'')
if 'row date' in list:
return re.findall('>(\d+:\d+)<.*\n.*>(.*?)<',list)
elif 'row date' not in list:
return re.findall('class="date">(.*?)\s-\s(.*?)<',list)
]]></expres>
<page>hxxp://xxx.tvyayinakisi.com/[program.param1]</page>
</regex>
<thumbnail>hxxp://www.tvyayinakisi.com/images/logo2.png</thumbnail>
</item>
 

juju

New member
Jul 6, 2016
23
2
3
please need help
with this
hxxp://tv-vip.com/film/La_lista_de_Schindler.mp4/
 

streamwatcher2013

Well-known member
Oct 24, 2013
931
412
63
USA
I love to see how kodi can handle the stream with:
Status Code:206 Partial Content
and
Content-Range:bytes 0-1840706336/1840706337
Content-Range:bytes 9371648-1840706336/1840706337




The code is here but it will not play in Kodi
Code:
<item>
<title>http://tv-vip.com/film/La_lista_de_Schindler.mp4/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold]La Lista de Schindler[/COLOR] (Res. [makelist.param2])</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[(?s)"videoUri":"([^"]+).*?"height":(\d+).*?"id":"(.*?)"."url":"(h[^"]+)]]></expres>
<page>http://tv-vip.com/json/repo/La_lista_de_Schindler.mp4/index.json</page>
<referer>http://tv-vip.com/film/La_lista_de_Schindler.mp4/</referer>
<agent>Mozilla/5.0</agent>
<x-req>XMLHttpRequest</x-req>
<accept>*/*</accept>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  video='[makelist.param2]'
  headers={'user-agent':'Mozilla/5.0','referer':'http://tv-vip.com/film/La_lista_de_Schindler.mp4/','X-Requested-With':'XMLHttpRequest','Accept':'*/*'}
  url='http://tv-vip.com/video2-prod/s/uri?uri='+urllib.quote_plus('[makelist.param1]')+'&s=[makelist.param3]'
  source=requests.get(url,headers=headers).content
  tt=re.findall('"tt":(\d+)',source)[0];mm=re.findall('"mm":"([^"]+)',source)[0];bb=re.findall('"bb":"([^"]+)',source)[0];b=re.findall('"b":"([^"]+)',source)[0];s=re.findall('"s":"([^"]+)',source)[0]
  if '388'in video:
    return 'http://'+s+'.'+b+'/e/transcoder[makelist.param1]?tt='+tt+'&mm='+mm+'&bb='+bb
  elif '360'in video:
    return 'http://'+s+'.'+b+'/e/transcoder[makelist.param1]?tt='+tt+'&mm='+mm+'&bb='+bb
  else:
    return 'http://'+s+'.'+b+'/e/transcoder[makelist.param1]?tt='+tt+'&mm='+mm+'&bb='+bb
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: redota

redota

New member
Jul 3, 2016
23
2
3
hi guays its possible regex for use in lsp thanks
h..p://chomikuj.pl/batmamora/serie/SERIE/MacGyver+2.nino65
 

udangaribaldi

New member
Sep 12, 2014
8
0
1
any help with this please

ok - i found something interesting
hxxps://tastedive.com/api/similar?q=
now you need to add title of music or artist or movie or tvshow or book or author or game or podcast at the end - using the + sign instead of any 'spaces'
for example
hxxps://tastedive.com/api/similar?q=the+matrix
it returns 'similar' movies to the matrix -
any help in getting this in £$π - so that all is needed is to input a movie or whatever - and the results would show up in a list.
i would appreciate any help thanks
 

gladio

New member
Oct 14, 2018
21
3
3
Mi potete aiutare? Grazie!
 

gladio

New member
Oct 14, 2018
21
3
3
Can you help me? Thanks!

 

umonkey

Member
Sep 18, 2012
70
0
6
Hey Streamwatcher2013, you kindly put this together last year but i have just checked it for the upcoming season and its not working can you please have a look when you get a chance.

Many Thanks

Code:
<item>
<title>Soccer Full Match & Highlights</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>https://i.imgur.com/BQrDCG9.png</thumbnail>
  <fanart>https://full-matches.com/https://i2-prod.mirror.co.uk/incoming/article7134755.ece/ALTERNATES/s1227b/The-Anfield-Dugout-new-Main-Stand-hospitality-at-Liverpool.jpg</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall("href='/(.*?)'.+?'name'>([^<]+)",re.findall('Home</span></a></li>(?s)(.*?)<form',page_data)[0])
]]></expres>
<page>http://www.replaymatches.com/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param3][/COLOR] [makelist2.param4]</title>
  <link>$doregex[makelist3]</link>
  <thumbnail>[makelist2.param1]</thumbnail>
  <fanart>https://full-matches.com/https://i2-prod.mirror.co.uk/incoming/article7134755.ece/ALTERNATES/s1227b/The-Anfield-Dugout-new-Main-Stand-hospitality-at-Liverpool.jpg</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall("content='(.*?)'[\w\W]*?href='(.*?)'.title='(.*?)(?:.(\d[^']+)|')",re.findall("id='post-wrapper'>(?s)(.*?)'blog-pager'",requests.get('http://www.replaymatches.com/[makelist.param1]?max-results=200').text)[0])
]]></expres>
<page></page>
</regex>
<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist3.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist2.param1]</thumbnail>
  <fanart>https://full-matches.com/https://i2-prod.mirror.co.uk/incoming/article7134755.ece/ALTERNATES/s1227b/The-Anfield-Dugout-new-Main-Stand-hospitality-at-Liverpool.jpg</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('class="link-iframe".href="(h.*?)".+?>([^<]+)',re.findall('</h1>(?s)(.*?)<iframe',page_data)[0].replace('amp;',''))
]]></expres>
<page>[makelist2.param2]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urlresolver
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  serv='[makelist3.param1]'
  if 'weshare.me' in serv:
    return re.findall('id="my-video"[\w\W]*?src="([^"]+)',requests.get(serv,headers={'User-Agent': 'Mozilla/5.0','Referer':'[makelist2.param2]','Accept':'*/*'}).text)[0]+'|user-agent=ipad&referer=[makelist3.param1]'
  elif 'streamable.com' in serv:
    link=re.findall('href="([^"]+).+?id="download"',requests.get(serv,headers={'User-Agent': 'Mozilla/5.0','Referer':'[makelist2.param2]','Accept':'*/*'}).text)[0]
    if 'http' in link:
      return link+'|user-agent=ipad&referer=[makelist3.param1]'
    else:
      return 'https:'+link+'|user-agent=ipad&referer=[makelist3.param1]'
  else:
    return urlresolver.resolve(serv)
]]></expres>
<page></page>
</regex>
<thumbnail>https://i.imgur.com/BQrDCG9.png</thumbnail>
<fanart>https://full-matches.com/https://i2-prod.mirror.co.uk/incoming/article7134755.ece/ALTERNATES/s1227b/The-Anfield-Dugout-new-Main-Stand-hospitality-at-Liverpool.jpg</fanart>
</item>
 

umonkey

Member
Sep 18, 2012
70
0
6
Thanks streamwatcher2013 but still not working looking at this match hxxps://www.replaymatches.com/2019/08/liverpool-vs-manchester-city-full-match.html (first half hxxps://vidia.tv/embed-gsvidk5qimcr.html)

Many Thanks for your time and help greatly appreciated.
 

udangaribaldi

New member
Sep 12, 2014
8
0
1
@umonkey
a lot of links on the fore-mentioned site have been pulled or get pulled after a short time - if you try the latest links they should work - the code is good
 

umonkey

Member
Sep 18, 2012
70
0
6
Thanks @udangaribaldi yeah have noticed that a lot of the streams have been removed and are not lasting as long as they did which is a shame but i still can't the link above to work which i know is still up and running on the site here is the error i'm getting?
Code:
ERROR: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.live.streamspro/?url=%24doregex%5BgetUrl%5D&mode=17&regexs=%7Bu%27getUrl%27%3A%20%7B%27expres%27%3A%20u%27%23%24pyFunction%5Cnimport%20re%2Crequests%2Curlresolver%5Cndef%20GetLSProData%28page_data%2CCookie_Jar%2Cm%29%3A%23streamwatcher2013%5Cn%20%20serv%3D%5C%27https%3A//vidia.tv/embed-gsvidk5qimcr.html%5C%27%5Cn%20%20if%20%5C%27weshare.me%5C%27%20in%20serv%3A%5Cn%20%20%20%20return%20re.findall%28%5C%27id%3D%22my-video%22%5B%5C%5Cw%5C%5CW%5D%2A%3Fsrc%3D%22%28%5B%5E%22%5D%2B%29%5C%27%2Crequests.get%28serv%2Cheaders%3D%7B%5C%27User-Agent%5C%27%3A%20%5C%27Mozilla/5.0%5C%27%2C%5C%27Referer%5C%27%3A%5C%27https%3A//www.replaymatches.com/2019/08/liverpool-vs-manchester-city-full-match.html%5C%27%2C%5C%27Accept%5C%27%3A%5C%27%2A/%2A%5C%27%7D%29.text%29%5B0%5D%2B%5C%27%7Cuser-agent%3Dipad%26referer%3Dhttps%3A//vidia.tv/embed-gsvidk5qimcr.html%5C%27%5Cn%20%20elif%20%5C%27viuclips%5C%27%20in%20serv%3A%5Cn%20%20%20%20link%3Dre.findall%28%5C%27hls%3A%22%28%5B%5E%22%5D%2B%29%5C%27%2Crequests.get%28serv%2Cheaders%3D%7B%5C%27User-Agent%5C%27%3A%20%5C%27Mozilla/5.0%5C%27%2C%5C%27Referer%5C%27%3A%5C%27https%3A//www.replaymatches.com/2019/08/liverpool-vs-manchester-city-full-match.html%5C%27%2C%5C%27Accept%5C%27%3A%5C%27%2A/%2A%5C%27%7D%29.text%29%5B0%5D%5Cn%20%20%20%20if%20%5C%27http%5C%27%20in%20link%3A%5Cn%20%20%20%20%20%20return%20link%2B%5C%27%7Cuser-agent%3Dipad%26referer%3Dhttps%3A//vidia.tv/embed-gsvidk5qimcr.html%5C%27%5Cn%20%20%20%20else%3A%5Cn%20%20%20%20%20%20return%20%5C%27https%3A%5C%27%2Blink%2B%5C%27%7Cuser-agent%3Dipad%26referer%3Dhttps%3A//vidia.tv/embed-gsvidk5qimcr.html%5C%27%5Cn%20%20elif%20%5C%27streamable.com%5C%27%20in%20serv%3A%5Cn%20%20%20%20link%3Dre.findall%28%5C%27href%3D%22%28%5B%5E%22%5D%2B%29.%2B%3Fid%3D%22download%22%5C%27%2Crequests.get%28serv%2Cheaders%3D%7B%5C%27User-Agent%5C%27%3A%20%5C%27Mozilla/5.0%5C%27%2C%5C%27Referer%5C%27%3A%5C%27https%3A//www.replaymatches.com/2019/08/liverpool-vs-manchester-city-full-match.html%5C%27%2C%5C%27Accept%5C%27%3A%5C%27%2A/%2A%5C%27%7D%29.text%29%5B0%5D%5Cn%20%20%20%20if%20%5C%27http%5C%27%20in%20link%3A%5Cn%20%20%20%20%20%20return%20link%2B%5C%27%7Cuser-agent%3Dipad%26referer%3Dhttps%3A//vidia.tv/embed-gsvidk5qimcr.html%5C%27%5Cn%20%20%20%20else%3A%5Cn%20%20%20%20%20%20return%20%5C%27https%3A%5C%27%2Blink%2B%5C%27%7Cuser-agent%3Dipad%26referer%3Dhttps%3A//vidia.tv/embed-gsvidk5qimcr.html%5C%27%5Cn%20%20else%3A%5Cn%20%20%20%20return%20urlresolver.resolve%28serv%29%5Cn%27%2C%20%27name%27%3A%20u%27getUrl%27%2C%20%27page%27%3A%20u%27None%27%7D%7D&iconimage=https%3A%2F%2F1.bp.blogspot.com%2F-ZWWesJ8ZLa4%2FXUQGcx3qO-I%2FAAAAAAAAPSE%2Fs5Y2XmEaHdU6m9d5Vo5qxiP7URwRXvK2ACLcBGAs%2Fs640%2Fliverpoul%252Bvs%252Bman%252Bcity.png]
Maybe you are able to test this one link for me on your setup its under FA Com Shield - Liverpool vs man city - first half.

Many Thanks
 

streamwatcher2013

Well-known member
Oct 24, 2013
931
412
63
USA
@unmonkey was right. I did the updates for that link. If you find out another link let me know. Do not enough time to go all of them. Remember you need to change either Urlresolver or ResoleURL option with # at the front

Code:
https://pastebin.com/raw/UrvLUTvG
 
  • Like
Reactions: umonkey

tobotminer

Member
Jan 26, 2018
49
4
8
can someone help me with this regex site

Code:
https://dutafilm.com/negara/turkey
 

gujal

Developer
Dec 26, 2013
536
295
63
There is so much Javascript obfuscation and encryption crap on that site which necessitates its own addon.
Anyway here is the code for LSP, it cannot play google sources, do not ask for it. It plays sources from other embedders
Code:
https://pastebin.com/raw/C5NX0pTd
 
  • Like
Reactions: Picapau

vbprofi

Member
Feb 9, 2016
77
3
8
Hello dear friends,
medyahaber have changing his template. I have try create new code.
I have two problems:
1. why I can't play with this code the videos?
2. how I can do makelist for all pages from:
Code:
http://www.medyahaber.info/category/tv-programlari/page/
Code:
<item>
<title>medya haber</title>
<link>$doregex[makelist]</link>

<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title> [makelist.param2] [makelist.param3]</title>
<link>$doregex[play]|user-agent=VLC</link>
]]></listrepeat>
<expres><![CDATA[(?s)<h3.*?<a href="(.*?medyahaber.info/.*?)">(.*?)</a>.*?</h3>.*?</i>(.*?)</a>]]></expres>
<page>http://www.medyahaber.info/category/tv-programlari/</page>
</regex>

<regex>
<name>play</name>
<expres><![CDATA[#$pyFunction
import xbmcgui
import xbmc
import re
import HTMLParser
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
def GetLSProData(page_data,Cookie_Jar,m):#vbprofi
 parser = HTMLParser.HTMLParser()
 s = re.sub("(&.+?;)", lambda m: parser.unescape(m.group()), page_data)
 x = 'http://www.medyahaber.info' + re.findall(r'source src="(.*?mp4)"', s)[0] + "|user-agent=VLC"
    return x
]]></expres>
<page>[makelist.param1]</page>
<referer>[makelist.param1]</referer>
</regex>
</item>
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5