LSP Regex & Makelist Discussion.

Catmantx

Member
Nov 2, 2020
67
3
8
Dear @streamwatcher2013 Thank You for all your work.
Would this be an easy LSP?
hxxps://azm.to/.
If is possible, the same way, just a list with the latest.
Thank you.
 

boul

Member
Nov 24, 2017
36
0
6
Please guru, Need regex. Thank for you

hxxp://live.rts.sn/livetv/rts1
 

streamwatcher2013

Well-known member
Oct 24, 2013
983
443
63
USA
Try this:

LSP XML:
<item>
<title>http://live.rts.sn/livetv/rts1</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  page_data=urllib.urlopen('http://live.rts.sn/livetv/rts1').read()
  gsource=re.findall('var\s*player[\w\W]*?source:\s*([^\(]+)',page_data)[0]
  ghtml,vtok,rtok=re.findall('function\s*%s[\w\W]*?return..([^\]]+).+?\+\s+([^\.]+).+?ById\("([^"]+)'%gsource,page_data)[0]
  tok=re.findall('%s.+?\[([^\]]+)'%vtok,page_data)[0];tok1=''.join(eval(tok))
  tok2=re.findall('%s>([^<]+)'%rtok,page_data)[0];html=''.join(eval(ghtml)).replace('\\','')
  return '%s%s%s|user-agent=ipad&referer=http://live.rts.sn/livetv/rts1'%(html,tok1,tok2)
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: undpnd tqucbo

tungbeng95

Member
Oct 25, 2018
391
15
18
Can I need help this site to learning for code.
Code:
https://www.atv.com.tr/webtv/canli-yayin
 

BymemoLee

Member
Apr 30, 2018
93
20
8
İyi eğlenceler..
XML:
<item>
<title>ATV HD</title>
<link>$doregex[RexURL]</link>
<regex>
<name>RexURL</name>
<expres><![CDATA[#$pyFunction
import requests, re
def GetLSProData(page_data,Cookie_Jar,m):
   url = 'https://securevideotoken.tmgrup.com.tr/webtv/secure?url=https://trkvz-live.ercdn.net/atvhd/atvhd_720p.m3u8'
   headers = {'User-Agent': 'Mozilla/5.0','Referer': 'http://www.atv.com.tr/webtv/canli-yayin'}
   source = requests.get(url, headers=headers)
   m3u8 = re.findall('Url".*?"(.*?)",', source.text)[0]
   return m3u8 + '|Referer=http://www.atv.com.tr/webtv/canli-yayin&User-Agent=ipad&Origin=http://www.atv.com.tr'
]]></expres>
   <page></page>
   <cookieJar></cookieJar>
</regex>
<thumbnail>https://www.lyngsat-logo.com/logo/tv/aa/atv_tr.png</thumbnail>
</item>
 

tungbeng95

Member
Oct 25, 2018
391
15
18
Tks you so much.And you can help me this site,if can. (sorry I don't understand your language,I use google translate)
Code:
https://www.tv8.com.tr/canli-yayin
 

m5Germany

Active member
Mar 20, 2014
326
105
43
If you want to learn-This is almost the same type stream I did for you and explained the sequence.
view-source:https://www.tv8.com.tr/canli-yayin
You will see the m3u8 with & to &amp;
type: "hls", file: "https://tv8-tb-live.ercdn.net/tv8-geo/playlist.m3u8?st=Tz64_YOf-JLGcqsQZ_7oLQ&e=1615744862", width: "100%", height: "100%"
You will need to write the <expres>**********</expres> which captures the m3u8, replace the *** with your expres
LSP XML:
<item>
<title>https://www.tv8.com.tr/canli-yayin</title>
<fanart></fanart>
<thumbnail></thumbnail>
<link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Referer=https://www.tv8.com.tr/</link>
<regex>
<name>m5</name>
<expres>$pyFunction:'$doregex[BMW]'.replace('&','&amp;')</expres>
<page></page>
</regex>
<regex>
<name>BMW</name>
<expres>**********</expres>
<page>https://www.tv8.com.tr/canli-yayin</page>
</regex>
</item>
Enjoy,
m5
 

boomski2

Member
Aug 19, 2019
45
1
8
anyone can do this?

Code:
http://www.ovostreams.com/soccer-streams.php
 

streamwatcher2013

Well-known member
Oct 24, 2013
983
443
63
USA
Try this

LSP XML:
<item>
<title>http://www.ovostreams.com/soccer-streams.php</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <inputstream>$doregex[makelist2]</inputstream>
  <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('<h2>([^<]+)(?s)(.*?)class=(?:.clearfix|.col-xs-12)',re.findall('Schedule</h1>(?s)(.*?)class=.text-center',page_data)[0])
]]></expres>
<page>http://www.ovostreams.com/soccer-streams.php</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR lime]([makelist2.param3]) - [COLOR gold][makelist2.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist2.param4]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)<a\s*href=[\'"]([^\'"]+).+?hidden-xs.>([^<]+).+?(\d+:\d+).+?lazyload.\s*src=[\'"]([^\'"]+)]]></expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('http://www.ovostreams.com[makelist2.param1]',headers={'user-agent':'Mozilla/5.0','referer':'http://www.ovostreams.com/soccer-streams.php','accept':'*/*'}).content
  elink=re.findall('embed-responsive-item.\s*src=[\'"]([^\'"]+)',source)[0]
  source=requests.get(elink,headers={'user-agent':'Mozilla/5.0','referer':'http://www.ovostreams.com[makelist2.param1]','accept':'*/*'}).content
  return re.findall('(?:P|p)layer[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&origin=http://www.ovostreams.com&referer='+elink
]]></expres>
<page></page>
</regex>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
983
443
63
USA
Sorry little mistake. Here is the correct code

LSP XML:
<item>
<title>http://www.ovostreams.com/soccer-streams.php</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('<h2>([^<]+)(?s)(.*?)class=(?:.clearfix|.col-xs-12)',re.findall('Schedule</h1>(?s)(.*?)class=.text-center',page_data)[0])
]]></expres>
<page>http://www.ovostreams.com/soccer-streams.php</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR lime]([makelist2.param3]) - [COLOR gold][makelist2.param2][/COLOR]</title>
  <inputstream>$doregex[getUrl]</inputstream>
  <thumbnail>[makelist2.param4]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)<a\s*href=[\'"]([^\'"]+).+?hidden-xs.>([^<]+).+?(\d+:\d+).+?lazyload.\s*src=[\'"]([^\'"]+)]]></expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('http://www.ovostreams.com[makelist2.param1]',headers={'user-agent':'Mozilla/5.0','referer':'http://www.ovostreams.com/soccer-streams.php','accept':'*/*'}).content
  elink=re.findall('embed-responsive-item.\s*src=[\'"]([^\'"]+)',source)[0]
  source=requests.get(elink,headers={'user-agent':'Mozilla/5.0','referer':'http://www.ovostreams.com[makelist2.param1]','accept':'*/*'}).content
  return re.findall('(?:P|p)layer[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&origin=http://www.ovostreams.com&referer='+elink
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: Catmantx

m5Germany

Active member
Mar 20, 2014
326
105
43
Greetings, Not sure about this one. Uses a "data.php" to show m3u8 similar to a loadrebalance from the past.
Can't figure it out. Above me pay grade.
Info:
https://ustv247.tv/science/
As Always, Thanks in advance.
m5
 

m5Germany

Active member
Mar 20, 2014
326
105
43
Amazing as usual. Nice to see your looking in. Have to look at Code. So damn easy - have never used <post> before.
Don't be a stranger.
Thank you, Sir.
m5
 

adriansyafiq

Member
Jan 3, 2016
35
2
8
Hi Gurus,

need help regex for this. :)
thanks in advanced!

Code:
https://sports24.stream/tv/v?id=fs1
 

m5Germany

Active member
Mar 20, 2014
326
105
43
Info:
<Period id="1" start="PT0S">
    <BaseURL>laune_drm/dash/</BaseURL>
    <AdaptationSet id="2" group="1" contentType="audio" lang="fr" segmentAlignment="true" audioSamplingRate="44100" mimeType="audio/mp4" codecs="mp4a.40.2" startWithSAP="1">
      <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
      <!-- Common Encryption -->
      <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="0AE4577A-8DC9-EBCE-3532-5AE608A0DFA6"/>
      <!-- PlayReady -->
      <ContentProtection schemeIdUri="urn:uuid:9A04F079-9840-4286-AB92-E65BE0885F95" value="MSPR 2.0"/>
      <!-- Widevine -->
      <ContentProtection schemeIdUri="urn:uuid:EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED"/>
      <!-- Marlin -->
      <ContentProtection schemeIdUri="urn:uuid:5E629AF5-38DA-4063-8977-97FFBD9902D4">
        <MarlinContentIds xmlns="urn:marlin:mas:1-0:services:schemas:mpd">
          <MarlinContentId>urn:marlin:kid:0ae4577a8dc9ebce35325ae608a0dfa6</MarlinContentId>
        </MarlinContentIds>
      </ContentProtection>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/>
      <SegmentTemplate timescale="44100" initialization="laune_drm-$RepresentationID$.dash" media="laune_drm-$RepresentationID$-$Time$.dash">
        <!-- 2021-03-20T08:22:24.657845Z / 1616228544 - 2021-03-20T08:32:24.638253Z -->
        <SegmentTimeline>
<Representation id="audio_vf=128000" bandwidth="128000"/>
    </AdaptationSet>
    <AdaptationSet id="3" group="1" contentType="audio" lang="mul" segmentAlignment="true" audioSamplingRate="44100" mimeType="audio/mp4" codecs="mp4a.40.2" startWithSAP="1">
      <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
      <!-- Common Encryption -->
      <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="0AE4577A-8DC9-EBCE-3532-5AE608A0DFA6"/>
      <!-- PlayReady -->
      <ContentProtection schemeIdUri="urn:uuid:9A04F079-9840-4286-AB92-E65BE0885F95" value="MSPR 2.0"/>
      <!-- Widevine -->
      <ContentProtection schemeIdUri="urn:uuid:EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED"/>
      <!-- Marlin -->
      <ContentProtection schemeIdUri="urn:uuid:5E629AF5-38DA-4063-8977-97FFBD9902D4">
        <MarlinContentIds xmlns="urn:marlin:mas:1-0:services:schemas:mpd">
          <MarlinContentId>urn:marlin:kid:0ae4577a8dc9ebce35325ae608a0dfa6</MarlinContentId>
        </MarlinContentIds>
      </ContentProtection>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/>
      <SegmentTemplate timescale="44100" initialization="laune_drm-$RepresentationID$.dash" media="laune_drm-$RepresentationID$-$Time$.dash">
        <!-- 2021-03-20T08:22:24.657845Z / 1616228544 - 2021-03-20T08:32:24.638253Z -->
        <SegmentTimeline>
m5
 

RRrorony

New member
Jun 17, 2019
25
6
3
Hi @streamwatcher2013 @gujal , i need your expertise.
i try a link with drm, when i test the secure url in curl bash http is 200 ok, but not in kodi,
link secure
Bash:
curl -i -o- 'https://ca.sports24.site/proxy/rtbf.php' \
  -H 'authority: ca.sports24.site' \
  -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 OPR/74.0.3911.107' \
  -H 'accept: */*' \
  -H 'origin: https://sports24.icu' \
  -H 'sec-fetch-site: cross-site' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-dest: empty' \
  -H 'referer: https://sports24.icu/bm/play.php?id=laune' \
  -H 'accept-language: fr,en-US;q=0.9,en;q=0.8' \
  --data-raw $'\u0008\u0004' \
  --compressed
And this the video link
[CODE
[/CODE]
 

gujal

Developer
Dec 26, 2013
590
326
63
Which web page plays this stream? In kodi I am getting this
{"errorcode":371000005,"errormsg":"Widevine license acquisition failed >> Verified media path cannot be verified","errorid":"1b591345-b11d-43dd-a452-afe506e655e0"}
 

gujal

Developer
Dec 26, 2013
590
326
63
That MPD stream is using MARLIN DRM, no support in Kodi. The only DRM supported in Kodi for now is Widevine
 

gujal

Developer
Dec 26, 2013
590
326
63
If you open the the MPD file in text editor and look for ContentProtection, you can see what DRM is being used. For the above MPD you can see
Code:
      <ContentProtection schemeIdUri="urn:uuid:5E629AF5-38DA-4063-8977-97FFBD9902D4">
        <MarlinContentIds xmlns="urn:marlin:mas:1-0:services:schemas:mpd">
          <MarlinContentId>urn:marlin:kid:0ae4577a8dc9ebce35325ae608a0dfa6</MarlinContentId>
        </MarlinContentIds>
      </ContentProtection>
 
  • Like
Reactions: RRrorony

m5Germany

Active member
Mar 20, 2014
326
105
43
Does it not show Widevine Protection, also?
Info:
<Period id="1" start="PT0S">
    <BaseURL>laune_drm/dash/</BaseURL>
    <AdaptationSet id="2" group="1" contentType="audio" lang="fr" segmentAlignment="true" audioSamplingRate="44100" mimeType="audio/mp4" codecs="mp4a.40.2" startWithSAP="1">
      <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
      <!-- Common Encryption -->
      <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="0AE4577A-8DC9-EBCE-3532-5AE608A0DFA6"/>
      <!-- PlayReady -->
      <ContentProtection schemeIdUri="urn:uuid:9A04F079-9840-4286-AB92-E65BE0885F95" value="MSPR 2.0"/>
      <!-- Widevine -->
      <ContentProtection schemeIdUri="urn:uuid:EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED"/>
      <!-- Marlin -->
      <ContentProtection schemeIdUri="urn:uuid:5E629AF5-38DA-4063-8977-97FFBD9902D4">
        <MarlinContentIds xmlns="urn:marlin:mas:1-0:services:schemas:mpd">
          <MarlinContentId>urn:marlin:kid:0ae4577a8dc9ebce35325ae608a0dfa6</MarlinContentId>
        </MarlinContentIds>
      </ContentProtection>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/>
      <SegmentTemplate timescale="44100" initialization="laune_drm-$RepresentationID$.dash" media="laune_drm-$RepresentationID$-$Time$.dash">
        <!-- 2021-03-20T08:22:24.657845Z / 1616228544 - 2021-03-20T08:32:24.638253Z -->
        <SegmentTimeline>
<Representation id="audio_vf=128000" bandwidth="128000"/>
    </AdaptationSet>
    <AdaptationSet id="3" group="1" contentType="audio" lang="mul" segmentAlignment="true" audioSamplingRate="44100" mimeType="audio/mp4" codecs="mp4a.40.2" startWithSAP="1">
      <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
      <!-- Common Encryption -->
      <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="0AE4577A-8DC9-EBCE-3532-5AE608A0DFA6"/>
      <!-- PlayReady -->
      <ContentProtection schemeIdUri="urn:uuid:9A04F079-9840-4286-AB92-E65BE0885F95" value="MSPR 2.0"/>
      <!-- Widevine -->
      <ContentProtection schemeIdUri="urn:uuid:EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED"/>
      <!-- Marlin -->
      <ContentProtection schemeIdUri="urn:uuid:5E629AF5-38DA-4063-8977-97FFBD9902D4">
        <MarlinContentIds xmlns="urn:marlin:mas:1-0:services:schemas:mpd">
          <MarlinContentId>urn:marlin:kid:0ae4577a8dc9ebce35325ae608a0dfa6</MarlinContentId>
        </MarlinContentIds>
      </ContentProtection>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/>
      <SegmentTemplate timescale="44100" initialization="laune_drm-$RepresentationID$.dash" media="laune_drm-$RepresentationID$-$Time$.dash">
        <!-- 2021-03-20T08:22:24.657845Z / 1616228544 - 2021-03-20T08:32:24.638253Z -->
        <SegmentTimeline>
m5
 

gujal

Developer
Dec 26, 2013
590
326
63
fs1 seems to be MS playready DRM.
This is in the embed page. Playready or Fairplay only
Code:
var src = "https://livemanifest-hulustream-com.akamaized.net/live_dash/FS1-MLB.mpd?duration=10800&corruption_start=1610634390&cdn=all&max_h264_codec=avc1.640029&max_frame_rate=60&enabled_audio_codecs=AAC&cluster=blue&origin_location=aor&repeat=1&use_events=1&fill_gap=1&include_segment_type=1&fragment_offset=3&authToken=1616292811_9239fd498f9dbd29c66c279e05578c97";
var hls = "https://livemanifest-hulustream-com.akamaized.net/live_hls/FS1-MLB.m3u8?start=1616205660&corruption_start=1610634390&cdn=all&max_h264_codec=avc1.640029&max_frame_rate=60&enabled_audio_codecs=AAC&cluster=blue&origin_location=aor&fragment_offset=3&live_dai=1&authToken=1616292812_161e61d9e51e2462bf51ba9dc5ea8f9d&ad_session_id=hulu%3Aads%3Aus%3Aplay%3Asession%3A486b6946-c034-455a-a534-09f9063ad21e-37279430-37279430-F42FE63A3786205FCDB0D3328637A3A0";
var myPR = "https://play.hulu.com/license/v2/linear/pr_license/FS1-MLB?deejay_device_id=190&signature=1616242411_cb1b842bef384d4ed31caf13ab5896f64b6184b7";
var myFP = "https://play.hulu.com/license/v1/linear/fp_license/303030303036303234303733372d4650?deejay_device_id=191&signature=1616242412_a013a4cd0ddfd37f8b6f5d98e5bcbd8d82c84ea7";
var myCert = "https://ads-v-darwin.hulustream.com/public/fairplay_cert.der";
 

aridjana

New member
Mar 3, 2016
10
0
1
hello guru,
regex please to :

hxxps://10gbus.afrik.live:1929/afriklive/france24.stream/chunks.m3u8?nimblesessionid=14105862&wmsAuthSign=c2VydmVyX3RpbWU9My8xNC8yMDIxIDI6MjM6MTYgQU0maGFzaF92YWx1ZT1sZVlqSjBtS05mRTZyY1RYUkp0ckl3PT0mdmFsaWRtaW51dGVzPTEwJnN0cm1fbGVuPTI1
 

gujal

Developer
Dec 26, 2013
590
326
63
Enjoy!

LSP XML:
<item>
<title>France 24</title>
<link>$doregex[getUrl]$doregex[logout]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re,requests,time
  now = int(time.time())
  pdata = {'amember_login':'aridjana1','amember_pass':'nathaneliakim123','login_attempt_id':now}
  lurl = 'https://mytv.afrik.live/members/login'
  headers = {'user-agent':'Mozilla/5.0','referer':lurl}
  rUrl=requests.post(lurl, headers=headers, data=pdata, allow_redirects=False)
  source=requests.get('https://mytv.afrik.live/home/player/60/1',headers=headers,cookies=rUrl.cookies).text
  fid = re.findall('file:\s*(\w[^\'"\(]+)',source)[0]
  values = re.findall('function\s*%s[\w\W]*?return.\[([^\]]+).+?\+\s*([^\.]+).+?ById."([^"]+)'%fid, source)[0]
  html = ''.join(eval(values[0])).replace('\\','')
  tok1 = re.findall('var\s*%s.+?\[([^\]]+)'%values[1], source)[0]
  tok1 = ''.join(eval(tok1))
  tok2 = re.findall('id=%s>([^<]+)'%values[2],source)[0]
  if 'http' not in html:
    return 'https:%s%s%s|user-agent=ipad&referer=https://mytv.afrik.live/'%(html,tok1,tok2)
  else:
    return '%s%s%s|user-agent=ipad&referer=https://mytv.afrik.live/'%(html,tok1,tok2)
]]></expres>
<page></page>
</regex>
<regex>
<name>logout</name>
<expres></expres>
<page>https://mytv.afrik.live/members/logout</page>
<agent>Mozilla/5.0</agent>
<cookiejar></cookiejar>
</regex>
</item>
 

faustino

New member
Sep 1, 2020
21
0
1
Any solution for this link?

https://geralorigin.eu-central-1.edge.mycdn.live/mylive/foxsportshd/video.m3u8?md5=VeE3gCP0nZJI4keHhENaog&expires=1616138433

Original Site:
https://canaismax.com/assistir-fox-sports-ao-vivo-online-24-horas
 

sedyo

New member
Apr 28, 2018
14
0
1
Hi, test this mate

LSP XML:
<item>
<title>canaismax/assistir-fox-sports-ao-vivo-online-24-horas </title>
<thumbnail></thumbnail>
<fanart></fanart>
<link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Referer=https://canaismax.com/assistir-fox-sports-ao-vivo-online-24-horas</link>
<regex>
<name>m5</name>
<expres>source:.'(.+)'</expres>
<page>https://canaismax.com/assistir_no_cmax.php?id=vintequatrohrs3</page>
</regex>
</item>
 

Doom

Member
Sep 16, 2019
321
21
18
Could someone help me here & thanks!
hxxp://crackstreams.is/ncaabstreams/
 

m5Germany

Active member
Mar 20, 2014
326
105
43
This should work in Theory. I used the base Code from @streamwatcher2013 Post: #1,155 and added the menu. Streams are not made Live till approx. 1 hour before game.
LSP XML:
<item>
<title>NCAAB March Madness Live Streams and Schedule</title>
<fanart>https://cloudfront-us-east-1.images.arcpublishing.com/advancelocal/TGQQE6QEVVG7TAY2PWNEQLT7LE.jpg</fanart>
<thumbnail>http://crackstreams.is/icons/ncaab2.png</thumbnail>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>([makelist.param3]) [makelist.param2]</title>
<fanart>https://cloudfront-us-east-1.images.arcpublishing.com/advancelocal/TGQQE6QEVVG7TAY2PWNEQLT7LE.jpg</fanart>
<thumbnail>http://crackstreams.is/icons/ncaab2.png</thumbnail>
<link>$doregex[m5]</link>   
]]></listrepeat>
<expres>a href='([^']+)[\w\W]*?g'>\s*([^<]+).*\n.*?-\s([^<]+)</expres>
<page>http://crackstreams.is/ncaabstreams/</page>
</regex>
<regex>
<name>m5</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('[makelist.param1]',headers={'user-agent':'Mozilla/5.0','referer':'http://crackstreams.is/mmastreams/watch-ufc-rozenstruik-vs-gane/','accept':'*/*'}).content
  if 'window.atob' in source:
    return re.findall('window.atob.[\'"]([^\'"]+)',source)[0].decode('base64')+'|user-agent=ipad&origin=http://crackstreams.is&referer=http://crackstreams.is/mmastreams/watch-ufc-rozenstruik-vs-gane/video.php'
  else:
    return re.findall('id="play[\w\W]+?(?:source|src|file):\s*[\'"](htt[^\'"]+)',source)[0]+'|user-agent=ipad&origin=http://crackstreams.is&referer=http://crackstreams.is/mmastreams/watch-ufc-rozenstruik-vs-gane/video.php'
]]></expres>
<page></page>
</regex>
</item>
RW5qb3ks
bTU=
 

undpnd tqucbo

Member
Jan 25, 2021
157
2
18
Hello..Could anyone help regex for this & tk in advanced!
Code:
hxxps://ntv.newitventure.com/api/v1/ntv/home/detail?type=channel&slug=ntv
 

gujal

Developer
Dec 26, 2013
590
326
63
That is the api url, and by itself is no use. Need the webpage plays that stream so that all the required headers can be known
 

Doom

Member
Sep 16, 2019
321
21
18
Could someone regex this channel & thanks!
hxxp://www.supertelevisionhd.com/frecuencia-latina/
 

tungbeng95

Member
Oct 25, 2018
391
15
18
Try this:
Code:
<item>
<title>Latina Envivo</title>
<link>$doregex[getUrl]|User-Agent=iPad</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re,jsunpack
  e = re.findall('(eval\(function[^\n]+)',page_data)[0]
  p = jsunpack.unpack(e).replace('\\','')
  u = re.findall('''source:\s*['"]([^'"]+)''',p)[0]
  return u
]]></expres>
<page>https://wigistream.to/embed/6d7wkcq</page>
<referer>https://wigistream.to/embed/6d7wkcq</referer>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
326
105
43
Your Code does not work as written. But at least you have made an attempt.

e = re.findall('(eval\(function[^\n]+)',page_data)[0]
p = jsunpack.unpack(e).replace('\\','')
u = re.findall('''source:\s*['"]([^'"]+)''',p)[0]
<referer>h**ps://wigistream.to/embed/6d7wkcq</referer>

Here's what I see:
e = expres captures (2) evals - you need to capture the 1st only
p = why are you using .replace('\\',''), there is no \/ in Code (rhetorical question)
u = expres captures nothing
<referer> wrong referer
Info:
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('$(d).y(3(){j n=b;$("#2").1L();$("#r").Z();j u={10:7,};5(w t!="v"&&w 12!="v"){u["Y"]=t.17()}2=18("#r",{1a:A,1b:"l",c:z,});2.a({a:"1c://1d.1e.X:V/I/J.K?s=L&e=M",p:"C/x-H",});2.4("i",3(){O.8(3(){$(".g-o").k()},Q);5(!q){q=b;8(3(){j h=d.T("U")[0],s=d.G("R");s.p="16/1g";s.1f=b;s.a="//1B.1C/1D/1E/1F/1G.1H";h.1J(s)},1I);5(z)$("#6-f").9()}});2.4("1z",3(){1y()});2.4("1x",3(){$(".g-o").9()});2.4("y",3(){8(3(){2.i()},1j)});2.4("1l",3(){5(n&&2.c()||2.F()==0){$("#6-f").9()}1h{$("#6-f").k()}})});3 1r(){$(".g-1s").1t("1u","l");2.1v();2.i()}3 W(){2.c(A);2.F(1)}$("1q").1o(\'<m E="E:C/1n;1m,1k" 1i="D" 1w="D" 1A="1p:N;P:-B;S:-B;19:15;" 14="13();$(11).1K()"></m>\')',62,110,'||player|function|on|if|btn||setTimeout|fadeIn|src|true|muted|document||unmute|stream||play|var|fadeOut|none|object|showumute|logo|type|videoStarted|player2||engine|hlsjsConfig|undefined|typeof||ready|startMuted|false|500px|application|1px|data|volume|createElement|mpegURL|hls|6d7wkcq|m3u8|5wfGS6JOfeUV6lMVkUxPOw|1616337913|absolute|window|top|1000|script|left|getElementsByTagName|head|8443|WSUnmute|net|loader|show|liveSyncDurationCount|this|p2pml|abd|onerror|hidden|text|createLoaderClass|videojs|visibility|autoplay|preload|https|mg79qkb28x4up6a|ezcdn462|async|javascript|else|width|3000|aG1t|volumechange|base64|pdf|append|position|body|WSreloadStream|offline|css|display|load|height|pause|errorPlaying|error|style|lifeseatbird|com|ea|c5|7c|eac57c020cd3ce56fea4a7f126ad0bad|js|15000|appendChild|remove|hide'.split('|'),0,{}))

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('H(s(){$("r").q("<1 5=\\"4\\" 2=\\"7\\" f=\\"g://i.h/l\\" 6=\\"8:3\\" 9=\\"0-a-b 0-c 0-d 0-e\\"></1><1 5=\\"4\\" 2=\\"7\\" f=\\"g://i.h/o\\" 6=\\"8:3\\" 9=\\"0-a-b 0-c 0-d 0-e\\"></1><1 5=\\"4\\" 2=\\"7\\" f=\\"g://i.h/n\\" 6=\\"8:3\\" 9=\\"0-a-b 0-c 0-d 0-e\\"></1><1 5=\\"4\\" 2=\\"7\\" f=\\"g://i.h/m\\" 6=\\"8:3\\" 9=\\"0-a-b 0-c 0-d 0-e\\"></1><1 5=\\"4\\" 2=\\"7\\" f=\\"g://i.h/k\\" 6=\\"8:3\\" 9=\\"0-a-b 0-c 0-d 0-e\\"></1><1 5=\\"4\\" 2=\\"7\\" f=\\"g://t.j/p\\" 6=\\"8:3\\" 9=\\"0-a-b 0-c 0-d 0-e\\"></1><1 5=\\"4\\" 2=\\"7\\" f=\\"g://v.j/w\\" 6=\\"8:3\\" 9=\\"0-a-b 0-c 0-d 0-e\\"></1><1 5=\\"4\\" 2=\\"7\\" f=\\"//x.j/y/z\\" 6=\\"8:3\\" 9=\\"0-a-b 0-c 0-d 0-e\\"></1><1 5=\\"4\\" 2=\\"7\\" f=\\"g://A.B/C?D=E&F=G\\" 6=\\"8:3\\" 9=\\"0-a-b 0-c 0-d 0-e\\"></1>")},u);',44,44,'allow|iframe|height|none|1366|width|style|768|display|sandbox|same|origin|scripts|popups|forms|src|https|buzz|zap|com|BVwkdEK|4kN|Y7MvP0W|ll4|QYn|KdORxkr|append|body|function|popxyz|5000|yuppyads|aaKkk4M|khandragthresh|iBsoG511Gsf7|28749|nsparket|top|redirect|tid|756113|file|Watch_Live|setTimeout'.split('|'),0,{}))
Kodi Log:
u = re.findall('''source:\s*['"]([^'"]+)''',p)[0]
ERROR: IndexError: list index out of range

Try again,
m5
 
  • Like
Reactions: tungbeng95

m5Germany

Active member
Mar 20, 2014
326
105
43
LSP XML:
<item>
<title>Latina Envivo - Python</title>
<link>$doregex[m5]|User-Agent=Mozilla/5.0</link>
<regex>
<name>m5</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re,jsunpack
  e=jsunpack.unpack(re.findall('(eval.*m3u8.*)',page_data)[0])
  return re.findall('src:\s*"([^"]+)',e)[0]
]]></expres>
<page>https://wigistream.to/embed/6d7wkcq</page>
<referer>http://www.aodirectos.xyz/</referer>
</regex>
</item>

<item>
<title>Latina Envivo - RegEx</title>
<fanart></fanart>
<thumbnail></thumbnail>
<link>$doregex[m5]|User-Agent=Mozilla/5.0</link>
<regex>
<name>m5</name>
<expres>src:\s*"([^"]+)</expres>
<page>$doregex[m4]</page>
</regex>
<regex>
<name>m4</name>
<expres>$pyFunction:get_unpacked(page_data,'(eval.*m3u8.*)')</expres>
<page>$doregex[m3]</page>
</regex>
<regex>
<name>m3</name>
<expres>(eval.*m3u8.*)</expres>
<page>https://wigistream.to/embed/ux33vvl</page>
<referer>http://www.aodirectos.xyz/</referer>
</regex>
</item>
m5
 
  • Like
Reactions: tungbeng95

tungbeng95

Member
Oct 25, 2018
391
15
18
Can someone help me this site and tks:
Code:
https://www.rte.ie/player/onnow/66546216065
 

m5Germany

Active member
Mar 20, 2014
326
105
43
When viewing the .mpd it appears to be "microsoft-playready" which can not be played in LSPro. Not sure if the Widevine Protection can be Coded.
Info:
<!-- Widevine -->
      <ContentProtection
        xmlns="urn:mpeg:dash:schema:mpd:2011"
        schemeIdUri="urn:uuid:EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED">
        <pssh
          xmlns="urn:mpeg:cenc:2013">AAAAUnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADIaDnRoZXBsYXRmb3JtcnRlIiBhNDUzZjQ3ZmE3OTU5MDAzMDk2MDliNjg3MzdiOGM2MA==</pssh>
      </ContentProtection>
cenc:default_KID="765CD704-94B0-6FD0-6494-702620BBC172
m5
 

undpnd tqucbo

Member
Jan 25, 2021
157
2
18
Can try help me & tk!
Code:
hxxps://www.parsatv.com/m/name=Show-Max#
 

m5Germany

Active member
Mar 20, 2014
326
105
43
Python & RegEx Code:
LSP XML:
<item>
<title>parsatv.com Show-Max# Python</title>
<fanart></fanart>
<thumbnail></thumbnail>
<link>$doregex[m5]|User-Agent=Mozilla/5.0</link>
<regex>
<name>m5</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re
  return re.findall('autoplay\s*src="([^"]+)',page_data)[0]
]]></expres>
<page>https://www.parsatv.com/m/name=Show-Max#</page>
</regex>
</item>

<item>
<title>parsatv.com Show-Max# RegEx</title>
<fanart></fanart>
<thumbnail></thumbnail>
<link>$doregex[m5]|User-Agent=Mozilla/5.0</link>
<regex>
<name>m5</name>
<expres>$pyFunction:'$doregex[m4]'.replace('&','&amp;')</expres>
<page></page>
</regex>
<regex>
<name>m4</name>
<expres>autoplay\s*src="([^"]+)</expres>
<page>https://www.parsatv.com/m/name=Show-Max#</page>
</regex>
</item>
m5
 
  • Like
Reactions: undpnd tqucbo

m5Germany

Active member
Mar 20, 2014
326
105
43
Greetings, I vaguely remember reading that jsunpack is incorporated in LSPro so we do not need to import it. Still learning - How would I replace jsun w/ .decode('base64')?
Info:
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re,jsunpack
  e=jsunpack.unpack(re.findall('(eval.*m3u8.*)',page_data)[0])
  return re.findall('src:\s*"([^"]+)',e)[0]
]]></expres>

to ?

<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re
  e=(re.findall('(eval.*m3u8.*)',page_data)[0]).decode('base64')
  return re.findall('src:\s*"([^"]+)',e)[0]
]]></expres>
As Always, Thanks.
m5
 

gujal

Developer
Dec 26, 2013
590
326
63
earlier jsunpack was being imported from urlresolver/resolveurl.
so it looked like
Code:
from resources.lib import jsunpack
Now lsp includes it so you can go
Code:
import jsunpack
You still need to import it to unpack, it is not automatic
 
  • Like
Reactions: m5Germany
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5