LSP Regex & Makelist Discussion.

umonkey

Member
Sep 18, 2012
50
0
6
Happy new year to you all.

Can anybody help with this site:
Code:
https://www.lilmedia.ir/
Many Thanks
 

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
Try this. Change count=10 to higher number to get more pages.

LSP XML:
<item>
<title>https://www.lilmedia.ir - Genre</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.lilmedia.ir/assets/images/header-logo.svg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,json
def GetLSProData(page_data,Cookie_Jar,m):
  source=requests.post('https://www.lilmedia.ir/api/sidebar/genres',headers={'user-agent':'Mozilla/5.0','referer':'https://www.lilmedia.ir/','accept':'application/json, text/plain, */*'},data={'type':'2'}).content
  return re.findall('"name":"(.*?)","slug":"([^"]+)',source)
]]></expres>
<page></page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param1][/COLOR] ([makelist2.param3])</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://images.lilmediafile.com[makelist2.param4]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  url='https://www.lilmedia.ir/api/post/genre'
  headers={'user-agent':'Mozilla/5.0','origin':'https://www.lilmedia.ir','referer':'https://www.lilmedia.ir/movies/genre/[makelist.param2]','accept':'application/json, text/plain, */*'}
  count=10;pn=1;list=[]
  while pn <= int(count):
    data={'name':'[makelist.param2]','page':str(pn),'type2':'1','type':'','field':''}
    source=requests.post(url,headers=headers,data=data).content.replace('\\','').replace('u00e9','é')
    list +=re.findall('movie".+?"name":"([^"]+).+?"slug":"(.*?(\d+)).+?"cover_path":"([^"]+).+?"is_dubbed"(?s)(.*?)"(?:movie_id|max_page)',source);pn +=1
  return list
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('"file":(?s)(.*)',page_data)[0].replace(' ','%20')
  if '1080' in list:
    id,path=re.findall('"id":"(\d+).+?path":"(.+?1080[^"]+)',list)[0]
    return 'https://www.lilmedia.ir/api/dl/%s%s'%(id,path)
  elif '720' in list:
    id,path=re.findall('1080.+?"id":"(\d+).+?path":"([^"]+)',list)[0]
    return 'https://www.lilmedia.ir/api/dl/%s%s'%(id,path)
  else:
    id,path=re.findall('720.+?"id":"(\d+).+?path":"([^"]+)',list)[0]
    return 'https://www.lilmedia.ir/api/dl/%s%s'%(id,path)
]]></expres>
<page>[makelist2.param5]</page>
</regex>
<thumbnail>https://www.lilmedia.ir/assets/images/header-logo.svg</thumbnail>
</item>

 
  • Like
Reactions: umonkey

DerWolf

New member
Nov 20, 2019
23
1
3
can you help me this site thanks in advance

hxxps://www.macizleskor.com/bein-sports-1/
 

gujal

Developer
Dec 26, 2013
308
106
43
Enjoy!

LSP XML:
<item>
  <title>Canli TV</title>
  <link>$doregex[genre]</link>
  <thumbnail>https://www.canlitv.vin/resim/logoyil.png</thumbnail>
  <regex>
    <name>genre</name>
    <listrepeat><![CDATA[
    <title>[COLOR gold][genre.param2][/COLOR]</title>
    <link>$doregex[channels]</link>
    <thumbnail>https://www.canlitv.vin/resim/logoyil.png</thumbnail>
    ]]></listrepeat>
    <expres>href="([^"]+/kanallar/[^"]+)"\s*title="([^"]+)"</expres>
    <page>https://www.canlitv.vin/</page>
  </regex>
  <regex>
    <name>channels</name>
    <listrepeat><![CDATA[
    <title>[COLOR gold][channels.param2][/COLOR]</title>
    <link>$doregex[url]|User-Agent=iPad</link>
    <thumbnail>[channels.param3]</thumbnail>
    ]]></listrepeat>
    <expres><![CDATA[(?s)<li>\n<a\s*href="([^"]+)"\s*title="([^"]+)".+?src="([^"]+)]]></expres>
    <page>[genre.param1]</page>
    <referer>https://www.canlitv.vin/</referer>
  </regex>
  <regex>
    <name>url</name>
    <expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, unwise
  r = re.search("file:\s*(?:''\+)?(?P<var1>[^+]+)\+'(?P<part2>[^']+)'\+(?P<var3>[^+]+)", page_data)
  while 'w,i,s,e' in page_data:
      page_data = unwise.unwise_process(page_data)
  part1 = re.findall("{0}\s*=\s*'([^']+)".format(r.group('var1')), page_data)[0]
  part3 = re.findall("{0}\s*=\s*'([^']+)".format(r.group('var3')), page_data)[0]
  return part1 + r.group('part2') + part3
]]></expres>
    <page>$doregex[link]</page>
    <referer>https://www.canlitv.vin/</referer>
  </regex>
  <regex>
    <name>link</name>
    <expres>iframe.+?src="([^"]+)</expres>
    <page>[channels.param1]</page>
    <referer>https://www.canlitv.vin/</referer>
  </regex>
</item>
 
  • Like
Reactions: altug and turko03

boomski2

New member
Aug 19, 2019
18
1
3
please help me with this

Code:
http://nava-film.ir/year/2019/
 

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
Try this. As usual increase X in xrange(2,X) to get more pages

LSP XML:
<item>
<title>http://nava-film.ir/year/2019/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR] ([makelist.param3])</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param4]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  s=requests.get('http://nava-film.ir/year/2019/',headers={'user-agent':'Mozilla/5.0','referer':'http://nava-film.ir/','accept':'*/*'},cookies=Cookie_Jar).content.decode('ascii','ignore')
  data=re.findall('href="(.*?)"\s*title.+?(\w.*?)\s*(\d.{3})"[\w\W]*?data-src="([^"]+)',s)
  for pn in xrange(2,3):
    source=requests.get('http://nava-film.ir/year/2019/page/'+str(pn)+'/',headers={'user-agent':'Mozilla/5.0','referer':'http://nava-film.ir/','accept':'*/*'},cookies=Cookie_Jar).content.decode('ascii','ignore')
    data +=re.findall('href="(.*?)"\s*title.+?(\w.*?)\s*(\d{.3})"[\w\W]*?data-src="([^"]+)',source)
  return data
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  if 'movie' in page_data:
    return re.findall('"ghesmat".+?href="(.+?mkv)',re.findall('class="dr_down">(?s)(.*?)class="foot_post',page_data)[0])[0]
  else:
    return re.findall('player.+?file=([^"]+)',re.findall('class="dr_down">(?s)(.*?)class="foot_post',page_data)[0])[0].decode('base64')
]]></expres>
<page>[makelist.param1]</page>
<referer>http://nava-film.ir/year/2019/</referer>
</regex>
<thumbnail>http://nava-film.ir/wp-content/uploads/2019/04/iconfinder_64-netflix_4202092-1.png</thumbnail>
</item>
 

BymemoLee

Member
Apr 30, 2018
49
6
8
hxxps://www.roketdizi1.com/arrow-turkce-dublaj

Bu site için yardımcı olurmusunuz arkadaşlar.
 

gujal

Developer
Dec 26, 2013
308
106
43
That is the series I am talking about, even episodes from the latest season is showing Bu video telif ihlali sebebiyle kaldırılmıştır.
 

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
Seem like only EMBED link is working with AAencode and may be reCaptcha protect to get AAEncode source. Here is the code but I only get error cause token is wrong with my IP's address with post request. May be @gujal can help and get it done with his talent.

LSP XML:
<item>
<title>Arrow Türkçe Dublaj</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2] [COLOR dodgerblue](Arrow Türkçe Dublaj)[/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>https://www.roketdizi1.com/upload/afisler/196x283/arrow-turkce-dublaj.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('href="(.*?)">([^<]+)',re.findall('class="sezon-list">(?s)(.*?)<(?:/div|table)',page_data)[0])
]]></expres>
<page>https://www.roketdizi1.com/arrow-turkce-dublaj/</page>
<referer>https://www.roketdizi1.com/</referer>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param1] [COLOR dodgerblue]([makelist2.param3])[/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://www.roketdizi1.com/upload/afisler/196x283/arrow-turkce-dublaj.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('href.*class.+?>([^<]+).*\n.*?href="(.*?)">([^<]+)',re.findall('class="bolum-list">(?s)(.*?)</tbody',page_data)[0].replace('&#039;','\''))
]]></expres>
<page>[makelist.param1]</page>
<referer>https://www.roketdizi1.com/arrow-turkce-dublaj/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urllib
from AADecoder import AADecoder
def GetLSProData(page_data,Cookie_Jar,m):
  link=re.findall('href="([^"]+).+?EMBED',page_data)[0]
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'[makelist2.param2]','accept':'*/*'}).content
  tok,sID,ptype,ajaxUrl=re.findall('(?s)id="player_token.+?>([^<]+).+?id="player_source.+?>(\d+).+?id="player_part.+?>(\d+).+?url:.+?[\'"]([^\'"]+)',source)[0]
  data={'player_source':str(sID),'player_token':tok,'player_part':str(ptype)}
  source=requests.post(ajaxUrl,headers={'user-agent':'Mozilla/5.0','host':'www.roketdizi1.com','referer':link,'x-requested-with':'XMLHttpRequest','accept':'*/*'},cookies=Cookie_Jar,data={'player_source':str(sID),'player_token':tok,'player_part':str(ptype)}).content.decode('ascii','ignore')
  entxt=re.findall('<script.+?>(.*?)</',source)[0];page=AADecoder(entxt).decode()
  html,hID=re.findall('iframe\s*src="(h.*?v/([^"]+))',urllib.unquote(re.findall('var\s*player_embed.+?"([^"]+)',page)[0]))[0]
  url=requests.get(html,headers={'user-agent':'Mozilla/5.0','accept':'*/*'},allow_redirects=False).url
  jdata=requests.post(url,headers={'user-agent':'Mozilla/5.0','referer':html,'X-Requested-With':'XMLHttpRequest','accept':'*/*'},data={'r':link,'d':'feurl.com'}).json()['data']
  for item in jdata:
     if item['label'] == 720:
       return item['file']
     elif item['label'] == 480:
       return item['file']
]]></expres>
<page>[makelist2.param2]</page>
<referer>[makelist.param1]</referer>
</regex>
<thumbnail>https://www.roketdizi1.com/upload/afisler/196x283/arrow-turkce-dublaj.jpg</thumbnail>
</item>
 

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
Try this:

LSP XML:
<item>
<title>http://betlio.tv/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2] vs [makelist.param3][COLOR dodgerblue] ([makelist.param4])[/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>http://betlio.tv/Uploads/44ada5c8307d4762abed93be5d6f0328_Untitled-2.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  mID=re.findall('matchid".+?\([\'"]([^\'"]+)',page_data)[0]
  source=requests.post('http://betlio.tv/Live/Main/GetPopularSportView',headers={'user-agent':'Mozilla/5.0','referer':'http://betlio.tv/','x-requested-with':'XMLHttpRequest','accept':'*/*'},cookies=Cookie_Jar,data={'sterm':'','matchid':mID}).content
  return re.findall('(?s)"nk-match.+?href=[\'"]([^\'"]+).+?nk-widget-match-vs.+?>.+?\s*(.*?)<br.+?>(.*?)\n.+?(\d+:\d+)',source)
]]></expres>
<page>http://betlio.tv/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urllib
def GetLSProData(page_data,Cookie_Jar,m):
  link='http://betlio.tv[makelist.param1]'.replace('/Watch','/Main/Wtch')
  headers={'user-agent':'Mozilla/5.0','referer':'http://betlio.tv[makelist.param1]','alt-used':'betlio.tv:443','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'}
  source=requests.get(link,headers=headers,cookies=Cookie_Jar).content
  return re.findall('match[\w\W]*?source:\s*[\'"]([^\'"]+)',re.findall('atob.[\'"]([^\'"]+)',source)[0].decode('base64'))[0]+'|user-agent=VLC&referer='+link
]]></expres>
<page></page>
</regex>
<thumbnail>http://betlio.tv/Uploads/44ada5c8307d4762abed93be5d6f0328_Untitled-2.png</thumbnail>
</item>
 
  • Like
Reactions: turko03 and altug

BymemoLee

Member
Apr 30, 2018
49
6
8
Code:
http://betlio.tv/
kodların çok güzel çalışıyor streamwatcher2013 , her zaman takdir ediyorum, çok güzel işler çıkarıyorsun, çok teşekkür ediyorum.

hxxps://www.roketdizi1.com/arrow-turkce-dublaj bu site için olan kodlar çalışmadı, sağlık olsun yinede teşekkür ederim.

Konu dışında site ile ilgili bir sorunum var, siteye kullanıcı olarak girdiğimde bazı mesajları göremiyorum ( örnek: bu konu ile ilgili streamwatcher2013 göndermiş olduğu mesajlar) bunun nedeni ne olabilir bilgi verirseniz çok memnun olurum. Saygılar.
 
Last edited by a moderator:

papaya

Member
Apr 4, 2018
32
1
8
hola sir,

anyone can help me get this series on lsp. your help is appreciated a lot

Code:
http://namamoviez.com/series/
 

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
Try this:

LSP XML:
<item>
<title>http://namamoviez.com/series/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2] [COLOR dodgerblue] ([makelist.param4])[/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)"item\s*category-item.+?href="(.*?)"\s*title="([^"]+).+?data-original="([^"]+).+?sort-year">(\d+)]]></expres>
<page>http://namamoviez.com/series/</page>
<referer>http://namamoviez.com/</referer>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param2] [COLOR dodgerblue] ([makelist.param2])[/COLOR]</title>
  <link>$doregex[makelist3]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,time
def GetLSProData(page_data,Cookie_Jar,m):
  pID,plink=re.findall('(?s)var\s*id_post.+?(\d+).+?url:.+?[\'"]([^\'"]+)',page_data)[0];postID=int(pID);etime=int(time.time())
  link=plink+'?download=%s&_=%s'%(postID,etime)
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param1]','x-requested-with':'XMLHttpRequest','accept':'*/*'}).content
  return re.findall('"player"\s*href="([^"]+).+?title="([^<]+)',source)
]]></expres>
<page>[makelist.param1]</page>
<referer>http://namamoviez.com/series/</referer>
</regex>
<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist3.param2][/COLOR]</title>
  <link>[makelist3.param1]</link>
  <thumbnail>[makelist.param3]/thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('<p><a\s*href="(.+?/\d+./(.+?)_NamaMoviez[^"]+)',re.findall('class="content_dl">(?s)(.*)',page_data)[0])
]]></expres>
<page>[makelist2.param1]</page>
<referer>[makelist.param1]</referer>
</regex>
<thumbnail>http://namamoviez.com/wp-content/uploads/2019/12/rsz_nama.png</thumbnail>
</item>
 

tobotminer

Member
Jan 26, 2018
33
2
8
help please

Code:
https://mykingmedia.net/movie
 

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
Try this. Server is slow

LSP XML:
<item>
<title>https://mykingmedia.net/movie/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  data=re.findall('(?s)itemprop="url".*?href="([^"]+).+?>([^<]+).+?img\s*src="([^"]+)',re.findall('class="index-posts">(?s)(.*?)</main',page_data)[0])
  for pn in xrange(2,10):
    source=requests.get('https://mykingmedia.net/movie/page/'+str(pn)+'/',headers={'user-agent':'Mozilla/5.0','referer':'https://mykingmedia.net/','accept':'*/*'},cookies=Cookie_Jar).content.decode('ascii','ignore')
    data +=re.findall('(?s)itemprop="url".*?href="([^"]+).+?>([^<]+).+?img\s*src="([^"]+)',re.findall('class="index-posts">(?s)(.*?)</main',source)[0])
  return data
]]></expres>
<page>https://mykingmedia.net/movie/</page>
<referer>https://mykingmedia.net/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('"tab-box dlbox(?s)(.*?)</section></div></div></div>',page_data)[0]
  if '1080' in list:
     tab1=re.findall('data-tabc="1">(?s)(.*?)</ul',list)[0]
     if 'mkv' in tab1:
        return re.findall('href="(.*?mkv)',tab1)[0]
     else:
        return re.findall('href="(.*?mp4)',tab1)[0]
  else:
     tab2=re.findall('data-tabc="2">(?s)(.*?)</ul',list)[0]
     if 'mp4' in tab2:
        return re.findall('href="(.*?mp4)',tab2)[0]
     else:
        return re.findall('href="(.*?mkv)',tab2)[0]
]]></expres>
<page>[makelist.param1]</page>
<referer>https://mykingmedia.net/movie/</referer>
</regex>
<thumbnail>https://mykingmedia.net/wp-content/uploads/2018/11/Avatar.jpg</thumbnail>
</item>
 

gnote2minix7

New member
Mar 21, 2017
13
0
1
Hi guys, anyone can help me fix this regex. It not able to play the link anymore

Code:
<item>
<title>Fast</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3][/COLOR] [COLOR dodgerblue]([makelist.param4])[/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  count=10;pn=1;data=[]
  while pn <= int(count):
     page='http://www1.fastdrama.me/browse/chinese/movies/all/all/all/0/'+str(pn);source=requests.get(page).content.decode('ascii','ignore')
     data +=re.findall('class="image".*\n.*src="(.*?)"[\w\W]*?href="/(.*?)".title="(.*?)\s-.*?(\d{4})',source);pn +=1
  return sorted(data,key=lambda k: k[3],reverse=True)
]]></expres>
<page></page>
</regex>

<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urlresolver
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('http://www1.fastdrama.me/watch-online/[makelist.param2]',headers={'Referer':'http://www1.fastdrama.me/[makelist.param2]'}).content.decode('ascii','ignore')
  inf=re.findall('id="videoembed".+?"((h.+?)embed[^"]+)',source)[0];html=inf[0]+'?rt=ow'
  source=requests.get(inf[0],headers={'Referer':'http://www1.fastdrama.me/watch-online/[makelist.param2]','Host':'hdfree.se','User-agent':'your bot 0.1','Cache-Control':'no-cache'}).text
  if 'Mango' in source:
     IDx=re.findall('Mango.+?IdLink.+?(\d)',source)[0]
     source=requests.post(html,headers={'Referer':html,'User-agent':'your bot 0.1','Cache-Control':'no-cache'},data={'IdLink':IDx}).text
     link=inf[1]+re.findall('src=[\'"]/(embed[^\'"]+)',source)[0];return urlresolver.resolve(requests.get(link,headers={'Referer':html,'User-Agent':'Mozilla/5.0'},allow_redirects=False).headers['Location'])
  if 'Rapid' in source:
     IDx=re.findall('Rapid.+?IdLink.+?(\d)',source)[0]
     source=requests.post(html,headers={'Referer':html,'User-agent':'your bot 0.1','Cache-Control':'no-cache'},data={'IdLink':IDx}).text
     link=inf[1]+re.findall('src=[\'"]/(embed[^\'"]+)',source)[0];return urlresolver.resolve(requests.get(link,headers={'Referer':html,'User-Agent':'Mozilla/5.0'},allow_redirects=False).headers['Location'])
  if 'Uptobox' in source:
     IDx=re.findall('Uptobox.+?IdLink.+?(\d)',source)[0]
     source=requests.post(html,headers={'Referer':html,'User-agent':'your bot 0.1','Cache-Control':'no-cache'},data={'IdLink':IDx}).text
     link=inf[1]+re.findall('src=[\'"]/(embed[^\'"]+)',source)[0];return urlresolver.resolve(requests.get(link,headers={'Referer':html,'User-Agent':'Mozilla/5.0'},allow_redirects=False).headers['Location'])
  if 'OK' in source:
     IDx=re.findall('OK.+?IdLink.+?(\d)',source)[0]
     source=requests.post(html,headers={'Referer':html,'User-agent':'your bot 0.1','Cache-Control':'no-cache'},data={'IdLink':IDx}).text
     link=inf[1]+re.findall('src=[\'"]/(embed[^\'"]+)',source)[0];return urlresolver.resolve(requests.get(link,headers={'Referer':html,'User-Agent':'Mozilla/5.0'},allow_redirects=False).headers['Location'])
  if '720p' in source:
     IDx=re.findall('720p.+?IdLink.+?(\d)',source)[0]
     source=requests.post(html,headers={'Referer':html,'User-agent':'your bot 0.1','Cache-Control':'no-cache'},data={'IdLink':IDx}).text
     url=re.findall('id="videoembed".+?src="([^"]+)',source)[0];return re.findall('var.*?(?:file|source|src).*?[\'"](h.*?)[\'"]',requests.get(url).text)[0].replace('=18','=37')
  else:
     IDx=re.findall('360p.+?IdLink.+?(\d)',source)[0]
     source=requests.post(html,headers={'Referer':html,'User-agent':'your bot 0.1','Cache-Control':'no-cache'},data={'IdLink':IDx}).text
     url=re.findall('id="videoembed".+?src="([^"]+)',source)[0];return re.findall('var.*?(?:file|source|src).*?[\'"](h.*?)[\'"]',requests.get(url).text)[0].replace('=18','=22')
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
<thumbnail></thumbnail>
</item>
 

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
Most of servers been removed. Try this

LSP XML:
<item>
<title>Fast</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR] [COLOR dodgerblue]([makelist.param5] - [makelist.param4])[/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  count=10;pn=1;data=[]
  while pn <= int(count):
     page='http://www1.fastdrama.me/browse/chinese/movies/all/all/all/0/'+str(pn);source=requests.get(page).content.decode('ascii','ignore')
     data +=re.findall('(?s)"v-grid".+?href="/(.*?)"\s*title="(.*?)\s*(?:-|\().+?src="([^"]+).*?"status">([^\s]+).+?(\d{4})',re.findall('class="grid">(?s)(.*?)(?:"clear:both|"pagin)',source)[0].replace('&#39;','\''));pn +=1
  return sorted(data,key=lambda k: k[4],reverse=True)
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urlresolver
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  link=re.findall('id="videoembed".+?"(h.+?embed[^"]+)',page_data)[0]
  source=requests.get(link,headers={'referer':'http://www1.fastdrama.me/watch-online/[makelist.param1]','user-agent':'your bot 0.1','cache-control':'no-cache'}).content.decode('ascii','ignore')
  pUrl,IDlink=re.findall('.+<form.action.+?/([^"]+).+?"submit".value="OK.+?value="(\d+)',source)[0];pUrl='http://www1.fastdrama.me/%s'%pUrl
  source=requests.post(pUrl,headers={'referer':link,'user-agent':'your bot 0.1','cache-control':'no-cache'},data={'IdLink':int(IDlink)}).text
  if 'blogspot' in source:
     return re.findall('file[\'"]:\s*[\'"](https.*?blogspot[^\'"]+)',source)[0]   #+'|user-agent=your bot 0.1&cache-control=no-cache&referer=$doregex[Link]'
  else:
     url='http://www1.fastdrama.me/'+re.findall('iframe.+?src.+?/([^\'"]+)',source)[0]
     return urlresolver.resolve(requests.get(url,headers={'referer':pUrl,'user-agent':'Mozilla/5.0'},allow_redirects=False).headers['Location'])
]]></expres>
<page>http://www1.fastdrama.me/watch-online/[makelist.param1]</page>
<referer>http://www1.fastdrama.me/[makelist.param1]</referer>
</regex>
</item>
 
  • Like
Reactions: gnote2minix7

DerWolf

New member
Nov 20, 2019
23
1
3
hxxps://xxx.dailyiptvlist.com/amp/?

is possible?
 

BymemoLee

Member
Apr 30, 2018
49
6
8
Code:
<item>
    <title>[B]IPTV EMBED | [COLOR cyan]dailyiptvlist[/COLOR][/B]</title>
    <link>$doregex[makelist]</link>
    <regex>
    <name>makelist</name>
    <listrepeat><![CDATA[
      <title>[COLOR gold][makelist.param2][/COLOR]</title>
      <link>$doregex[leg]</link>
    ]]></listrepeat>
    <expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('<ul>(?s)(.*?)</ul>',page_data)[0]
  trlist=re.findall('<a href="([^\'"]+)".>([^\'"]+)</a>',list)
  return trlist
]]></expres>
    <page>https://www.dailyiptvlist.com/</page>
    <referer>https://www.dailyiptvlist.com/</referer>
    <cookieJar></cookieJar>
    </regex>
    <regex>
        <name>leg</name>
        <listrepeat><![CDATA[
       <title>[COLOR gold][leg.param2][/COLOR]</title>
       <link>$doregex[list]</link>
       ]]></listrepeat>
        <expres><![CDATA[(?s)<h2 class="post-title".+?href="http(.+?)">.+?\s(\d+[^\'"]+)</a>]]></expres>
        <page>[makelist.param1]</page>
    </regex>
    <regex>
        <name>list</name>
        <listrepeat><![CDATA[
       <title>[COLOR gold][list.param2][/COLOR]</title>
       <link>$doregex[makelist2]</link>
    ]]></listrepeat>
        <expres><![CDATA[<a href="(.*?)">Download IpTV(.*?)</a>]]></expres>
        <page>http[leg.param1]</page>
    </regex>
     <regex>
    <name>makelist2</name>
    <listrepeat><![CDATA[
    <title>[COLOR white]Kanal : [COLOR gold][makelist2.param1] [COLOR white]Link : [COLOR gold][makelist2.param2][/COLOR]</title>
    <link>plugin://plugin.video.f4mTester/?url=[makelist2.param2]&amp;streamtype=TSDOWNLOADER&amp;maxbitrate=-1&amp;name=[COLOR gold][B][COLOR white]TVTUBE[/COLOR][/B] [makelist2.param1]</link>
    ]]></listrepeat>
    <expres>#EXTINF:.*?,(.*?)\n(.*)</expres>
    <page>[list.param1]</page>
     </regex>
    <thumbnail></thumbnail>
</item>
 
  • Like
Reactions: DerWolf and turko03

gujal

Developer
Dec 26, 2013
308
106
43
Writing an LSP XML is easy, but not all streams will play as there are some binary streams and there is no way to play them through kodi, and an equal number of streams that do work. Enjoy!

LSP XML:
<item>
  <title>Daily List</title>
  <link>$doregex[genre]</link>
  <thumbnail>https://www.dailyiptvlist.com/wp-content/uploads/2017/02/logo0001.png</thumbnail>
  <regex>
    <name>genre</name>
    <listrepeat><![CDATA[
    <title>[COLOR gold][genre.param2][/COLOR]</title>
    <link>$doregex[lists]</link>
    <thumbnail>[genre.param3]</thumbnail>
    ]]></listrepeat>
    <expres><![CDATA[(?s)<article.+?href="([^"]+)"\s*title="([^"]+)?\s(?:download|daily|free|new|m3u).+?src="([^"]+)]]></expres>
    <page>http://www.dailyiptvlist.com/</page>
  </regex>
  <regex>
    <name>lists</name>
    <listrepeat><![CDATA[
    <title>[COLOR gold][lists.param2][/COLOR]</title>
    <link>ignoreme</link>
    <externallink>[lists.param1]$$TSDOWNLOADER$$</externallink>
    <thumbnail>[genre.param3]</thumbnail>
    ]]></listrepeat>
    <expres><![CDATA[<a\s*href="([^"]+m3u)">([^<]+)</a><(?:br|/p)]]></expres>
    <page>[genre.param1]</page>
    <referer>http://www.dailyiptvlist.com/</referer>
  </regex>
</item>
 
  • Like
Reactions: altug and turko03

tungbeng95

New member
Oct 25, 2018
17
0
1
Hi.Can u help me this regex :
hxxps://onlinestream.live/play.m3u8?id=5903&ch=3&ext=.m3u8 from
hxxps://onlinestream.live/m4-sport/videoplayer/5903-3
Tks u & Happy New Year!
 

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
Try this:

LSP XML:
<item>
<title>M4 Sport</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
  return re.findall('id=.xplayer[\w\W]+?src=[\'"]([^\'"]+)',page_data)[0].replace(':443','')+'|user-agent=ipad&referer=https://onlinestream.live/m4-sport/videoplayer/5903-3'
]]></expres>
<page>https://onlinestream.live/m4-sport/videoplayer/5903-3</page>
<referer>https://onlinestream.live/videoplayer.cgi?id=5903&ch=3</referer>
</regex>
<thumbnail>https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQlUW9GRqpSRac0TtKuyxkwxFe13OSLbTPWQ9c78uR5d-1oJYg9&s</thumbnail>
</item>
 
  • Like
Reactions: tungbeng95

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
I mean. I have the web sites which open fine with VPN.
But they will show the CloudFlare protection without using VPN.
 

boomski2

New member
Aug 19, 2019
18
1
3
guys, any idea if this can be play on lsp? i tried using <link></link> not work.

Code:
https://gdriveplayer.co/embed2.php?link=4M66qTjV4Wtq9vb0M0Sdgwds3xLkzT2iZMSsKcR8IufEYMgBPhXS2Hf5fJ2rS8ZV3QbGQADPxA5PTGYhPAqOBO02aNizuMJKR4nm6Vzb5Tcvrdqr06M%252FsT6gD5jcD9Zt8MeBGh%252Bq1BehLo9N%252BboBste%252BtGcF4hDjbyFBMDs1UpLVBb%252FCw%252FYZ8Z3p2bjyLP51XBE7RJw2VzDm3qnvqNJV6AusstuRk5mZYGIkYoV4REEOZNN4WOs0h3UtajnMYvodENJRu%252BbBzjoIZSZjz87IbK
 

Doom

New member
Sep 16, 2019
26
2
3
Hi can i get a regex help for this... is a live event maybe by time someone gets back to me the event will be over, but appreciate it!
http://yo.azureegde.net/box.m3u8 HTTP/1.1
Host: yo.azureegde.net
Proxy-Connection: keep-alive
Origin: http://crackstreams.ga
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: http://crackstreams.ga/boxingstreams/watch-showtime-shishkin-vs-sierra/video.php
 

adioukrou

New member
May 12, 2012
21
0
1
@gujal and streamwatcher2013,
What I am doing wrong here. this regex not working. Thanks for take a look at it.
<item>
<title>TEST-MEDI1TV-AR *| *Regex</title>
<link>$doregex[get-url]/chunklist_w$doregex[get-auth].m3u8</link>
<regex>
<name>get-url</name>
<expres>https(.*?)</expres>
<page>https://www.medi1tv.ma/ar/live.aspx</page>
<referer>https://www.medi1tv.ma</referer>
<origin></origin>
<agent>Mozilla/5.0 (Linux; Android 4.1.1; Nexus 7 Build/JRO03D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Safari/535.19</agent>
<cookieJar></cookieJar>
</regex>
<regex>
<name>get-auth</name>
<expres>chunklist_w(.*?).m3u8</expres>
<page>https://www.medi1tv.ma/ar/live.aspx</page>
<referer>https://www.medi1tv.ma</referer>
<origin></origin>
<agent>Mozilla/5.0 (Linux; Android 4.1.1; Nexus 7 Build/JRO03D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Safari/535.19</agent>
<cookieJar></cookieJar>
</regex>
<thumbnail></thumbnail>
</item>
 

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
Try this:

LSP XML:
<item>
<title>Medi1TV</title>
<link>$doregex[makelist]</link>
<thumbnail>https://img.medi1tv.com/live_medi1tv_visuel.jpg</thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <link>https://[makelist.param2]|user-agent=ipad&amp;referer=https://www.medi1tv.ma/ar/live.aspx</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)"titre-rubrique-jt".+?>(M[^<]+).*?(?:source|src|file):.*?//([^\'"]+).+?image:\s*[\'"]([^\'"]+)]]></expres>
<page>https://www.medi1tv.ma/ar/live.aspx</page>
<referer>https://www.medi1tv.ma/</referer>
</regex>
</item>
 
  • Like
Reactions: adioukrou

m5Germany

New member
Mar 20, 2014
18
4
3
Working - Not Working. What am I not seeing?

LSP XML:
<item>
<title>[COLOR=FF00FFFF]FoxNews |[COLOR=FF00FF00] Test - ustvgo.tv[/COLOR] | RegEx[/COLOR]</title>
<link>$doregex[m3u8]|User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36&amp;Referer=https://ustvgo.tv/</link>
<thumbnail></thumbnail>
<fanart></fanart>
<regex>
<name>m3u8</name>
<expres>file:\s*'([^']+)</expres>
<page>https://ustvgo.tv/player.php?stream=FoxNews</page>
</regex>
</item>
 
<item>
<title>[COLOR=FF00FFFF]CNN |[COLOR=FF00FF00] Test - ustvgo.tv[/COLOR] | RegEx[/COLOR]</title>
<link>$doregex[m3u8]|User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36&amp;Referer=https://ustvgo.tv/</link>
<thumbnail></thumbnail>
<fanart></fanart>
<regex>
<name>m3u8</name>
<expres>file:\s*'([^']+)</expres>
<page>https://ustvgo.tv/player2.php?stream=CNN</page>
</regex>
</item>
Thanks in advance,
m5
 

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
you still need to by pass sucuri protection to get the true source file

LSP XML:
<item>
<title> FOX News</title>
<link>$doregex[getUrl]|user-agent=ipad&amp;referer=http://ustvgo.tv/fox-news-live-streaming-free/</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[id=.player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)]]></expres>
<page>$doregex[source]</page>
</regex>
<regex>
<name>source</name>
<expres>$pyFunction:sucuri_cookie.createCookie('https://ustvgo.tv/player.php?stream=FoxNews',Cookie_Jar,'Mozilla/5.0')</expres>
<page></page>
</regex>
</item>
 

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
Or prevent the changed make for previous post then use this:

LSP XML:
<item>
<title>FOX News</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,urllib2
def GetLSProData(page_data,Cookie_Jar,m):
  if 'm3u8' in page_data:
    return re.findall('id=.player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',page_data)[0]+'|user-agent=ipad&referer=https://ustvgo.tv/player.php?stream=FoxNews'
  else:
    link='https://ustvgo.tv/'+re.findall('iframe\s*src.+?(player[^\'"]+)',page_data)[0]
    source=urllib2.urlopen(link).read()
    return re.findall('id=.player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer=https://ustvgo.tv/player.php?stream=FoxNews'
]]></expres>
<page>$doregex[source]</page>
</regex>
<regex>
<name>source</name>
<expres>$pyFunction:sucuri_cookie.createCookie('https://ustvgo.tv/player.php?stream=FoxNews',Cookie_Jar,'Mozilla/5.0')</expres>
<page></page>
</regex>
</item>
 

Doom

New member
Sep 16, 2019
26
2
3

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
Try this:

LSP XML:
<item>
<title>http://crackstreams.com/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <link>$doregex[makelist2]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('href="/(.*?)">([^\s]+)',re.findall('"nav navbar-nav">(?s)(.*?)</ul',page_data)[0])
]]></expres>
<page>http://crackstreams.com/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param3]/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>http://crackstreams.com/[makelist2.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('(?s)href=[\'"]([^\'"]+).+?(imag[^\'"]+).+?media-heading.>([^<]+)',re.findall('Schedule</h1>(?s)(.*?)(?:"text-center|<h2)',page_data)[0])
]]></expres>
<page>http://crackstreams.com/[makelist.param1]</page>
<referer>http://crackstreams.com/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  link=re.findall('<iframe.+?src=[\'"]([^\'"]+)',page_data)[0]
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'[makelist2.param1]','accept':'*/*'}.content
  return re.findall('id=.vid[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer='+link
]]></expres>
<page>[makelist2.param1]</page>
<referer>http://crackstreams.com/[makelist.param1]</referer>
</regex>
</item>
 

upd8t3r

New member
Oct 16, 2019
6
1
3
I noticed one small error but the regex still worked for me. For makelist2, the front bracket of the /color tag is missing. For me when that's happened before, it turned out that I just didn't copy the code right.
 

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
@upd8t3r. With me the missing "<" nothing to do with an error or stop code running. It will not display the color for title at all. His error log won't tell much about that code''s error, the best thing to see what happen on the code is playing it with Kodi 17 and enable log file. Or just run that code by itself.
 

streamwatcher2013

Active member
Oct 24, 2013
530
130
43
USA
It is working fine (see attach image of NBA game Miami Heat vs San Antonio Spurs). I do this code for you next NBA game on channel 2 to see it works:

LSP XML:
<item>
<title>NBA: Indiana Pacers vs Denver Nuggets (8:00 PM EST)</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  link=re.findall('<iframe.+?src=[\'"]([^\'"]+)',page_data)[0]
  if 'crackstreams' in link:
    source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'http://nbastreams.xyz/live/2/','accept':'*/*'}).content
    return re.findall('Clappr.Player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer='+link
  else:
    link='http://nbastreams.xyz/live/2/'+link
    source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'http://nbastreams.xyz/live/2/','accept':'*/*'}).content
    return re.findall('Clappr.Player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer='+link
]]></expres>
<page>http://nbastreams.xyz/live/2/</page>
<referer>http://crackstreams.com/nbastreams/</referer>
</regex>
</item>
 

adioukrou

New member
May 12, 2012
21
0
1
I noticed couple days ago all my m3u8 links played just for 2 minutes. They used to play fine but now I don't understand why they crashed. The links are not dead, they are active(they play fine into VLC). I even tried the" plugin://plugin.video.f4mTester/?url=" trick but did not work either.
Here is an example:
<item>
<title>XXXX</title>
<link>plugin://plugin.video.f4mTester/?url=http://nitro.ltd:25461//live/XXXXX/XXXXX/38195.m3u8</link>
<thumbnail></thumbnail>
</item>
Any help on how to fix this issue is appreciated.
Thanks.
 
Thread starter Similar threads Forum Replies Date
J Scraper Development 0
D Apple TV 4 44
O Addon Requests 5