LSP Regex & Makelist Discussion.

PinkWave

New member
Jan 24, 2021
24
2
3
Hi everyone.

First of all, sorry for my English. I'm Italian and I use Google Translate. :)

I've spent the last 2 days reading all 55 pages of this thread.
I've started writing some regexes but python isn't my favorite language.
I need help with this page: hxxps: //it.sportplus.live/football/italy-serie-a/1243730/

Thanks for your help
 

altug

Member
Jul 7, 2016
70
2
8

BymemoLee

Member
Apr 30, 2018
90
18
8
..:: İyi eğlenceler ::..

XML:
<item>
<title>[B]SITE EMBED | [COLOR cyan]DADDY[/COLOR][/B]</title>
<link>$doregex[leg]</link>
<regex>
<name>leg</name>
<listrepeat><![CDATA[
<title>[leg.param1]</title>
<link>$doregex[xurl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  source=requests.get('https://daddylive.club/',headers={'Referer':'https://daddylive.club/','User-Agent':'Mozilla/5.0'}).content.replace("&ouml;", "ö").replace("&uuml;", "ü").replace("&ccedil;", "ç").replace("&Uuml;", "Ü").replace("&Ouml;", "Ö").replace("&Ccedil;", "Ç").replace("&eacute;", "e")
  return re.findall('(?s)>(\d+[^\'"<]+)',re.findall('Soccer</span>(?s)(.*?)<h4>',source)[0])
]]></expres>
<page></page>
</regex>
<regex>
<name>xurl</name>
<listrepeat><![CDATA[
<title>[xurl.param2]</title>
<inputstream>$doregex[getUrl]</inputstream>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  data='[leg.param1]'
  source=requests.get('https://daddylive.club/',headers={'Referer':'https://daddylive.club/','User-Agent':'Mozilla/5.0'}).content.replace("&ouml;", "ö").replace("&uuml;", "ü").replace("&ccedil;", "ç").replace("&Uuml;", "Ü").replace("&Ouml;", "Ö").replace("&Ccedil;", "Ç")
  return re.findall('(?s)href="([^\'"]+)"><span style=".*?">([^\'"]+)\(.*?</span',re.findall(data+'(?s)(.*?)<br',source)[0])
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):
  url=re.findall('iframe\s*src=[\'"]([^\'"]+)',page_data)[0];url='https:'+url if url.startswith('//') else url
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'https://daddylive.club/','accept':'*/*'}).content
  m3u8=jsunpack.unpack(re.findall('(eval.*(?:m3u8|mp4).*)',source)[0])
  return re.findall('player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',m3u8)[0]+'|user-agent=Mozilla/5.0&referer='+url
]]></expres>
<page>[xurl.param1]</page>
<referer>https://daddylive.club/</referer>
</regex>
</item>
 
  • Like
Reactions: altug

BymemoLee

Member
Apr 30, 2018
90
18
8
Bunu deneyiniz m5Germany
XML:
<item>
<title>[B]SITE EMBED | [COLOR cyan]DADDY 7/24[/COLOR][/B]</title>
<link>$doregex[leg]</link>
<regex>
<name>leg</name>
<listrepeat><![CDATA[
<title>[leg.param2]</title>
<inputstream>$doregex[getUrl]</inputstream>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  source=requests.get('https://daddylive.club/24-hours-channels.php',headers={'Referer':'https://daddylive.club/24-hours-channels.php','User-Agent':'Mozilla/5.0'}).content
  return re.findall('(?s)href="/([^\'"]+)[\w\W]+?i>\s*([^\'"]+)\s*<sup',re.findall('<h3>(?s)(.*?)<div',source)[0])
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):
  url=re.findall('iframe\s*src=[\'"]([^\'"]+)',page_data)[0];url='https:'+url if url.startswith('//') else url
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'https://daddylive.club/24-hours-channels.php','accept':'*/*'}).content
  m3u8=jsunpack.unpack(re.findall('(eval.*(?:m3u8|mp4).*)',source)[0])
  return re.findall('player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',m3u8)[0]+'|user-agent=Mozilla/5.0&referer='+url
]]></expres>
<page>https://daddylive.club/[leg.param1]</page>
<referer>https://daddylive.club/24-hours-channels.php</referer>
</regex>
</item>
 
  • Like
Reactions: altug and m5Germany

cris_manya

Member
Nov 20, 2016
35
1
8
Hi! Please regex for this:

Code:
hxxps://asdfasedfhd.blogspot.com/p/vtv-plus.html
Thanks in advance!
 

RRrorony

New member
Jun 17, 2019
21
6
3
Here your code
LSP XML:
<item>
<title>asd</title>
<inputstream>$doregex[getURL]$$lic=https://tcnt.xyz/cv.php</inputstream>
<thumbnail></thumbnail>
<regex>
<name>getURL</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import requests, re
  import urllib
  def dF(s):
    s1 = urllib.unquote(s[:-1])
    t = ''
    for char in s1:
      t += chr(ord(char) - int(s[-1]))
    return t
  txt = re.findall(r"dF\('([^']+)", page_data)[0]
  txt = urllib.unquote(dF(txt))
  link = re.findall("get=([^']+)", txt)[0].decode('base64')
  return link
]]></expres>
<page>https://asdfasedfhd.blogspot.com/p/vtv-plus.html</page>
</regex>
</item>
 
  • Like
Reactions: cris_manya

Amedeo

New member
Mar 9, 2018
10
1
3
I would like to try this script, but with Kodi 17 it don't work.
On Kodi 18 LSP it don't work.
How can I do?
Thanks in advance for the script and for the reply.
Sorry! I entered my post in the previous one by mistake ...
:)
 

tpoupi

Member
Jan 2, 2016
34
0
6
please need help to regex this. Thank so much

hxxps://www.africanews.com/live/
 

m5Germany

Active member
Mar 20, 2014
215
65
28
Here's what I see:
LSP XML:
<item>
<title>www.africanews.com</title>
<thumbnail></thumbnail>
<fanart></fanart>
<link>$doregex[2a]|User-Agent=iPad&amp;Referer=https://www.africanews.com/</link>
<regex>
<name>2a</name>
<expres>$pyFunction:'$doregex[2]'.replace('\/','/')</expres>
<page></page>
<referer></referer>
</regex>
<regex>
<name>2</name>
<expres><![CDATA[primary":"([^"]+)]]></expres>
<page>$doregex[1a]</page>
<referer>https://www.africanews.com/</referer>
</regex>
<regex>
<name>1a</name>
<expres>$pyFunction:'https:$doregex[1]'.replace('\/','/')</expres>
<page></page>
<referer></referer>
</regex>
<regex>
<name>1</name>
<expres><![CDATA[url":"([^"]+)]]></expres>
<page>https://www.africanews.com/api/watchlive.json</page>
<referer>https://www.africanews.com/</referer>
</regex>
</item>
Enjoy,
m5
 

RRrorony

New member
Jun 17, 2019
21
6
3
a small code
LSP XML:
<item>
<title>africanews</title>
<link>$doregex[getUrl]</link>
<thumbnail></thumbnail>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests, time
  url = "https://www.africanews.com/api/watchlive.json"
  iframe = requests.get(url).json().get('url')
  hls = requests.get('http:'+iframe).json().get('primary')
  return hls
]]></expres>
<page></page>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
215
65
28
Tweaked. Thanks for the Python.
LSP XML:
<item>
<title>africanews</title>
<link>$doregex[getUrl]</link>
<fanart>https://talkmediaafrica.com/wp-content/uploads/2017/07/Africanews-logo.jpg</fanart>
<thumbnail>https://afrique.lalibre.be/app/uploads/2018/10/africanews.jpg</thumbnail>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests
  url = "https://www.africanews.com/api/watchlive.json"
  iframe = requests.get(url).json().get('url')
  hls = requests.get('http:'+iframe).json().get('primary')
  return hls
]]></expres>
<page></page>
</regex>
</item>
Damn, I wish I could write Python.
m5
 

tpoupi

Member
Jan 2, 2016
34
0
6
Hi guru... someone have this regex. Thank

huups://www.telesud.com/
 

RRrorony

New member
Jun 17, 2019
21
6
3
Enjoy
LSP XML:
<item>
<title>Telesud</title>
<inputstream>$doregex[getUrl]</inputstream>
<thumbnail></thumbnail>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import requests
  url = "https://www.dailymotion.com/player/metadata/video/x7wrxqb"
  hls = requests.get(url).json().get('qualities').get('auto')[0].get('url')
  return hls
]]></expres>
<page></page>
</regex>
</item>
 

RRrorony

New member
Jun 17, 2019
21
6
3
Enjoy
LSP XML:
<item>
<title>dailymotion</title>
<inputstream>$doregex[getUrl]</inputstream>
<thumbnail></thumbnail>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import requests
  url = "https://www.dailymotion.com/player/metadata/video/x7wrxqb"
  hls = requests.get(url).json().get('qualities').get('auto')[0].get('url')
  return hls
]]></expres>
<page></page>
</regex>
</item>
 

non745

New member
Feb 1, 2021
2
1
3
help me pls thank

Code:
https://www.adfbet365.com/%E0%B8%94%E0%B8%B9%E0%B8%97%E0%B8%B5%E0%B8%A7%E0%B8%B5%E0%B8%AD%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%A5%E0%B8%99%E0%B9%8C/?id=176
 
Last edited by a moderator:

arslion84

New member
Dec 31, 2015
6
0
1
Hi all

can you tell me please how example this works?
I Uploaded this in dropbox , but they not works like this...



#EXTM3U
#EXTINF:0,tet1 HD1
https://xxxxxxxxxxxxx.m3u8|Referrer=http://xxxxx.xx
#EXTINF:0,tet2 HD2
https://xxxxxxxxxxxxx.m3u8|Referrer=http://xxxxx.xx
#EXTINF:0,tet3 HD3
https://xxxxxxxxxxxxx.m3u8|Referrer=http://xxxxx.xx

XML:
<item>
<title>[COLOR violet]• [B]GU[/B][/COLOR] Test 1</title>
<thumbnail></thumbnail>
<link>$doregex[getM3U8]</link>
<externallink>http://xxxx.xxx.list.m3u</externallink>
</item>


<item><title>[COLOR violet]• [B]GU[/B][/COLOR] Test 2</title><link>http://Ignoreme</link><externallink>http://xxxx.xxx.list.m3u</externallink>
<thumbnail></thumbnail><fanart></fanart></item>
 

m5Germany

Active member
Mar 20, 2014
215
65
28
arslion84
Would be better to have the original Url\Code and whether it is local or web based.
Code will be based on that. Normally, there is not a generic Code.
Example: the below Code works with this page but will not work elsewhere unless the <expres> or <page> are Coded.
LSP XML:
<item>
<title>Example - Concept</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param1]</title>
<link>[makelist.param2]</link>   
]]></listrepeat>
<expres>:0,([^<]+)\W.*\s(h[^\s]+)</expres>
<page>https://www.tvaddons.co/community/threads/lsp-regex-makelist-discussion.62925/page-55</page>
</regex>
</item>
You can also change the file attribute from m3u to a txt file to read the file.
m5
 

asiantv

New member
Jul 12, 2020
12
0
1
Anyone know how i can play this daily motion video.

Code:
https://www.dailymotion.com/player/metadata/video/x6qp375
it was labelled private but can play on embeded website, not working on lsp

Code:
{"error":{"title":"Private content.","message":"We're sorry, but we cannot display this content because it has been labelled private by its author.","raw_message":"We're sorry, but we cannot display this content because it has been labelled private by its author.","code":"DM010","status_code":403,"refresh":0},"audience_url":"https:\/\/am-02.ix7.dailymotion.com\/vx6qp375","id":"x6qp375","view_id":"1etkbni5t4ifrpl0jsa","access_id":"x6qp375"}
 

asiantv

New member
Jul 12, 2020
12
0
1
here sir,

Code:
https://www.xtra.com.my/live-tv/
 

RRrorony

New member
Jun 17, 2019
21
6
3
Here your code, you can watch it only with Malaysia ip
LSP XML:
<item>
<title>TV3</title>
<link>$doregex[getUrl]</link>
<thumbnail></thumbnail>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests, urllib
  url = "https://www.dailymotion.com/embed/video/k3GVzd2cWbveXyrApah?api=postMessage&syndication=273888&queue-enable=false&ui-start-screen-info=false&autoPlay=1&mute=0"
  headers = {
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36',
  'referer': 'https://www.xtra.com.my/'}
  r = requests.request("GET", url, headers=headers)
  hls = re.findall(r'x-mpegURL","url":"([^"]+)', r.text)[0].replace('\/','/')
  return hls+'|'+urllib.urlencode(headers)
]]></expres>
<page></page>
</regex>
</item>
 

boulo

New member
Apr 29, 2020
1
0
1
Not working please. Thank
Code:
<item>

                <Title>regex france tv</title>

                <link>$doregex[PlayStream]|User-Agent=Mozilla/5</link>

                <regex>

                <name>PlayStream</name>

                <expres>(?s)(.*)</expres>

                <page>http://hdfauthftv-a.akamaihd.net/esi/TA?url=http://live.francetv.fr/simulcast/France_O/hls_v1/index.m3u8</page>

                </regex>

                <thumbnail>http://vignette3.wikia.nocookie.net/logopedia/images/f/fd/FranceÔ_hd.png/revision/latest?cb=20111122122329</thumbnail>

                </item>
 
Last edited by a moderator:
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5