LSP Regex & Makelist Discussion.

m5Germany

Active member
Mar 20, 2014
204
58
28
Thanks - Put my own flair on it.

LSP XML:
<item>
<title>[COLOR=FF00FFFF]USA |[COLOR=FF00FF00] FOX News - usatodaynews.live [COLOR=red](HD)[/COLOR][/COLOR] | RegEx[/COLOR]</title>
<link>$doregex[get-m3u8]|User-agent=ipad</link>
<thumbnail>https://www.broadcastingcable.com/.image/t_share/MTU4Nzc0ODkxMjQ2NTI4MTYx/fox-news-channel-logo.jpg</thumbnail>
<fanart>https://www.broadcastingcable.com/.image/t_share/MTU4Nzc0ODkxMjQ2NTI4MTYx/fox-news-channel-logo.jpg</fanart>
<regex>
<name>get-m3u8</name>
<expres><![CDATA[file.{2}['"]([^"]+)"]]></expres>
<page>$doregex[get-php]</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>get-php</name>
<expres><![CDATA[iframe.*?['"]([^&]+)]]></expres>
<page>http://usatodaynews.live/110-fox-news-live-stream-free.html</page>
<cookieJar></cookieJar>
</regex>
</item>
Enjoy,
m5
 

m5Germany

Active member
Mar 20, 2014
204
58
28
OK - should have negated the " as it was not necessary.

Original: <expres><![CDATA[file.{2}['"]([^"]+)"]]></expres>
Corrected: <expres><![CDATA[file.{2}['"]([^"]+)]]></expres>

OOOps
 

gujal

Developer
Dec 26, 2013
526
290
63
Your expression should be slightly modified as you are matching either ' or "
Original: <expres><![CDATA[file.{2}['"]([^"]+)]]></expres>
Corrected: <expres>file.\s*['"]([^'"]+)</expres>
 

jamers

New member
Jun 29, 2018
24
0
1
Hi,
How I can play this link on livestreamspro ? Thank you

hxxps://mixdrop.co/e/ayyhe
 

streamwatcher2013

Well-known member
Oct 24, 2013
915
399
63
USA
Simple one. Change urlresolver or resolveurl for you need.

LSP XML:
<item>
<title>Knives Out</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
from urlresolver.plugins.lib import jsunpack
#from resolveurl.plugins.lib import jsunpack
def GetLSProData(page_data,Cookie_Jar,m):
  source=jsunpack.unpack(re.findall('(eva.*mp4.*)',page_data)[0]).replace('\\', '')
  return 'https://'+re.findall('MDCore.vsrc1.+?//([^"]+)',source)[0]+'|user-agent=VLC'
]]></expres>
<page>https://mixdrop.co/e/ayyhe</page>
</regex>
<thumbnail>https://m.media-amazon.com/images/M/MV5BMGUwZjliMTAt[email protected]._V1_.jpg</thumbnail>
<fanart>https://panandslam.files.wordpress.com/2019/11/at-the-movies-4-1.jpg</fanart>
</item>
 
  • Like
Reactions: jamers

gujal

Developer
Dec 26, 2013
526
290
63
JSUnpack is included in LSP2.9.3 so you dont need to point to urlresolver or resolveurl for it.
You can just go with import jsunpack
Also if you have the latest ResolveURL, mixdrop resolver is included, so you could just go with

LSP XML:
<item>
<title>Knives Out</title>
<urlsolve>https://mixdrop.co/e/ayyhe</urlsolve>
<thumbnail>https://m.media-amazon.com/images/M/MV5BMGUwZjliMTAtNzAxZi00MWNiLWE2NzgtZGUxMGQxZjhhNDRiXkEyXkFqcGdeQXVyNjU1NzU3M[email protected]_V1_.jpg</thumbnail>
<fanart>https://panandslam.files.wordpress.com/2019/11/at-the-movies-4-1.jpg</fanart>
</item>
 

BymemoLee

Member
Apr 30, 2018
90
18
8

streamwatcher2013

Well-known member
Oct 24, 2013
915
399
63
USA
Some of TV show is working not Sport channels

LSP XML:
<item>
<title>http://www.hejlkku.com/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2]  [COLOR lime]CANLI[/COLOR]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('href="([^"]+).+?name">([^<]+)',re.findall('id="channel-list">(?s)(.*?)</section',page_data)[0])
]]></expres>
<page>http://www.hejlkku.com/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return urllib.unquote(re.findall('data-player-url.+?#([^"]+)',page_data)[0])+'|user-agent=ipad'
]]></expres>
<page>[makelist.param1]</page>
<referer>http://www.hejlkku.com/</referer>
</regex>
</item>
 
  • Like
Reactions: altug and turko03

boomski2

Member
Aug 19, 2019
40
1
8
hi all, happy new year.

anyone can help me with this site

Code:
https://dutafilm.live/negara/france
 

Doom

Member
Sep 16, 2019
272
21
18
Need help for this and thanks also Happy New Year 2020 to everyone!

Code:
hxxp://156.96.44.13:25461/live/iptvap/rnw917zHje/235_.m3u8?token=7OSmWj0lLdvAu8F1NaymzA&expires=1577843350
HTTP/1.1
Host: 156.96.44.13:25461
Proxy-Connection: keep-alive
Origin:
Code:
hxxp://156.96.44.13:25461/live/iptvap/rnw917zHje/235_.m3u8?token=7OSmWj0lLdvAu8F1NaymzA&expires=1577843350
Save-Data: on
User-Agent: Mozilla/5.0 (Linux; Android 8.1.0; SM-J727P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Mobile Safari/537.36
Accept: */*
Referer:
Code:
hxxp://www.radiotormentamx.com/livestream/apvallonline.php?id=235
 
Last edited by a moderator:

gujal

Developer
Dec 26, 2013
526
290
63
Use code tags to insert logs next time.
Enjoy!

LSP XML:
  <item>
    <title>AMC</title>
    <link>$doregex[url]|User-Agent=iPad</link>
    <thumbnail></thumbnail>
    <regex>
      <name>url</name>
      <expres>source:\s*['"]([^'"]+)</expres>
      <page>http://www.radiotormentamx.com/livestream/apvallonline.php?id=235</page>
    </regex>
  </item>
 
  • Like
Reactions: Doom

DerWolf

Member
Nov 20, 2019
43
5
8
can you help me this code thanks in anvance and happy new year for All

hxxps://www.startv.com.tr/dizi/cocuk
 

BymemoLee

Member
Apr 30, 2018
90
18
8
Code:
<item>
<title>[B][COLOR white]https://www.startv.com.tr/dizi/cocuk/bolumler[/COLOR][/B]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3][/COLOR]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,HTMLParser
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  mlist=re.findall('class="infinite-item">(?s)(.*?)</ul',page_data)[0].replace('&#246;','ö').replace('&#252;','ü').replace('&#39;','\'')
  mdata=re.findall('data-src=[\'"]([^\?]+)[\w\W]*?href=[\'"]/(.*?)">([^<]+)',mlist);parse=HTMLParser.HTMLParser()
  headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; W…) Gecko/20100101 Firefox/62.0','Referer':'https://www.startv.com.tr/dizi/cocuk/bolumler','X-Requested-With':'XMLHttpRequest','Accept':'*/*'}
  count=1;pn=1;data=[]
  while pn <= int(count):
    page='https://www.startv.com.tr/dizi/cocuk/bolumler?pageIndex='+str(pn)+'&ord=1&';source=requests.get(page,headers=headers).text
    list=parse.unescape(re.findall('class="infinite-item">(?s)(.*?)</ul',source)[0])
    data +=re.findall('data-src=[\'"]([^\?]+)[\w\W]*?href=[\'"]/(.*?)">([^<]+)',list);pn +=1
  return mdata+data
]]></expres>
<page>https://www.startv.com.tr/dizi/cocuk/bolumler</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return requests.get(re.findall('videoUrl.*?[\'"](h[^\'"]+)',page_data)[0],headers={'User-Agent':'Mozilla/5.0','Referer':'https://www.startv.com.tr/[makelist.param2]'}).json()['data']['flavors']['hls']
]]></expres>
<page>https://www.startv.com.tr/[makelist.param2]</page>
<referer>https://www.startv.com.tr/dizi/cocuk/bolumler</referer>
<cookieJar></cookieJar>
</regex>
<thumbnail>https://assets.startv.com.tr/assets/images/logo/apple-touch-icon-180x180.png</thumbnail>
</item>
 
  • Like
Reactions: altug and turko03

Beezlo

Member
Mar 17, 2016
33
0
6
Hello Friends

first of all i wish you guys a happy new year!!

So i need Help for fix the makelist.
Thanks in Advance


Makelist:
<item>
<title>[COLOR magenta]K[COLOR white]UZEY YILDIZI[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR yellow][makelist.param3][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('(?s)href="/(.*?)".*?src="(.*?)".*?title">([^<]+)',re.findall('class="swiper-wrapper">(?s)(.*?)"section-series-program-info',page_data)[0])
]]></expres>
<page>https://www.showtv.com.tr/dizi/tum_bolumler/kuzey-yildizi-ilk-ask-sezon-1-bolum-16-izle/85161</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3] ([makelist2.param1]. Part)[/COLOR]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
if '"video-part"' in page_data:
   list=re.findall('video-part-name">(?s)(.*?)</ul',page_data)[0]
   title=re.findall('href.+?>(\d+)<',list);link=re.findall('href="/([^"]+)',list)
   return zip(title,link)
elif '"video-part"' not in page_data:
   list=re.findall('"TVEpisode"(?s)(.*?)</script',page_data)[0].replace('\\','')
   return re.findall('"episodeNumber":"([^"]+)".+?url".+?.tr/([^"]+)',list)
]]></expres>
<page>https://www.showtv.com.tr/[makelist.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('"ht_files"(?s)(.*?)<script',page_data)[0].replace('\\','')
  if '1080' in list:
    return re.findall('"name":"1080"."file":"(.+?vmcdnb[^"]+)',list)[-1]+'|User-Agent=VLC'
  elif '720' in list:
    return re.findall('"name":"720"."file":"(.+?vmcdnb[^"]+)',list)[-1]+'|User-Agent=VLC'
  elif 'ht_mobile' in list:
    return re.findall('"ht_mobile_m3u8":"([^"]+)',list)[0]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param2]'
  else:
    return re.findall('"Standart","file":"(.+?vmcdnb[^"]+)',list)[-1]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param2]'
]]></expres>
<page>https://www.showtv.com.tr/[makelist2.param2]</page>
<agent>Mozilla/5.0</agent>
<cookieJar></cookieJar>
</regex>
<thumbnail>http://expressdizi.com/wp-content/uploads/2019/09/ask-490x640.jpg</thumbnail>
<fanart>http://www.pixelstalk.net/wp-content/uploads/2016/07/Pink-And-Black-HD-Background.jpg</fanart></item>
 

BymemoLee

Member
Apr 30, 2018
90
18
8
Code:
<item>
<title>[COLOR magenta]KUZEY YILDIZI[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[encodeURL.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
 if 'Bölüm Seçiniz' in page_data:
   return re.findall('(?s).*?data-href="/([^<]+)".>([^<]+)</a>',re.findall('class="dropdown-content dropdown-scroll">(?s)(.*?)</div',page_data)[0])
 elif 'Bölüm Seçiniz' not in page_data:
   return re.findall('(?s)<a href="/(.*?)"[\w\W]*?<img.+?src="(.*?)"[\w\W]*?<span class="title">(.*?)</span>',re.findall('<section>(?s)(.*?)</section>',page_data)[0])
]]></expres>
<page>https://www.showtv.com.tr/dizi/tanitim/kuzey-yildizi-ilk-ask/2595</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3] ([makelist2.param1]. Part)[/COLOR]</title>
  <link>$doregex[get-pixel]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
 if '"video-part"' in page_data:
   list=re.findall('video-part-name">(?s)(.*?)</ul',page_data)[0].replace('\/','/')
   title=re.findall('href.+?>(\d+)<',list);link=re.findall('href="/([^"]+)',list)
   return zip(title,link)
 elif '"video-part"' not in page_data:
   list=re.findall('"TVEpisode"(?s)(.*?)</script',page_data)[0].replace('\/','/')
   return re.findall('"episodeNumber":"([^"]+)".*?url".*?.tr/([^"]+)',list)
]]></expres>
<page>https://www.showtv.com.tr/[makelist.param1]</page>
</regex>
<regex>
<name>get-pixel</name>
<listrepeat><![CDATA[
    <title>[get-pixel.param1]p</title>
    <link>$doregex[getUrl]</link>       
]]></listrepeat>
<expres>u'(.*?)'</expres>
<page>$doregex[get-number]</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>get-number</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
   import re
   number = re.findall('page-(.*?),', page_data)
   return number
]]></expres>
<page>(page-1080,page-720,page-540,page-360,)</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('"ht_files"(?s)(.*?)<script',page_data)[0].replace('\/','/')
  data='[get-pixel.param1]'
  if '1080' in data:
    return re.findall('"name":"1080"."file":"([^"]+)',list)[0]+'|Referer=https://www.showtv.com.tr/[makelist2.param2]'
  elif '720' in data:
    return re.findall('"name":"720"."file":"([^"]+)',list)[0]+'|Referer=https://www.showtv.com.tr/[makelist2.param2]'
  elif '540' in data:
    return re.findall('"name":"480"."file":"([^"]+)',list)[0]+'|Referer=https://www.showtv.com.tr/[makelist2.param2]'
  elif '360' in data:
    return re.findall('"name":"360"."file":"([^"]+)',list)[0]+'|Referer=https://www.showtv.com.tr/[makelist2.param2]'
  else:
    return re.findall('"name":"Standart"."file":"([^"]+)',list)[0]+'|Referer=https://www.showtv.com.tr/[makelist2.param2]'
]]></expres>
<page>https://www.showtv.com.tr/[makelist2.param2]</page>
<referer>https://www.showtv.com.tr/[makelist2.param2]</referer>
<agent>Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Mobile Safari/537.36</agent>
<cookieJar></cookieJar>
</regex>
<thumbnail>https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Logo_of_Show_TV.png/150px-Logo_of_Show_TV.png</thumbnail>
</item>
 
  • Like
Reactions: Beezlo

streamwatcher2013

Well-known member
Oct 24, 2013
915
399
63
USA
try this:

LSP XML:
<item>
<title>[COLOR red]C[COLOR white]ARPISMA[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR yellow][makelist.param3][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param2]</thumbnail>
  <info>[makelist.param4]</info>
]]></listrepeat>
<expres><![CDATA[(?s)class="box box-xs-12".+?a\s*href="/(dizi/tum_bolumler/kuzey-yildizi[^"]+).+?data-src="([^"]+).+?"title">([^<]+).+?"description">([^<]+)]]></expres>
<page>https://www.showtv.com.tr/dizi/tanitim/kuzey-yildizi-ilk-ask/2595</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('"ht_files"(?s)(.*?)<script',page_data)[0].replace('\\','')
  if '1080' in list:
    return re.findall('"name":"1080"."file":"(.+?vmcdnb[^"]+)',list)[-1]+'|user-agent=ipad&referer=https://www.showtv.com.tr/[makelist.param1]'
  elif '720' in list:
    return re.findall('"name":"720"."file":"(.+?vmcdnb[^"]+)',list)[-1]+'|user-agent=ipad&referer=https://www.showtv.com.tr/[makelist.param1]'
  elif 'ht_mobile' in list:
    return re.findall('"ht_mobile_m3u8":"([^"]+)',list)[0]+'|user-agent=ipad&referer=https://www.showtv.com.tr/[makelist.param1]'
  else:
    return re.findall('"Standart","file":"(.+?vmcdnb[^"]+)',list)[-1]+'|user-agent=ipad&referer=https://www.showtv.com.tr/[makelist.param1]'
]]></expres>
<page>https://www.showtv.com.tr/[makelist.param1]</page>
<referer>https://www.showtv.com.tr/dizi/tanitim/kuzey-yildizi-ilk-ask/2595</referer>
</regex>
<fanart>http://www.pixelstalk.net/wp-content/uploads/2016/07/Pink-And-Black-HD-Background.jpg</fanart>
<thumbnail>https://www.turkishcelebritynews.com/wp-content/uploads/2018/10/kivanc-tatlitug-carpisma-collision-turkish-drama.jpg</thumbnail>
</item>
 
  • Like
Reactions: Beezlo and altug

m5Germany

Active member
Mar 20, 2014
204
58
28
Working on a stream I can capture - but - I have to do the pk= in two parts as there normally is one digit/letter scraped from the hembedplayer which is not needed. I use Fiddler to view the correct pk= but wanted to find out if there is another way of getting the True pk= without having to split or code around.

LSP XML:
<item>
<title>1 [COLOR=FF00FFFF]USA |[COLOR=FF00FF00] FOX News - streamfare.net [COLOR=blue](SD)[/COLOR][/COLOR] | janjua.tv RegEx[/COLOR]</title>
<link>https://$doregex[get-server]$doregex[get-m3u8]$doregex[get-pk1]$doregex[get-pk2]|User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88&amp;Referer=https://www.janjua.tv/hembedplayer/$doregex[get-channel]/4/600/400</link>
<thumbnail>https://streamfare.net/images/STREAMFARE-NET.png</thumbnail>
<fanart>https://www.broadcastingcable.com/.image/t_share/MTU4Nzc0ODkxMjQ2NTI4MTYx/fox-news-channel-logo.jpg</fanart>
<regex>
<name>get-server</name>
<expres>redirect=(.*pw)<expres>
<page>https://tvportremote.com/loadbalancer?88933</page>
<referer>https://www.janjua.tv/hembedplayer/$doregex[get-channel]/4/600/400</referer>
<agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36</agent>
</regex>
<regex>
<name>get-m3u8</name>
<expres>var hlsUrl = "https:\/\/" \+ ea \+ "(.*?pk=)<expres>
<page>https://www.janjua.tv/hembedplayer/$doregex[get-channel]/4/600/400</page>
<referer>https://streamfare.net/foxnews.html</referer>
<agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36</agent>
</regex>
<regex>
<name>get-pk1</name>
<expres>enableVideo.*?['"](\w{25})</expres>
<page>https://www.janjua.tv/hembedplayer/$doregex[get-channel]/4/600/400</page>
<referer>https://streamfare.net/foxnews.html</referer>
<agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36</agent>
</regex>
<regex>
<name>get-pk2</name>
<expres>enableVideo.*?['"]\w{26}([^'"]+)</expres>
<page>https://www.janjua.tv/hembedplayer/$doregex[get-channel]/4/600/400</page>
<referer>https://streamfare.net/foxnews.html</referer>
<agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36</agent>
</regex>
<regex>
<name>get-channel</name>
<expres>channel=['"]([^'"]+)</expres>
<page>https://streamfare.net/foxnews.html</page>
<referer>https://streamfare.net/</referer>
<agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36</agent>
</regex>
</item>
Additionally, here is the difference:

Code:
https://2d04.janjua.pw:8088/live/fox_newsstreamfare/playlist.m3u8?id=88933&wowzasessionid=3566254733&pk=51401daadd540d4a7b9661d277377651287e46a76bf023c3298dd5c421f31b8b

51401daadd540d4a7b9661d277377651287e46a76bf023c3298dd5c421f31b8b
 
51401daadd540d4a7b9661d27U7377651287e46a76bf023c3298dd5c421f31b8b
Notice the "U". Its not the same letter or number that is different when the code changes. In this case the "U" is not needed.

It would be nice to not have to sniff the code every-time there is a change.

Thanks,
m5
 

streamwatcher2013

Well-known member
Oct 24, 2013
915
399
63
USA
Try this. That part assign from js code:

LSP XML:
<item>
<title>1 [COLOR=FF00FFFF]USA |[COLOR=FF00FF00] FOX News - streamfare.net [COLOR=blue](SD)[/COLOR][/COLOR] | janjua.tv RegEx[/COLOR]</title>
<link>$doregex[get-server]</link>
<thumbnail>https://streamfare.net/images/STREAMFARE-NET.png</thumbnail>
<fanart>https://www.broadcastingcable.com/.image/t_share/MTU4Nzc0ODkxMjQ2NTI4MTYx/fox-news-channel-logo.jpg</fanart>
<regex>
<name>get-server</name>
<expres><![CDATA[#$pyFunction
import re,requests,urllib2
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  jsurl,scheme,netloc,param,blurl=re.findall('(?s)text.javascript.\s*src=[\'"](.*?newjanjua[^\'"]+).+?var\s*hlsUrl.+?"([^"]+).+?"([^"]+).+?enableVideo.[\'"]([^\'"]+).+?ajax.{url.+?"([^"]+)',page_data)[0]
  jssource=requests.get(jsurl,headers={'user-agent':'Mozilla/5.0','referer':'ttps://www.janjua.tv/hembedplayer/fox_newsstreamfare/4/600/400','accept':'*/*'}).content
  p1,p2=re.findall('enableVideo.+?,(\d+).+?(\d+)',jssource)[0];param=param[:int(p1)]+param[int(p2):]
  blsource=requests.get(blurl,headers={'user-agent':'Mozilla/5.0','referer':'ttps://www.janjua.tv/hembedplayer/fox_newsstreamfare/4/600/400','accept':'*/*'}).content
  furl=re.findall('(.*)',blsource)[0].split('=')[1]
  return '%s%s%s%s|user-agent=ipad&referer=ttps://www.janjua.tv/hembedplayer/fox_newsstreamfare/4/600/400'%(scheme,furl,netloc,param)
]]></expres>
<page>https://www.janjua.tv/hembedplayer/fox_newsstreamfare/4/600/400</page>
<referer>https://streamfare.net/foxnews.html</referer>
</regex>
</item>
 
  • Like
Reactions: m5Germany

streamwatcher2013

Well-known member
Oct 24, 2013
915
399
63
USA
Or mod from your code

LSP XML:
<item>
<title>1 [COLOR=FF00FFFF]USA |[COLOR=FF00FF00] FOX News - streamfare.net [COLOR=blue](SD)[/COLOR][/COLOR] | janjua.tv RegEx[/COLOR]</title>
<link>https://$doregex[get-server]$doregex[get-m3u8]$doregex[get-pk]|User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88&amp;Referer=https://www.janjua.tv/hembedplayer/$doregex[get-channel]/4/600/400</link>
<thumbnail>https://streamfare.net/images/STREAMFARE-NET.png</thumbnail>
<fanart>https://www.broadcastingcable.com/.image/t_share/MTU4Nzc0ODkxMjQ2NTI4MTYx/fox-news-channel-logo.jpg</fanart>
<regex>
<name>get-server</name>
<expres>redirect=(.*pw)<expres>
<page>https://tvportremote.com/loadbalancer?88933</page>
<referer>https://www.janjua.tv/hembedplayer/$doregex[get-channel]/4/600/400</referer>
<agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36</agent>
</regex>
<regex>
<name>get-m3u8</name>
<expres>var hlsUrl = "https:\/\/" \+ ea \+ "(.*?pk=)<expres>
<page>https://www.janjua.tv/hembedplayer/$doregex[get-channel]/4/600/400</page>
<referer>https://streamfare.net/foxnews.html</referer>
<agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36</agent>
</regex>
<regex>
<name>get-pk</name>
<expres><![CDATA[#$pyFunction
import re,requests,urllib2
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  jsurl,pk=re.findall('(?s)text.javascript.\s*src=[\'"](.*?newjanjua[^\'"]+).+?enableVideo.[\'"]([^\'"]+)',page_data)[0]
  jssource=requests.get(jsurl,headers={'user-agent':'Mozilla/5.0','referer':'ttps://www.janjua.tv/hembedplayer/fox_newsstreamfare/4/600/400','accept':'*/*'}).content
  p1,p2=re.findall('enableVideo.+?,(\d+).+?(\d+)',jssource)[0]
  return pk[:int(p1)]+pk[int(p2):]
]]></expres>
<page>https://www.janjua.tv/hembedplayer/$doregex[get-channel]/4/600/400</page>
<referer>https://streamfare.net/foxnews.html</referer>
<agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36</agent>
</regex>
<regex>
<name>get-channel</name>
<expres>channel=['"]([^'"]+)</expres>
<page>https://streamfare.net/foxnews.html</page>
<referer>https://streamfare.net/</referer>
<agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36</agent>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
204
58
28
Thanks - Interested on how src=[\'"](.*?newjanjua[^\'"]+) java script on the hembedplayer page read the correct pk= with

p1,p2=re.findall('enableVideo.+?,(\d+).+?(\d+)',jssource)[0]
return pk[:int(p1)]+pk[int(p2):]

return pk[:int(p1)+pk[int(p2):] (I'll presume) gets both parts with correct values. Is that something I can see in the .js? If so - would you graciously show me how to read it? ie: the values I should look for.

Always looking to learn,
m5

I like the fact that you took the time to show both solutions.
 
  • Like
Reactions: udomrat

streamwatcher2013

Well-known member
Oct 24, 2013
915
399
63
USA
I am using your above token "51401daadd540d4a7b9661d27U7377651287e46a76bf023c3298dd5c421f31b8"
From the "U" you count backward to the front, start of the string. Is it 25 characters? "51401daadd540d4a7b9661d27"
With Python you can use [:25] function to get the 25 characters from start of the string

p1,p2=re.findall('enableVideo.+?,(\d+).+?(\d+)',jssource)[0] in this case you get the value of p1=25 and p2=26

enableVideo.[\'"]([^\'"]+) will get the pk value above "51401daadd540d4a7b9661d27U7377651287e46a76bf023c3298dd5c421f31b8"

So pk[:int(p1)] same as pk[:25] will get the string before "U" == "51401daadd540d4a7b9661d27"
and pk[int(p2):] same as pk[26:] will get the string after "U" == "7377651287e46a76bf023c3298dd5c421f31b8"
Add both of that value give you the full correct token of pk = "51401daadd540d4a7b9661d277377651287e46a76bf023c3298dd5c421f31b8"

 
  • Like
Reactions: Picapau and udomrat

m5Germany

Active member
Mar 20, 2014
204
58
28

[[Notice the "U". Its not the same letter or number that is different when the code changes. In this case the "U" is not needed.

It would be nice to not have to sniff the code every-time there is a change. ]] per above

Got that - Thanks - although solving for "U" currently works - My concern is that when "U" is a different value and or if the sequence from point to point changes by a value not seen in current/future code. If we can't see how to capture the value needed in accounting for this - Are we not just solving for "U" and not a alternative solution which may include code that can adapt?

Did/How/Does

jsurl,pk=re.findall('(?s)text.javascript.\s*src=[\'"](.*?newjanjua[^\'"]+)

in your code affect the final pk= \? or ?

Thanks,
m5
 
  • Like
Reactions: udomrat

streamwatcher2013

Well-known member
Oct 24, 2013
915
399
63
USA
@m5Germany

The code will detected the change daily. It doesn't matter it's letter or number. I think 26 and 26 is for now

Code:
The js link is https://janjua.pw/resources/scripts/newjanjua.js?id=1576134002093
You see the id=1576134002093 is epoc time and it will changed soon. Check the regex for it and it captured the below line with "+" means add together both value

{getFlashMovie("eplayer").startPlayerVideo(a)}function enableVideo(a){return a.substring(0,25)+a.substring(26,a.length)}

https://regex101.com/r/bDCCAM/1
enableVideo.+?,(\d+).+?(\d+)
Group 1.    431-433    25
Group 2.    447-449    26

and same regex for that link with out id=1576134002093 just https://janjua.pw/resources/scripts/newjanjua.js

{getFlashMovie("eplayer").startPlayerVideo(a)}function enableVideo(a){return a.substring(0,11)+a.substring(12,a.length)}

https://regex101.com/r/bDCCAM/2
enableVideo.+?,(\d+).+?(\d+)
Group 1.    431-433    11
Group 2.    447-449    12

It will auto calculate and change the pk's token for you
 
  • Like
Reactions: udomrat

DerWolf

Member
Nov 20, 2019
43
5
8
hxxps://dailysport.pw/ can you help me this site?
 

streamwatcher2013

Well-known member
Oct 24, 2013
915
399
63
USA
Try this. Seem like some stream is not available. Hopefully it works

LSP XML:
<item>
<title>https://dailysport.pw/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR dodgerblue][[makelist.param1]][/COLOR] [makelist.param2]</title>
  <link>$doregex[makelist2]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  s=requests.get('https://dailysport.pw/',headers={'user-agent':'ipad','host':'dailysport.pw','accept':'*/*'},cookies=Cookie_Jar)
  source=requests.get('https://dailysport.pw/',headers={'user-agent':'ipad','host':'dailysport.pw','accept':'*/*'},cookies=s.cookies).content
  return re.findall('(?s)<tr>.+?(\d+[^<]+).*?<(?:td|/span)>([^<]+).+?<td>(?s)(.*?)</tr',source)
]]></expres>
<page></page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR dodgerblue]([makelist2.param2])[/COLOR] [makelist.param2]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[href="([^"]+).+?\d+\s*([^<]+)]]></expres>
<page>[makelist.param3]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('(?s)Clappr.Player.+?source:\s*[\'"]([^\'"]+)',page_data)[-1]+'|user-agent=ipad&origin=https://dailysport.pw&referer=https://dailysport.pw/[makelist2.param1]'
]]></expres>
<page>https://dailysport.pw/[makelist2.param1]</page>
</regex>
</item>
>
 
  • Like
Reactions: DerWolf and altug

Doom

Member
Sep 16, 2019
272
21
18
Hi can i get help here & thanks!
hxxps://adictosalatele.com/national-geographic-latino-en-vivo-online-gratis/
 

streamwatcher2013

Well-known member
Oct 24, 2013
915
399
63
USA
Try this:

LSP XML:
<item>
<title>National Geographic</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
from urlresolver.plugins.lib import jsunpack
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  link=re.findall('class="video.+?src="([^"]+)',page_data)[0];link='https:'+link if link.startswith('//') else link
  headers={'user-agent':'ipad','referer':'https://adictosalatele.com/national-geographic-latino-en-vivo-online-gratis/','accept':'*/*'}
  source=requests.get(link,headers=headers).content;url=re.findall('iframe.+?src="([^"]+)',source)[0]
  source=requests.get(url,headers={'user-agent':'ipad','referer':link,'accept':'*/*'}).content
  unpacked=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0]).replace('\\','')
  return re.findall('source:[\'"]([^\'"]+)',unpacked)[0]+'|user-agent=ipad&referer='+url
]]></expres>
<page>https://adictosalatele.com/national-geographic-latino-en-vivo-online-gratis/</page>
</regex>
<thumbnail>https://wattsupwiththat.files.wordpress.com/2015/03/national-geographic-logo1.jpg</thumbnail>
</item>
 
  • Like
Reactions: Doom

BymemoLee

Member
Apr 30, 2018
90
18
8
Hello Friends
Can you help me?

HTML:
<item>
<title>[B][COLOR cyan]beIN SPORT[/COLOR][/B]</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,base64
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('iframe.allowfullscreen.+?src=[\'"]([^\'"]+)',page_data)[0]
  source=requests.get(url,headers={'User=Agent':'Mozilla/5.0','Referer':'https://vegoltv39.com/'}).content
  return base64.b64decode(re.findall('window.mainSource.+?[\'"]([^\'"]+)',source)[0])+'|User-Agent=Mozilla/5.0&Referer=' + url
]]></expres>
<page>https://vegoltv39.com/</page>
<referer>https://vegoltv39.com/</referer>
</regex>
</item>
 

Doom

Member
Sep 16, 2019
272
21
18

streamwatcher2013

Well-known member
Oct 24, 2013
915
399
63
USA
Try this

LSP XML:
<item>
<title>http://oomovie.net/ with date&time</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</thumbnail>
]]></listrepeat>
<expres><![CDATA["match-list-title"><h3>([^<]+)(?s)(.*?)</div><(?:br|/p)]]></expres>
<page>http://oomovie.net/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR dodgerblue][makelist2.param1]  [COLOR gold][makelist2.param3][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,urllib,time
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  gtime=re.findall('data-countdown="([^"]+)',page_data)
  for t in gtime:
     ntime=int(t[:10])
     lctime=time.strftime(' %H:%M %p - %m/%d', time.localtime(ntime))
     page_data=page_data.replace(t,lctime)
  return re.findall('data-countdown="([^"]+).+?href="(.*?)">([^<]+)',page_data)
]]></expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  playlink=re.findall('Clappr.Player[\w\W]*?source:\s*([^,]+)',page_data)[0]
  return re.findall('var\s*%s.+?[\'"]([^\'"]+)'%playlink,page_data)[0]+'|user-agent=ipad&origin=us.nocdn.net&referer=[makelist2.param2]'
]]></expres>
<page>[makelist2.param2]</page>
<referer>http://oomovie.net/</referer>
</regex>
<thumbnail>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</thumbnail>
</item>

<item>
<title>http://oomovie.net/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</thumbnail>
]]></listrepeat>
<expres><![CDATA["match-list-title"><h3>([^<]+)(?s)(.*?)</div><(?:br|/p)]]></expres>
<page>http://oomovie.net/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[data-countdown.+?href="(.*?)">([^<]+)]]></expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  playlink=re.findall('Clappr.Player[\w\W]*?source:\s*([^,]+)',page_data)[0]
  return re.findall('var\s*%s.+?[\'"]([^\'"]+)'%playlink,page_data)[0]+'|user-agent=ipad&origin=us.nocdn.net&referer=[makelist2.param1]'
]]></expres>
<page>[makelist2.param1]</page>
<referer>http://oomovie.net/</referer>
</regex>
<thumbnail>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</thumbnail>
</item>

 
  • Like
Reactions: Doom

vbprofi

Member
Feb 9, 2016
77
3
8
Hello dear friends, I wish all friends here a happy new year!
@Doom, here a working example for you. please try finish for grabbing all streams.
Code:
<item>
<title>http://oomovie.net</title>
<link>$doregex[makelist]</link>

<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR cyan] [makelist.param2]  [/COLOR]</title>
<link>$doregex[makelist2]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
 return re.findall('<a href="(http://oomovie.net.*?)">(.*?)STREAM', page_data)
]]></expres> -->
<page>http://oomovie.net</page>
<cookieJar></cookieJar>
<agent>Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</agent>
</regex>

<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[COLOR cyan] [makelist2.param2]  [/COLOR]</title>
<link>$doregex[play]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
 return re.findall(r'<a href="(http://oomovie.net.*?)".*?screen-reader-text.*?>(.*?)<', page_data)
]]></expres> -->
<page>[makelist.param1]</page>
<cookieJar></cookieJar>
<agent>Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</agent>
</regex>

<regex>
<name>play</name>
<expres><![CDATA[url_play = '(.*?)']]></expres> -->
<page>[makelist2.param1]</page>
<referer>[makelist2.param1]</referer>
<cookieJar></cookieJar>
<agent>Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</agent>
</regex>
</item>
 

Doom

Member
Sep 16, 2019
272
21
18
@vbprofi the code is partially working only pulling the NBA, NHL & NFL schedule... still missing all the football (soccer) schedule and appreciate the help & thanks
 

Doom

Member
Sep 16, 2019
272
21
18
Want to use this m3u list
Code:
hxxp://tecnotv.club/dom/principal.m3u
but it changes every day only in part (dom) is there any way to get changes with a regex that will make change automatically from this page
Code:
hxxp://tecnotv.club/
if it can be done... thanks!
 
Last edited by a moderator:

gujal

Developer
Dec 26, 2013
526
290
63
It is quite simple really ;)
Enjoy!


LSP XML:
  <item>
    <title>TechnoTV</title>
    <link>ignoreme</link>
    <externallink>$doregex[url]</externallink>
    <thumbnail></thumbnail>
    <regex>
      <name>url</name>
      <expres>(?s)PRINCIPAL.+?value="([^"]+)</expres>
      <page>http://tecnotv.club/listasz.htm</page>
    </regex>
  </item>
 
  • Like
Reactions: Doom

vbprofi

Member
Feb 9, 2016
77
3
8
here a code for get current m3u-playlist from page. but I don't know, what about the streams, because these streams do not work in kodi and vlc here. please test that.
Code:
<item>
 <title>http://tecnotv.club/dom/</title>
 <link>$doregex[makelist]</link>
 <regex>
 <name>makelist</name>
 <listrepeat><![CDATA[
 <title>[makelist.param1]</title>
 <link>$doregex[makelist2]</link>
 ]]></listrepeat>
 <expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#vbprofi
 url = re.findall('value="(.*?m3u)"', page_data)
 n = []
 for a in url:
  n.append(a.replace(' ', '%20'))

 return n
]]></expres>
<page>http://tecnotv.club/dom/</page>
<cookieJar></cookieJar>
</regex>

 <regex>
 <name>makelist2</name>
 <listrepeat><![CDATA[
 <title>[makelist2.param1]</title>
 <link>[makelist2.param2]</link>
 ]]></listrepeat>
 <expres>:-1.*?,(.+)\n(.+)</expres>
<page>$doregex[lo]</page>
<cookieJar></cookieJar>
 </regex>

<regex>
<name>lo</name>
<expres>location.*?(htt.*?m3u)</expres>
<page>[makelist.param1]</page>
<cookieJar></cookieJar>
<noredirect>true</noredirect>
<includeheaders/>
</regex>
</item>
 
  • Like
Reactions: Doom

DerWolf

Member
Nov 20, 2019
43
5
8
is possible ? thanks in advance
Code:
https://daddylive.live/24-hours-channels.php
 
Last edited by a moderator:

gujal

Developer
Dec 26, 2013
526
290
63
Enjoy!


LSP XML:
  <item>
  <title>Daddy Live</title>
  <link>$doregex[channels]</link>
  <thumbnail>https://daddylive.live/big-daddy-logo.jpg</thumbnail>
    <regex>
      <name>channels</name>
      <listrepeat><![CDATA[
        <title>[COLOR gold][channels.param3][/COLOR]</title>
        <link>$doregex[url]|User-Agent=iPad</link>
        <thumbnail>https://daddylive.live[channels.param2]</thumbnail>
      ]]></listrepeat>
      <expres>(?s)class="gallery".+?href="([^"]+).+?src="([^"]+).+?desc".([\w\.\s]*)</expres>
      <page>https://daddylive.live/24-hours-channels.php</page>
      <referer>https://daddylive.live/</referer>
    </regex>
    <regex>
      <name>url</name>
      <expres>source:\s*"([^"]+)</expres>
      <page>$doregex[unpack]</page>
    </regex>
    <regex>
      <name>unpack</name>
      <expres>$pyFunction:get_unpacked(page_data,'(?s)(eval\(function\(p,a,c,k,e,d.*?)&lt;/.+')</expres>
      <page>$doregex[url2]</page>
      <referer>https://daddylive.live/</referer>
    </regex>
    <regex>
      <name>url2</name>
      <expres>iframe\s*src="([^"]+)</expres>
      <page>https://daddylive.live[channels.param1]</page>
      <referer>https://daddylive.live/</referer>
    </regex>
  </item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
915
399
63
USA
Just give @gujal a hand. Try this:

LSP XML:
<item>
<title>https://daddylive.live/index.php - Today Games</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,time
def GetLSProData(page_data,Cookie_Jar,m):
  today=time.strftime('%A %d',time.localtime());today=today+'th'
  list=re.findall('%s(?s)(.*?)<h1'%today,page_data)[0]
  return re.findall('<h2>.+?">([^<]+)(?s)(.*?)<p>====',list)
]]></expres>
<page>https://daddylive.live/index.php</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR dodgerblue]([makelist2.param1]) [COLOR gold][makelist2.param3][/COLOR] - [makelist2.param2]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,time
def GetLSProData(page_data,Cookie_Jar,m):
  gtime=re.findall('(\d+:\d+)',page_data)
  for t in gtime:
    localtime=int(t[:-3]) -6  #  Subtract 6 from GMT +1. My is Eastern Time Zone
    if localtime > 24:
      localtime -=24
    if localtime < 1:
      localtime +=24
    lctime=str(localtime)+t[2:]
    lctime=lctime.zfill(5)
    page_data=page_data.replace(t,lctime)
  return re.findall('(\d+:\d+)\s*(.+?)\s*:\s*([^<]+).+?href="([^"]+)',page_data)
]]></expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
from urlresolver.plugins.lib import jsunpack
def GetLSProData(page_data,Cookie_Jar,m):
  link=re.findall('<iframe\s*src="(.*?embed[^"]+)',page_data)[0]
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'[makelist2.param4]','accept':'*/*'}).content
  source=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0]).replace('\\', '')
  return re.findall('Clappr.Player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer='+link
]]></expres>
<page>[makelist2.param4]</page>
<referer>https://daddylive.live/index.php</referer>
</regex>
<thumbnail>https://www.lf.k12.de.us/wp-content/uploads/2015/03/Sports.png</thumbnail>
</item>
 
  • Like
Reactions: altug and Doom

Doom

Member
Sep 16, 2019
272
21
18
@gujal once again appreciate the time taken to help me out & thanks m8!👍

@streamwatcher2013 Also appreciate it for taking time & helping me out... just tried the Hockey section and working fine the code... thumbs up brother!🙂👍
 

boomski2

Member
Aug 19, 2019
40
1
8
guys, need your help. anyone know how to do makelist and play video from gdrive folder?

Code:
https://drive.google.com/drive/folders/1Wud9uR8Vign6gXMhDjA8A2jMrL6ZMZYz
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5