LSP Regex & Makelist Discussion.

redota

New member
Jul 3, 2016
9
0
1
hi guys need help for this link thanks for you help

hxxp://photocall.tv/l3xB/dc1?ch=latele
 

juju

New member
Jul 6, 2016
5
0
1
please this link is possible watch in livestrem?? thank you masters

h..ps://retroseriestv.com/episodios/voyagers-1x7/
 

streamwatcher2013

Active member
Oct 24, 2013
408
58
28
USA
Change urlresolver or resolveUrl. Try this:

Code:
<item>
<title>https://retroseriestv.com/episodios/voyagers-1x7/</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urlresolver
def GetLSProData(page_data,Cookie_Jar,m):
  s=requests.get('https://retroseriestv.com/episodios/voyagers-1x7/',headers={'user-agent':'Mozilla/5.0'})
  inf=re.findall('id=.player-option.+?data-type=.([^\'"]+).+?post=.(\d+).+?nume=.(\d+)',s.content.decode('ascii','ignore'))[0]
  source=requests.post('https://retroseriestv.com/wp-admin/admin-ajax.php',headers={'user-agent':'Mozilla/5.0','host':'retroseriestv.com','referer':'https://retroseriestv.com/episodios/voyagers-1x7/','x-requested-with':'XMLHttpRequest','accept':'*/*'},cookies=s.cookies,data={'action':'doo_player_ajax','post':inf[1],'nume':inf[2],'type':inf[0]}).content.decode('ascii','ignore')
  return urlresolver.resolve(re.findall('iframe.+?src=.(h[^\'"]+)',source)[0])
]]></expres>
<page>https://retroseriestv.com/episodios/voyagers-1x7/</page>
</regex>
</item>
 
  • Like
Reactions: juju

Lacasitos74

Member
Nov 21, 2016
39
0
6
Can anyone help me with this:
Code:
<item>
<title>wstream.to hd1</title>
    <link>$doregex[geturl]</link>
    <regex>
        <name>geturl</name>
        <expres>Clappr.Player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)</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:$doregex[lacasitos]</page>
        <referer>https://wstream.to/</referer>
    </regex>
    <regex>
        <name>lacasitos</name>
        <expres><![CDATA[iframe\s+src\="(.+?)"]]></expres>
        <page>https://sportzonline.co/channels/hd/hd1.php</page>
        <referer>https://sportzonline.co/channels/hd/hd1.php</referer>
    </regex>
</item>
Thanks a lot
 

streamwatcher2013

Active member
Oct 24, 2013
408
58
28
USA
By looking into your code. You may mod this line and add ua & referer to <link>

Code:
From
<expres>$pyFunction:get_unpacked(page_data,'(eval\(function\(p,a,c,k,e,d.*)' )</expres>

To
<expres>$pyFunction:get_unpacked(page_data,'(eval\(function\(p,a,c,k,e,d.*m3u8.*)' )</expres>
 
  • Like
Reactions: kavan

Lacasitos74

Member
Nov 21, 2016
39
0
6
thanks a lot but i try but i cant put it work can you explain me what i do wrong please.
Code:
<item>
<title>https://sportzonline.to/prog.txt</title>
<link>$doregex[makelist]</link>
<regex>
		<name>makelist</name>
		<listrepeat><![CDATA[
		<title>[makelist.param1] - [makelist.param2]   ($doregex[mudar])</title>
		<link>$doregex[geturl]|user-agent=Mozilla/5.0 (Linux; Android 7.0; 5086D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Mobile Safari/537.36&referer=https://wstream.to/</link>
		]]></listrepeat>
		<expres>(\d\d:\d\d)\s+(.+?)\|\s+https(.+?)\.php</expres>
		<page>https://sportzonline.to/prog.txt</page>
</regex>
<regex>
        <name>geturl</name>
        <expres>Clappr.Player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)</expres>
        <page>$doregex[getunpacked]</page>
</regex>
<regex>
        <name>getunpacked</name>
        <expres>$pyFunction:get_unpacked(page_data,'(eval\(function\(p,a,c,k,e,d.*m3u8.*)' )</expres>
        <page>$doregex[lacasitos]</page>
        <referer>https://wstream.to/</referer>
</regex>
<regex>
		<name>lacasitos</name>
		<expres><![CDATA[iframe\s+src\="(.+?)"]]></expres>
		<page>https[makelist.param3].php</page>
</regex>
</item>
Thanks a lot.
 

streamwatcher2013

Active member
Oct 24, 2013
408
58
28
USA
It should work for you

Code:
<item>
<title>wstream.to hd1</title>
    <link>$doregex[geturl]|user-agent=ipad&amp;referer=https:$doregex[lacasitos]</link>
    <regex>
        <name>geturl</name>
        <expres>Clappr.Player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)</expres>
        <page>$doregex[getunpacked]</page>
    </regex>
    <regex>
        <name>getunpacked</name>
        <expres>$pyFunction:get_unpacked(page_data,'(eval\(function\(p,a,c,k,e,d.*m3u8.*)')</expres>
        <page>https:$doregex[lacasitos]</page>
        <referer>https://sportzonline.co/channels/hd/hd1.php</referer>
    </regex>
    <regex>
        <name>lacasitos</name>
        <expres><![CDATA[iframe.+?src="(.+?)"]]></expres>
        <page>https://sportzonline.co/channels/hd/hd1.php</page>
        <referer>https://sportzonline.co/channels/hd/hd1.php</referer>
    </regex>
</item>
 
  • Like
Reactions: kavan

jamers

New member
Jun 29, 2018
10
0
1
Hello! can you help me with this link ( hxxps://verystream.com/e/cKbkWxW7Xfp/ ) to work on livestreamspro !
Is from here " hxxps://moviezen.co/watch-the-balkan-line-2018-online-free/"
I already try with urlresolver but is not working.
Thank you
 

makal

Member
Jul 23, 2014
51
5
8
try this
Code:
<item>
<title>verystream</title>
<link>https://verystream.com/gettoken/cKbkWxW7Xfp~1560487366~2601:19b::~3GhFTRRz?mime=true|User-Agent=Mozilla/5.0 (Windows NT 10; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36</link>
</item>
 

gujal

Developer
Dec 26, 2013
195
9
18
Resolveurl handles verystream correctly.



Code:
<item>
  <title>verystream test</title>
  <urlsolve>https://verystream.com/e/cKbkWxW7Xfp/</urlsolve>
</item>
 

jamers

New member
Jun 29, 2018
10
0
1
streamwatcher2013
Can you please send me again the pastebin regarding verystream ?
Because only today was possible for me to come here to see your reply, but the pastebin
was deleted.
Thanks !
 

captainhardlock

New member
Jun 6, 2017
21
0
1
Code:
<item>
<title>https://sportzonline.to/prog.txt</title>
<link>$doregex[makelist]</link>
<regex>
        <name>makelist</name>
        <listrepeat><![CDATA[
        <title>[makelist.param1] - [makelist.param2]   ($doregex[mudar])</title>
        <link>$doregex[geturl]|user-agent=Mozilla/5.0 (Linux; Android 7.0; 5086D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Mobile Safari/537.36&referer=https://wstream.to/</link>
        ]]></listrepeat>
        <expres>(\d\d:\d\d)\s+(.+?)\|\s+https(.+?)\.php</expres>
        <page>https://sportzonline.to/prog.txt</page>
</regex>
<regex>
        <name>geturl</name>
        <expres>Clappr.Player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)</expres>
        <page>$doregex[getunpacked]</page>
</regex>
<regex>
        <name>getunpacked</name>
        <expres>$pyFunction:get_unpacked(page_data,'(eval\(function\(p,a,c,k,e,d.*m3u8.*)' )</expres>
        <page>$doregex[lacasitos]</page>
        <referer>https://wstream.to/</referer>
</regex>
<regex>
        <name>lacasitos</name>
        <expres><![CDATA[iframe\s+src\="(.+?)"]]></expres>
        <page>https[makelist.param3].php</page>
</regex>
</item>
Please, Lacasitos74 could you put the modified script?
Thanks in advance
 

captainhardlock

New member
Jun 6, 2017
21
0
1
Hi Streamwatcher2013
script doesn't seem the same...the first scrapes a *.txt. the below script scrapes the php with the embedded player.

Thanks
 

boomski

New member
Mar 23, 2017
8
0
1
Hi, i need help with this
Code:
hxxps://www.tntendirect.com/L'EQUIPE-21-en-direct
 

myosmc

Member
May 18, 2018
38
0
6
Try this
Code:
<item>
<title>https://www.tntendirect.com/L'EQUIPE-21-en-direct</title>
<link>https://s4.tntendirect.com/lequipe21/live/chunks.m3u8|User-Agent=Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Mobile Safari/537.36&amp;Referer=https://www.tntendirect.com/L'EQUIPE-21-en-direct</link>
<thumbnail></thumbnail>
<fanart></fanart>
</item>
 

baboonie

New member
Oct 9, 2016
19
1
3
Hey streamwatcher2013,gujal and others, can you see if can regex the channels from this site. Its a site that has legit ota stations but I can't get to the hidden code to do it. Would like to have the indivitual stations if possible or a makelist to grab them. It is set up like Stirr and Pluto.

iGoCast - Live TV

player.igocast.com

also if possible this site was in the clear till 2 days ago. It has 15 ota stations on it.
live.simetv.com

live.simetv.com

Thanks ahead of time

P.S. I was trying to learn regex when the first addons.com went down.
 

gujal

Developer
Dec 26, 2013
195
9
18
Simetv has gone fully paid, so can't do anything without an account
Here is the code for iGoCast. Enjoy!
Code:
<item>
<title>iGoCast</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <link>[makelist.param3]</link>
  <thumbnail>[makelist.param2]</thumbnail>
  <fanart>https://player.igocast.com/assets/img/logo.png</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import requests
  url = 'https://mw.igocast.com/apiv2/channels/list'
  headers = {'User-Agent': 'Mozilla/5.0 (QtEmbedded; U; Linux; C) AppleWebKit/533.3 (KHTML, like Gecko) MAG200 stbapp ver: 2 rev: 250 Safari/533.3',
        'Origin': 'https://player.igocast.com',
        'Referer': 'https://player.igocast.com/',
        'auth': 'auth=cZeTgCdDFpSd0S90fXnr+5Oe76mQVIHArfy6If2o6W4m1hUTGYxXvHkhSxWzbF0h+fOavVZsBTClrK1EdLrqcksk+IftCEJWTkiYlU0vXexht7v2VlS+gupNjJ+Q7QBOsbwecAF9YN/2XD/SHnDZlSBJ7wFJVT/IRzWipW7YaRI='}
  items = requests.post(url, headers=headers).json()['response_object']
  videos = []
  for item in items:
    title = item['title']
    thumb = item['icon_url']
    strurl = item['stream_url']
    videos.append((title, thumb, strurl))
  return videos
]]></expres>
<page></page>
</regex>
<thumbnail>https://player.igocast.com/assets/img/logo.png</thumbnail>
</item>
 

juju

New member
Jul 6, 2016
5
0
1
please my questios is if possible regex for this page ,thanks for you help

h..p://futbolitop.online/canales/
 

baboonie

New member
Oct 9, 2016
19
1
3
Hey Streamwatcher2013,gajul,or another expert good at regex fix this code don't work in lsp to connect to a channel but if go to the site you can turn of adblockplus the channels come in. If you go to site,they put an adblockplus message to turn off adblock then the channels at the site work fine but won't work from the regex in lsp.

<item>
<Title>BBCA</title>
<link>$doregex[tokN]|User-Agent=Mozilla/5.0</link>
<regex><name>tokN</name>
<expres><![CDATA[file: '(.*?)']]></expres>
<page>hxxp://ustvgo.tv/bbc-america-live/</page>
<referer>hxxp://ustvgo.tv</referer>
<agent>Mozilla/5.0 (iPad; CPU OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3</agent>
<accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8</accept>
</regex>
</item>

jujal,That worked great for igocast. Would you do one for a single channel on igocast I want to modify it for single channels seperated in lsp. I know I can just save the channels I want in kodi favorites but I want to study different rejexes.

I'm working on something to help people here. Also experts it would be nice if one of you will do a single channel rejex for pluto,Stirr,xuma,etc and others that have free tv stations. Would like a list regex and a single channel rejex for both stirr and pluto to go with igocast.

And thanks again to all.
 

gujal

Developer
Dec 26, 2013
195
9
18
Not possible to do single channel in igocast as there are no individual web pages for the channels on site. It is all HTML5+CSS+AJAX so behaves exactly like the makelist I made even on the website
 

baboonie

New member
Oct 9, 2016
19
1
3
Thanks for the info gujal. I have my way around using from a list. I save them to kodi favorites then open the favorites file in notepad++ and copy them to another file and then go into each one and cut it down and make it into an addon.ini file so can put them in my ftvguide. That seems to work fine. Cut them all down and add them to my addon.ini for all my links.

If possible can you or another regex experts do a regex list of both stirr and pluto.

Thanks ahead of time again and thanks for the iGOcast one.