LSP Regex & Makelist Discussion.

Picapau

Member
Nov 15, 2018
69
9
8
your regex works perfect, but the web has links that don't have that same structure, I'm trying with this, but it doesn't work

Code:
<item>
<title>$doregex[url]  x-men-fenix-oscura</title>
<link>$doregex[url]</link>
<thumbnail></thumbnail>
<regex>
<name>url</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests, urllib
  eurl = re.findall('(?s)limitedDownloadButton.*?href="([^"]+)', page_data)[0]
  url2 = 'https://uloz.to' + eurl
  headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0',
            'Referer': 'https://uloz.to/'}
  url3 = '{}|Referer=https://uloz.to/&User-Agent={}'.format(url2, headers['User-Agent'])
  return url3
]]></expres>
<page>https://uloz.to/file/LhdI4vmib6Uk/x-men-fenix-oscura-2019-720-mkv</page>
<cookieJar></cookieJar>
</regex>
</item>
 

gujal

Developer
Dec 26, 2013
476
245
43
No. my code works fine just by replacing the url. You are trying to do something else which wont work without an account with uloz and blaming my code!

Code:
<item>
<title>X-Men Pho*nix - ULOZ</title>
<link>$doregex[url]</link>
<thumbnail></thumbnail>
<regex>
<name>url</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests, urllib
  eurl = re.findall('getPreviewURL:\s*"([^"]+)', page_data)[0]
  eurl = 'https://uloz.to' + eurl.replace('\/','/')
  headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0',
            'Referer': 'https://uloz.to/'}
  url = requests.get(eurl, headers=headers, cookies=Cookie_Jar).json()['streamPreviewUrl']
  url='{}|{}'.format(url, urllib.urlencode(headers))
  return url
]]></expres>
<page>https://uloz.to/file/LhdI4vmib6Uk/x-men-fenix-oscura-2019-720-mkv</page>
<cookieJar></cookieJar>
</regex>
</item>
 
  • Like
Reactions: Picapau

Picapau

Member
Nov 15, 2018
69
9
8
I am already seeing what happened, when a file is uploaded to the web, it takes about 24 hours to encode the link and give the final structure and the principle of uploading it, it does not have the same structure, thank you very much gujal!
 

omoobatv

New member
Feb 15, 2018
22
0
1
Hi, can any guru in the house have a look if this can be regex. i was using the ITV addon for kodi which has now stopped working and the dev is not responding.


Code:
https://www.itv.com/hub/itv

Regards
 

03stevensmi

Member
Sep 12, 2019
47
4
8
Thanks streamwatcher!
I really appreciate your help.
Will test it later this afternoon since I’m at work yesterday and today.

Cheers brother!
;)
 

03stevensmi

Member
Sep 12, 2019
47
4
8
Right! I’m back from work now! I’ve just tested it and when you click on some of the episode names, I just get an empty page instead of a video link!

For example,
if you go to mystery,
then select darkwing duck,
then from there if you click on any episodes,
you just get a blank page.

Could you take a quick look into this and see if you can fix up what’s wrong?

Again, sorry about this. This is the only issue now. Apart from that. Everything works!
 

03stevensmi

Member
Sep 12, 2019
47
4
8
No problem! Maybe in the future, it will be supported! Thanks anyway brother! I hope one day they will get looked at but for now, everything works amazing! Thanks again brother! Just one question... how come rapidvideo etc.. is supported but not the rest? How are they different? Just so I know for for knowledge. ;)
 

03stevensmi

Member
Sep 12, 2019
47
4
8
Also i think i actually found a problem. on your old code, darkwing duck season 3 episode 13 works with rapidvideo.
On your new code, the list is empty.

So it is supported by rapidvideo but not showing up.
Just found this out now mate.

What could be the problem?
 

03stevensmi

Member
Sep 12, 2019
47
4
8
Doesnt matter, i have just found out that the rapidvideo links from the old code comes up with errors and thats why they don't show up in the new code... nice one streamwatcher ;)

Sorry about that brother.
 

manoflorida

New member
Sep 22, 2012
8
0
1
can someone help me to get a m3u8 link from "hxxp://snrtlive.ma/arryadia-live-%D8%A7%D9%84%D8%A8%D8%AB-%D8%A7%D9%84%D9%85%D8%A8%D8%A7%D8%B4%D8%B1-%D9%82%D9%86%D8%A7%D8%A9-%D8%A7%D9%84%D8%B1%D9%8A%D8%A7%D8%B6%D9%8A%D8%A9" I get the live one what i need is to get like timeshifting thank you
 

turko03

Member
Mar 27, 2018
52
1
8
can you help me this site a makelist please
hxxp://web.canlitvlive.io/tum-tv-kanallari.html

thanks in advance
 
Aug 1, 2017
65
1
8
Is there any chance someone could help me getting this to play in LSP?

Code:
hxxp://123tvnow.com/watch/ahc-american-heroes-channel/
Thanks
 
  • Happy
Reactions: microrabbit

microrabbit

New member
Sep 23, 2019
2
0
1
hello, I am using the regex posted by gujal for karwan tv till yesterday it worked. Now its not working ?
IIn browser individual channels are redirecting to the php page which has the hls url in the source page.
Can some body help/
thanks for the regex
 

gujal

Developer
Dec 26, 2013
476
245
43
Enjoy!

Code:
<item>
<title>[COLOR cyan]Karwan.tv[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR cyan][makelist.param3][/COLOR]</title>
<link>$doregex[getm3u8]|User-Agent=iPhone</link>
<thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[itemthumb".+?src="([^"]+).+?href="([^"]+).+?>([^<]+)]]></expres>
<page>https://karwan.tv/television.html</page>
</regex>
<regex>
<name>getm3u8</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import re
 url=re.findall('''(?:file|hls):\s*["']([^"']+)["']''',page_data)[-1]
 return url
]]></expres>
<page>https://karwan.tv$doregex[strpg]</page>
</regex>
<regex>
<name>strpg</name>
<expres><![CDATA[(?s)<iframe.+?src="([^"]+)]]></expres>
<page>[makelist.param2]</page>
</regex>
</item>
 

Picapau

Member
Nov 15, 2018
69
9
8
hello, I have a question, is anyone working on the lsp base to adapt it to kodi 19? Thank you
 

gujal

Developer
Dec 26, 2013
476
245
43
I think you mean python3, because LSP works fine on Kodi 19, as they have not released a py3 version yet (last I checked)
 

efradncr

Member
Mar 26, 2018
60
1
8
regards! Will someone have the regex for this page?
Code:
hxxs://www.hispantv.com/directo
 

Picapau

Member
Nov 15, 2018
69
9
8
Here it is


Code:
<item>
<title>[COLOR lightgreen]https://www.hispantv.com/directo[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import re
    import requests
    url = 'https://www.hispantv.com/directo'
    html = requests.get(url, headers={'User-Agent': 'Mozilla/5.0', 'Referer': 'https://www.hispantv.com/directo'}, verify=False).text
    return re.findall('(?s)source src="(.*?)" type="', html)[0]
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
</item>
 

Picapau

Member
Nov 15, 2018
69
9
8

Picapau

Member
Nov 15, 2018
69
9
8
It does not work on all versions of lsp, but it has worked with the web.

Code:
<item>
<title>[COLOR lightgreen]$doregex[cristalazul]    guia arena[/COLOR]</title>
<link>$doregex[cristalazul]</link>
<regex>
<name>cristalazul</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data, Cookie_Jar,m):
  import re,cfscrape
  scraper = cfscrape.create_scraper()
  fuente=scraper.get("https://arenavision.us/", headers={'User-Agent': 'Mozilla/5.0'}, verify=False)
  return re.findall('href="(.*?)">EVENTS GUIDE',fuente.text)[0]
]]></expres>
<page></page>
</regex>
</item>
 

turko03

Member
Mar 27, 2018
52
1
8
can you help me this site a makelist please

hxxp://web.canlitvlive.io/tum-tv-kanallari.html

thanks in advance
 

gujal

Developer
Dec 26, 2013
476
245
43
You've been around here for a while and should be able to do these simple sites yourself!

Enjoy!

Code:
<item>
<title>[COLOR cyan]Canlitvlive[/COLOR]</title>
<link>$doregex[makelist]</link>
<thumbnail>http://web.canlitvlive.io/images/footer_simge.png</thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR cyan][makelist.param2][/COLOR]</title>
<link>$doregex[getm3u8]|User-Agent=iPhone</link>
<thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres>class="ondeiz".+?href="([^"]+).+?title="([^"]+).+?src="([^"]+)</expres>
<page>http://web.canlitvlive.io/a-z-tum-tv-kanallari.html</page>
<referer>http://web.canlitvlive.io/</referer>
</regex>
<regex>
<name>getm3u8</name>
<expres>(?:file|hls):\s*["']([^"']+)["']</expres>
<page>http://web.canlitvlive.io[makelist.param1]</page>
<referer>http://web.canlitvlive.io/</referer>
</regex>
</item>
 
  • Like
Reactions: turko03

mustafa19554

Guest
May 17, 2016
28
3
3
Hello and good day to all. Is it possible to have a regex list for this URL?
Sorry I did not give the address
hxxps://www.ocanlitv.live/
 

Picapau

Member
Nov 15, 2018
69
9
8
Here it is

Code:
<item>
<title>[COLOR gold]https://www.ocanlitv.live[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR gold][makelist.param2][/COLOR]</title>
<link>$doregex[c]</link>
<thumbnail>[makelist.param3]</thumbnail><fanart>http://www.arturogoga.com/wp-content/uploads/2009/12/image4.png</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import re
    import requests
    url = 'https://www.ocanlitv.live'
    html = requests.get(url, headers={'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0', 'Referer': 'https://www.ocanlitv.live'}, verify=False).text
    return re.findall('(?s)href="(.{0,100})" title="(.*?)".*?src="(.*?)"', html)
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>c</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import re
    import requests
    url = '[makelist.param1]'
    html = requests.get(url, headers={'User-Agent': 'Mozilla/5.0', 'Referer': '[makelist.param1]'}, verify=False).text
    return re.findall('(http.{0,150}m3u8)', html)[0]
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
</item>
 

RedPenguin

New member
Aug 2, 2012
19
1
1
Hello all, I know this isn't technically regex, but a normal RTMP, but I am noticing a strange bug.

On the website from one of my local TV stations: http://65.79.240.140:86/live.html?src=1

I get the following LSP code:

<item>
<title>WHVL</title>
<link>rtmp://65.79.240.140:1935/BroadCam playpath=live?bandwidth=1&amp;src=1 swfURL=http://65.79.240.140:86/nchplayer.swf?host=65.79.240.140:1935&amp;scope=BroadCam&amp;streamName=live&amp;bandwidth=1&amp;src=1&amp;autostart=true&amp;redirect=&amp;textOnOver= pageURL=http://65.79.240.140:86/live.html?src=1 conn=B:1 live=true</link>
<thumbnail></thumbnail>
</item>

Yet in Kodi on various PCs, it plays so unbeliveably slow like a slideshow and only the audio seems mostly ok.

I verified the stream on PC & Mobile in it's offical player and it does not behave that way.
 
  • Like
Reactions: Sr Bolainas

gujal

Developer
Dec 26, 2013
476
245
43
Welcome back RedPenguin, been a long time
Currently on browser it is only streaming audio (flawlessly) but the videoframe is stuck like this

Secondly if you are on Kodi 17 or above you need inputstream.rtmp patched with K-S-V fixes (same drill as the librtmp stuff before). I presume you have it already, as you mention it is playing for you already. If not, Jaioroxyz has kindly made the inputstream.rtmp patched with K-S-V fixes for Kodi 17 and Kodi 18 and made them available here.
Code:
https://keybase.pub/jairoxyz/kodi-builds/
With that in place and the following code, it behaves exactly like on the browser (no video, perfect audio)
Code:
<item>
<title>WHVL</title>
<link>rtmp://65.79.240.140:1935/BroadCam playpath=live?bandwidth=1\26src=1 swfURL=http://65.79.240.140:86/nchplayer.swf pageURL=http://65.79.240.140:86/ conn=B:1 live=true</link>
<thumbnail></thumbnail>
</item>
 
  • Like
Reactions: Sr Bolainas

gujal

Developer
Dec 26, 2013
476
245
43
You can cheat using mobile user agent to get HLS stream. The stream is 15fps, so looks like watching skype chats years ago :p

Code below has both RTMP and HLS streams
Code:
<item>
<title>WHVL</title>
<link>rtmp://65.79.240.140:1935/BroadCam playpath=live?bandwidth=1\26src=1 swfURL=http://65.79.240.140:86/nchplayer.swf pageURL=http://65.79.240.140:86/ conn=B:1 live=true</link>
<link>http://65.79.240.140:86/playlist.m3u8?camera=1&amp;quality=High|User-Agent=iPad</link>
<thumbnail></thumbnail>
</item>
 
  • Like
Reactions: Sr Bolainas

Doom

Member
Sep 16, 2019
219
21
18
Hi guys could I please get help for a makelist for this site
hxxp://givemereddit.stream
 

Picapau

Member
Nov 15, 2018
69
9
8

gujal

Developer
Dec 26, 2013
476
245
43
This is the logic to play the first channel. You can make the makelist yourself
Enjoy!

Code:
<item>
<title>Canal Cero</title>
<link>https:$doregex[secure]|Referer=https://vergol.com&amp;User-Agent=iPad</link>
<regex>
   <name>secure</name>   
   <expres>source:\s*'(/[^']+)</expres>  
   <page>https://vergol.com/canales996/live/plus1.php</page>
   <referer>https://vergol.com/</referer>
   <post>manzana66:12345</post>
</regex>
</item>
[code]
 
  • Like
Reactions: udomrat and Picapau
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5