LSP Regex & Makelist Discussion.

urualf

Member
Jan 19, 2016
42
0
6
please nned help with this thank you

hxxps://www.youtube.com/playlist?list=PL1N7BKTuLUGsC3hHaDB_o8Kq_n8QC9Bs1
 

vbprofi

Member
Feb 9, 2016
82
3
8
Hello,
try this:
Code:
<item>
<title>https://www.youtube.com/playlist?list=PL1N7BKTuLUGsC3hHaDB_o8Kq_n8QC9Bs1</title>
<link>$doregex[makelist]</link>

<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param1] ([makelist.param3])</title>
<link>plugin://plugin.video.youtube/play/?video_id=[makelist.param2]</link>
<thumbnail>NA</thumbnail>
]]></listrepeat>
<expres><![CDATA[data-title="(.*?)".*?data-video-id="(.*?)"(?s).*?<div class="timestamp"><span aria-label="(.*?)"]]></expres>
<page>https://www.youtube.com/playlist?list=PL1N7BKTuLUGsC3hHaDB_o8Kq_n8QC9Bs1</page>
<cookieJar></cookieJar>
</regex>
</item>
 
  • Like
Reactions: urualf

ga2p

New member
Feb 22, 2020
2
0
1
Hi, anyone can help me get this play on LPS.

XML:
<item>
<title>Fox Sports 2</title>
<link>$doregex[url]</link>
<thumbnail></thumbnail>
<regex>
<name>url</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  from resolveurl.plugins.lib import jsunpack
  import re, requests, urllib
  edata = re.findall('(eval\(function\(p,a,c,k,e,d.*)', page_data)[0]
  epage = jsunpack.unpack(edata).replace('\\', '')
  svar = re.findall('location,(\w+),', epage)[0]
  server = re.findall('{}="([^"]+)'.format(svar), epage)[0].decode('base64')
  tsvar, ttvar = re.findall('atob\(([^\)]+)\)\..+?atob\(([^\)]+)', epage)[0]
  tserver = re.findall('{}="([^"]+)'.format(tsvar), epage)[0].decode('base64')[8:]
  ttoken = re.findall('{}="([^"]+)'.format(ttvar), epage)[0].decode('base64')
  turl = 'http://telerium.tv{}{}'.format(tserver,ttoken)
  headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1',
             'Referer': 'http://telerium.tv/',
             'X-Requested-With': 'XMLHttpRequest'}
  cookies = {'volume': '100',
             'DelMarLaVi': '100'}
  token = requests.get(turl, headers=headers, cookies=cookies).json()[-1][::-1]
  headers.pop('X-Requested-With')
  url='http:{}{}|{}'.format(server,token, urllib.urlencode(headers))
  return url
]]></expres>
<page>http://telerium.tv/embed/53858.html</page>
<referer>http://soloveo.com/foxsports2.php</referer>
</regex>
</item>
 

Doom

Member
Sep 16, 2019
318
21
18
Can someone help the code stopped working web page changed ... was made by @streamwatcher2013 and thanks!
<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></thumbnail>
<fanart></fanart>
]]></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 blue][makelist2.param1] [COLOR white][makelist2.param3][/COLOR]</title>
<link>$doregex[getUrl]</link>
<thumbnail></thumbnail>
<fanart></fanart>
]]></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></thumbnail>
<fanart></fanart>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
Try this

LSP XML:
<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></thumbnail>
  <fanart></fanart>
]]></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 blue][makelist2.param1] [COLOR white][makelist2.param3][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail></thumbnail>
  <fanart></fanart>
]]></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,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  if 'Clappr.Player' in page_data:
    return re.findall('var\s*url_play.+?[\'"]([^\'"]+)',page_data)[0]+'|user-agent=ipad&origin=us.nocdn.net&referer=[makelist2.param2]'
  elif 'AWAY' in page_data:
    url=re.findall('href="([^"]+).+?\(HOME',page_data)[0]
    source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'[makelist2.param2]','accept':'*/*'}).content
    return re.findall('var\s*url_play..+?[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer='+url
  elif 'wstream.to' in page_data:
    url=re.findall('src="(.+?wstream[^"]+)',page_data)[0]
    source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'[makelist2.param2]','accept':'*/*'}).content
    decoded=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0]).replace('\\','')
    return re.findall('Clappr.Player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',decoded)[0]+'|user-agent=ipad&referer='+url
  elif 'video responsive' in page_data:
    link=re.findall('video responsive.+?src="([^"]+)',page_data)[0]
    source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'[makelist2.param2]','accept':'*/*'}).content
    url=re.findall('src="(.+?wstream[^"]+)',source)[0]
    source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':link,'accept':'*/*'}).content
    decoded=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0]).replace('\\','')
    return re.findall('Clappr.Player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',decoded)[0]+'|user-agent=ipad&referer='+url
  else:
    url=re.findall('(?s)entry-content">.+?[\'"](htt[^\'"]+)',page_data)[0]
    source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'[makelist2.param2]','accept':'*/*'}).content
    return re.findall('var\s*url_play..+?[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer='+url
]]></expres>
<page>[makelist2.param2]</page>
<referer>http://oomovie.net/</referer>
</regex>
<thumbnail></thumbnail>
<fanart></fanart>
</item>
 
  • Like
Reactions: Doom

adioukrou

Member
May 12, 2012
36
0
6

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
It seem like a dash file. So i was using inpustream to play and it plays with breaking up pixel

Code:
<item>
<title>https://s-stream.irokotv.com/</title>
<inputstream>https://s-stream.irokotv.com/8199_10151c5d04502035b4e4f08f526be5e6/dash//fmp4_480p_750000.mp4</inputstream>
</item>
 

Oxus

New member
Jul 24, 2014
18
2
3
Hy, can you help me to do a regex to login on this site?
Code:
https://protvplus.ro
Thank you!
 

MaxSpeed

New member
Nov 3, 2019
17
0
1
Hello my friend.
Please regex or makelist for xxx.megadede.com or gamovideo, streamplay, flashxtv, powvideo, vidoza...

Thank you for all !!
 

m5Germany

Active member
Mar 20, 2014
310
98
28
Greetings - When time prevails - Could/Would someone take a look and let me know where the code fails?

XML:
<item>
<title>FOX News - ustvg*.tv</title>
<link>$doregex[getFinalM3U8]$doregex[getwmsAuth]$doregex[getwmsAuth2]|user-agent=ipad&amp;referer=$doregex[getSource]</link>
 
<regex>
<name>getFinalM3U8</name>
<expres>$pyFunction:'$doregex[getM3U8]'.replace('\/','/').replace('"','').replace(',','')</expres>
<page></page>
</regex>
 
<regex>
<name>getM3U8</name>
<expres><![CDATA[return([([^\]]+)]]></expres>
<page>$doregex[getSource]</page>
</regex>
 
<regex>
<name>getwmsAuth</name>
<expres>$pyFunction:'$doregex[getJoin]'.replace('"','').replace(',','')</expres>
<page></page>
</regex>
 
<regex>
<name>getJoin</name>
<expres><![CDATA[].join.*?\+\s([^\.]+)]]></expres>
<page>$doregex[getSource]</page>
</regex>
 
<regex>
<name>getwmsAuth2</name>
<expres><![CDATA[id=$doregex[getJoin2]>([^<]+)]]></expres>
<page>$doregex[getSource]</page>
</regex>
 
<regex>
<name>getJoin2</name>
<expres><![CDATA[ById.["']([^"']+)]]></expres>
<page>$doregex[getSource]</page>
</regex>
 
<regex>
<name>getSource</name>
<expres>$pyFunction:sucuri_cookie.createCookie('https://ustvgo.tv/player.php?stream=FoxNews',Cookie_Jar,'Mozilla/5.0')</expres>
<page></page>
</regex>
</item>
Thanks in advance,
m5
 

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
  • Like
Reactions: Doom

upd8t3r

Member
Oct 16, 2019
46
18
8
It's more than just the cloudflare, they changed the last source page to being like how stre*ml*ve does theirs.


XML:
<span style='display:none' id=rtfeSiaBignechksut>0mVcPj1=rMvZ2ZWkhpVWpS9nQGbXwpWAJ9MTMZPJnMkxlnYV</span><span style='display:none' id=hertiknuaseifBSctg>9Mk9jZWJPmPnQW1VZpTYnVhXWMb=vZwJclnGVkx0Mp2AMSpr</span><span style='display:none' id=tkieBgasnihrctSeuf>VkbQGY0VVTmMnpWwMMrPjW2plxPJ1JZMZv=AnWpchn9k9XZS</span><span style='display:none' id=ufiaBhtntSreciesgk>MV=PXpnZMZk92WmnPQYAk9lpTVhJxbc1WVpMrZGMjSn0JvwW</span><span style='display:none' id=tkhgSraftiueceBins>0jMnZVmW2pQ=AYpv9MpPhZblkVGcT1JZSMWn9PwnkXVJrMxW</span><span style='display:none' id=BfuitsnekitcaheSgr>SjMXVpnVAmTWWwPl29YZrk1=9JZnxhGnMkQppvM0ZcMVbJWP</span><span style='display:none' id=cehgtBuiernitSaksf>QnGpMMbcjPp92Mn0lV9VpkVZWXrwA=TZJPS1JWkZMnxYmWvh</span><span style='display:none' id=kienaiutesfhStrgcB>Zh9npW9PnvMAcp1wTPVSpJMZQ=VmYkknlb2WVWXJ0GxZMrjM</span><span style='display:none' id=akhgnfSesteciBtriu>PXVMQlk9AMJjbnTvYcZmZpPV0J2xpZMGkV=MwWnrW1ShW9pn</span><span style='display:none' id=SBfuseiigntcarhekt>rVJlQZYbVcXkmpWTpPnS9J2VjZnMWM=9ZnPMk0hMvWGpw1xA</span><span style='display:none' id=fsiketuBeitghnScar>WPVVZZJkhvnp9ZTlX2GQJApxm=9MSPwrnMcWpbnjM10MVkYW</span><span style='display:none' id=hfSeitinstBeagucrk>WQMkhkVJ1VPnprvSWXx0w=MAYpmZlnPcWJ2MTnVGZjb99pZM</span><span style='display:none' id=ihntsekrctiuegSfaB>QVVcVMpj9SMkk1MnnrXTZWWMZ9PpvGwmW2Jn=bJhpAlZ0PxY</span><span style='display:none' id=urtfshSBaiekgtinec>bPcnmMVZ0wh1VMrxVMJ9kAXZpW=Wnkp9WnJPMQlvSTZpY2jG</span><span style='display:none' id=ekscStaftgBrneiiuh>0=hnMJvc9p9AMZWlVS1ZYkxTZWwW2mMPnJMkGPVrpbjXnQpV</span><span style='display:none' id=iastufakrtengicBSh>MkhrWWVvVnpJMnc9PSZ2YWxpZG1pbnV0ZXM9MjQwJmlkPTA=</span><span style='display:none' id=sBkicSatrifheenutg>2MrX0wvQW9jP9MphVnJkpP1bZcMVpZln=VSMYGZnWAJTkxWm</span><span style='display:none' id=aStBgsirihcneutkfe>PWWVbMGVpQklXJ10ckAnYVZxMJj2nvMPZ9wnMph=SpT9mrWZ</span><span style='display:none' id=kaiSrfgihtcnBesteu>JpXGVjQM2mkvZYZpbWJknxrMwWhlVApM0ZP1nPTSMVnc9=9W</span><span style='display:none' id=BseautrSinfkgitceh>VZ1vn2ZV9nQJMPMkTYxhZPbrnWJpVMjm0MXl=cGWpwWAkSp9</span><span style='display:none' id=eauhfigctrknBSeist>Jk2PnVmZcJbAPWnkYMv1MXGTMpQ9hVrpx=j9Sw0MnWlWpVZZ</span><span style='display:none' id=gttehiBnSrkseufcia>Y=ZMwcMJSvpnjPVMWhpb9MprTQ91n2xVWZAJkXW0kZPGnlmV</span><span style='display:none' id=gBaunfrcitksiSethe>Zrp9nhp9xZTZXvk0MJPVMkWW=lMmVAPQcb2VJpS1wMGYjWnn</span><span style='display:none' id=agrceStkitsfhuinBe>ppAbMkvjVxnYWpJMJWnPZmhZWVPSlGMXkr0929QTMnwc=Z1V</span><span style='display:none' id=uBghctseSfaikrtnie>SXZPhppj2MMZVVb099lmAW=MnrvGJPnYJ1VnwTWkMkpcZWxQ</span><span style='display:none' id=rtSuBacihetnskgief>PM2ZVXxWW9ZZnGvMJPjwpM0pcQknmkYVpWMT1lV9brhn=AJS</span>
<!DOCTYPE html>
<html lang="en">
<head>
<title>JwPlayer</title>
<meta charset="utf-8">
<script type='text/javascript' src="https://cdn.jwplayer.com/libraries/tjefiREa.js"></script>
</head>
<body>
<div id="mediaspace">
<script type="text/javascript">
var trUeaSsrnraieulgerAyb = ["UZY","VlP","XNo","c2V","QTS","VyX","ZoY","MCB","Toy","owN","4Sj","85L","X3Z","9My","UVg","MjA","F1c","hbH","gMz","ydm","zIw","2dB","bWU","3Rp"];
var AarbnsaeyrUglieerturS = ["zIw","VyX","UZY","owN","c2V","QTS","85L","VlP","MjA","Toy","bWU","ydm","XNo","2dB","F1c","9My","X3Z","ZoY","3Rp","UVg","hbH","4Sj","MCB","gMz"];
var AyragsbenrraieerUtluS = ["9My","4Sj","F1c","2dB","XNo","QTS","hbH","c2V","3Rp","MCB","owN","bWU","VlP","ydm","MjA","VyX","gMz","Toy","85L","UZY","zIw","UVg","X3Z","ZoY"];
var lUrynagreiuaSrAerbest = ["bWU","zIw","X3Z","owN","9My","VyX","QTS","F1c","UZY","c2V","hbH","2dB","4Sj","MjA","Toy","UVg","VlP","MCB","ydm","gMz","ZoY","3Rp","XNo","85L"];
var eurybrersngAaiStrealU = ["4Sj","c2V","Toy","85L","9My","zIw","gMz","3Rp","MjA","VlP","hbH","XNo","2dB","UZY","X3Z","VyX","owN","MCB","UVg","QTS","F1c","bWU","ydm","ZoY"];
var uretreseUSAgibrlraany = ["hbH","MjA","XNo","9My","4Sj","F1c","3Rp","ZoY","ydm","VlP","owN","gMz","UZY","2dB","VyX","bWU","85L","zIw","UVg","X3Z","c2V","MCB","QTS","Toy"];
var rSreenUelbyaAiasgrrut = ["c2V","gMz","bWU","MCB","2dB","Toy","ydm","XNo","hbH","4Sj","F1c","QTS","VlP","85L","X3Z","9My","UZY","ZoY","3Rp","zIw","UVg","VyX","owN","MjA"];
var ruigneyUbeaStlAesrrra = ["owN","X3Z","XNo","F1c","ydm","gMz","hbH","2dB","VyX","VlP","4Sj","MjA","zIw","3Rp","c2V","MCB","UVg","ZoY","85L","9My","bWU","UZY","Toy","QTS"];
var aigUyeuersSnarlrArbte = ["gMz","VlP","VyX","4Sj","UZY","MCB","3Rp","Toy","X3Z","owN","UVg","hbH","zIw","c2V","bWU","F1c","ydm","MjA","QTS","XNo","ZoY","85L","9My","2dB"];
var egtlusieSUnarArrreayb = ["gMz","MjA","QTS","UZY","bWU","owN","X3Z","F1c","UVg","c2V","3Rp","zIw","Toy","4Sj","ZoY","VlP","ydm","MCB","85L","XNo","9My","2dB","hbH","VyX"];
var ArltaSesabergUnrieuyr = ["UVg","XNo","bWU","hbH","9My","F1c","VlP","VyX","UZY","zIw","QTS","2dB","4Sj","Toy","MCB","c2V","X3Z","ZoY","MjA","85L","ydm","3Rp","owN","gMz"];
var eaeurtlrrinUAaebsSgyr = ["MCB","zIw","c2V","85L","owN","bWU","UZY","hbH","2dB","X3Z","9My","ydm","3Rp","4Sj","UVg","XNo","Toy","VlP","gMz","F1c","ZoY","VyX","MjA","QTS"];
var uanerrlrAUayteeSsibrg = ["ZoY","owN","Toy","bWU","QTS","85L","gMz","2dB","c2V","UVg","MCB","X3Z","MjA","VyX","hbH","ydm","UZY","zIw","VlP","F1c","4Sj","XNo","9My","3Rp"];
var usSeArenirUtarraleygb = ["QTS","85L","3Rp","hbH","4Sj","owN","UZY","UVg","F1c","VlP","gMz","MjA","VyX","c2V","ydm","2dB","ZoY","zIw","bWU","9My","XNo","X3Z","Toy","MCB"];
var rriSrsAlUegatynuebare = ["4Sj","ydm","hbH","Toy","XNo","QTS","3Rp","X3Z","MCB","MjA","2dB","bWU","gMz","owN","85L","ZoY","VyX","UZY","VlP","F1c","c2V","zIw","UVg","9My"];
var gSrAbeaursnrrayUleati = ["c2V","ydm","VyX","3Rp","bWU","9My","85L","zIw","MjA","gMz","owN","Toy","MCB","QTS","ZoY","XNo","X3Z","hbH","VlP","UZY","UVg","4Sj","F1c","2dB"];
var eareaglbitrAUuryrsSne = ["zIw","9My","2dB","X3Z","4Sj","VyX","hbH","ydm","XNo","3Rp","c2V","QTS","owN","VlP","MjA","UZY","F1c","Toy","gMz","bWU","UVg","85L","MCB","ZoY"];
var ylaaegrAtUSrbresnueri = ["hbH","XNo","3Rp","VyX","X3Z","zIw","owN","UZY","VlP","ydm","bWU","2dB","ZoY","c2V","gMz","UVg","Toy","85L","F1c","MjA","9My","4Sj","QTS","MCB"];
var naerlaugrebSAtryirUes = ["zIw","XNo","9My","VyX","QTS","2dB","F1c","UVg","4Sj","UZY","owN","3Rp","VlP","MCB","Toy","bWU","ZoY","gMz","85L","c2V","hbH","MjA","X3Z","ydm"];
var SrnrsAregleaeabiutryU = ["gMz","F1c","VlP","Toy","ZoY","X3Z","9My","XNo","85L","3Rp","UZY","hbH","QTS","bWU","4Sj","zIw","ydm","owN","c2V","2dB","UVg","MCB","MjA","VyX"];
var uleAasanrrrgiSetrbUey = ["4Sj","MCB","Toy","UZY","XNo","owN","85L","MjA","ZoY","VyX","X3Z","VlP","bWU","F1c","gMz","9My","ydm","2dB","zIw","hbH","UVg","c2V","QTS","3Rp"];
var AteUebSuyneisrlgrrara = ["MCB","XNo","MjA","3Rp","VyX","c2V","Toy","bWU","F1c","X3Z","zIw","4Sj","UVg","ydm","gMz","hbH","ZoY","VlP","9My","QTS","85L","UZY","2dB","owN"];
var SyberereaUnriAgstulra = ["gMz","zIw","ZoY","ydm","3Rp","MCB","QTS","MjA","UVg","Toy","hbH","XNo","UZY","VyX","85L","F1c","owN","c2V","9My","4Sj","VlP","2dB","bWU","X3Z"];
var tbrgUSaeerusAnirarley = ["bWU","ydm","zIw","c2V","F1c","9My","3Rp","QTS","XNo","ZoY","UZY","X3Z","MCB","hbH","4Sj","gMz","VlP","85L","MjA","Toy","VyX","UVg","2dB","owN"];
var SaerlatnreyiUgrAerbus = ["bWU","XNo","X3Z","QTS","Toy","zIw","VlP","ydm","2dB","hbH","VyX","85L","MCB","UVg","ZoY","9My","c2V","gMz","4Sj","UZY","MjA","3Rp","owN","F1c"];
var aiyrlerUAbeaernSusrtg = ["VyX","zIw","VlP","85L","gMz","bWU","4Sj","9My","ZoY","3Rp","c2V","X3Z","Toy","QTS","UVg","2dB","UZY","XNo","MjA","F1c","hbH","owN","MCB","ydm"];

    


    var player = jwplayer('mediaspace');
    player.setup({
        file: tHUrepgltt(),
        width: "100%",
        aspectratio: "16:9",
        });



    function tHUrepgltt() {
        return(["h","t","t","p","s",":","\/","\/","p","e","e","r","3",".","u","s","t","v",".","t","o","\/","W","W","E","\/","m","y","S","t","r","e","a","m","\/","p","l","a","y","l","i","s","t",".","m","3","u","8","?","w","m","s","A","u","t","h","S","i","g","n","="].join("") + gSrAbeaursnrrayUleati.join("") + document.getElementById("iastufakrtengicBSh").innerHTML);
    }


</script>
</body>
</html>
 

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
the code just like this at final regex

LSP XML:
  link='https://ustvgo.tv/'+re.findall('iframe\s*src.+?(player[^\'"]+)',source)[0]
  source=scraper.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://ustvgo.tv/'}).content
  if 'm3u8' in source:
    return re.findall('id=.player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer='+link
  else:
    gvar=re.findall('file:.+?([^\s\(]+)',source)[0]
    html,vtok,rtok=re.findall('%s.*\n.*?\["(.*?)"\].+?\+.+?(\w[^\.]+).+?\+.+?"([^"]+)'%gvar,source)[0]
    tok1=re.findall('%s.+?\["(.*?)"\]'%vtok,source)[0].replace('","','');tok2=re.findall('%s>([^<]+)'%rtok,source)[0]
    return html.replace('","','').replace('\\','')+tok1+tok2+'|user-agent=ipad&referer='+link
 

upd8t3r

Member
Oct 16, 2019
46
18
8
@streamwatcher2013 Is it possible that the cfscrape for cloudflare isn't working anymore? The code I have below could be wrong, it's just weird that the error it gives is unable to solve cloudflare challenge. What I decided to do was start with a regex for just the final page, to try eliminating as many variables as possible.


XML:
<item>
<title>[COLOR skyblue][B]FOX NEWS[/B][/COLOR]</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,cfscrape
def GetLSProData(page_data,Cookie_Jar,m):
  scraper=cfscrape.create_scraper()
  link='https://ustvgo.tv/player.php?stream=FoxNews'
  source=scraper.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://ustvgo.tv/'}).content
  sid=re.findall('file:.+?([^\s\(]+)',source)[0]
  url,tok1,tok2=re.findall('%s[\w\W]*?return.+?\[(.*?)\].+?\+\s*([^\.]+).+?"(\w[^"]+)'%sid,source)[0]
  rtmp=''.join(eval(url)).replace('\\','')
  token=re.findall('var\s*%s.+?\[([^\]]+)'%tok1,source)[0];token=''.join(eval(token))
  atoken=re.findall('id=%s>(.*?)<'%tok2,source)[0]
  return '%s%s%s|user-agent=ipad&referer=https://ustvgo.tv/'%(rtmp,token,atoken)
]]></expres>
<page>https://ustvgo.tv/player.php?stream=FoxNews</page>
<referer>https://ustvgo.tv/</referer>
</regex>
<thumbnail>http://www.livenewson.com/wp-content/uploads/2015/09/FNC2.jpg</thumbnail>   
<fanart>http://www.livenewson.com/wp-content/uploads/2015/09/FNC2.jpg</fanart>
</item>
 

jamers

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

hxxps://tviplayer.iol.pt/direto/TVI

Thank you
 

Doom

Member
Sep 16, 2019
318
21
18
Can I help for this to work & thanks!
<item>
<title>A AND E</title>
<link>$doregex[data]|User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0</link>
<regex>
<name>data</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
import requests
import re
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0'}
url ='https://ustv247.tv/ae-live-stream/'
source = requests.get(url,headers=headers)
keyid = re.findall("wmsAuthSign=(.*?)'", source.text)[0]
link='https://peer5.ustv.to/AE/myStream/playlist.m3u8?wmsAuthSign='+keyid
return link
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
</item>
 

upd8t3r

Member
Oct 16, 2019
46
18
8
This site has it the same way as the tvgo site does, just no cloudflare. I wasn't able to figure out and get the code to work that @streamwatcher2013 said to replace with, but I was able to come up with I think a similar working code.

XML:
<item>
<title>[COLOR skyblue][B]A&amp;E[/B][/COLOR]</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  sid=re.findall('file:\s*([^\(]+)',page_data)[0]
  url,tok1,tok2=re.findall('%s[\w\W]*?return.+?\[(.*?)\].+?\+\s*([^\.]+).+?"(\w[^"]+)'%sid,page_data)[0]
  rtmp=''.join(eval(url)).replace('\\','')
  token=re.findall('var\s*%s.+?\[([^\]]+)'%tok1,page_data)[0];token=''.join(eval(token))
  atoken=re.findall('id=%s>(.*?)<'%tok2,page_data)[0]
  return '%s%s%s|user-agent=ipad&referer=https://ustv247.tv/ae-live-stream/'%(rtmp,token,atoken)
]]></expres>
<page>https://ustv247.tv/player.php?stream=AE</page>
<cookieJar></cookieJar>
</regex>
<thumbnail>https://2.bp.blogspot.com/-eIN3ehpZl4w/Vvv_yMJ8uEI/AAAAAAAAAes/wCNsa5KwRQAGQA7XW-_piDh3jV7y7NNhwCPcBGAYYCw/s1600/ae%2Blive%2Bstreamll.gif</thumbnail>   
<fanart>https://www.aetv.com/assets/images/aetv/generic-thumb.jpg</fanart>
</item>
 
  • Like
Reactions: Doom

upd8t3r

Member
Oct 16, 2019
46
18
8
It works, it just doesn't have as many channels as tvgo because tv247 doesn't show all of the same channels.

XML:
<item>
<title>[COLOR skyblue][B]USTV247[/B][/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR skyblue][B]$doregex[fixedTitle][/B][/COLOR]</title>
<link>$doregex[getStream]|User-Agent=iPad&amp;Referer=https://ustv247.tv$doregex[getIframe]</link>
<thumbnail>https://s-media-cache-ak0.pinimg.com/originals/37/31/ba/3731ba2dfa91ea1527f1c0044e3aae89.gif</thumbnail>
<fanart>https://s-media-cache-ak0.pinimg.com/originals/37/31/ba/3731ba2dfa91ea1527f1c0044e3aae89.gif</fanart>
]]></listrepeat>
<expres><![CDATA[pis-title-link".*?["']([^"']+).*?>([^\<]+)]]></expres>
<page>https://ustv247.tv</page>
</regex>
<regex>
<name>fixedTitle</name>
<expres>$pyFunction:('[makelist.param2]').replace('#038;','')</expres>
<page>https://ustv247.tv</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getIframe</name>
<expres>iframe\s*src=['"]([^'"]+)</expres>
<page>[makelist.param1]</page>
</regex>
<regex>
<name>getStream</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  sid=re.findall('file:\s*([^\(]+)',page_data)[0]
  url,tok1,tok2=re.findall('%s[\w\W]*?return.+?\[(.*?)\].+?\+\s*([^\.]+).+?"(\w[^"]+)'%sid,page_data)[0]
  rtmp=''.join(eval(url)).replace('\\','')
  token=re.findall('var\s*%s.+?\[([^\]]+)'%tok1,page_data)[0];token=''.join(eval(token))
  atoken=re.findall('id=%s>(.*?)<'%tok2,page_data)[0]
  return '%s%s%s'%(rtmp,token,atoken)
]]></expres>
<page>https://ustv247.tv$doregex[getIframe]</page>
</regex>
<thumbnail>https://s-media-cache-ak0.pinimg.com/originals/37/31/ba/3731ba2dfa91ea1527f1c0044e3aae89.gif</thumbnail>
<fanart>https://s-media-cache-ak0.pinimg.com/originals/37/31/ba/3731ba2dfa91ea1527f1c0044e3aae89.gif</fanart>
</item>
 
  • Like
Reactions: Doom

jujuuj

New member
Feb 25, 2015
27
0
1
http
Hello,

May I have some help to build this item please ?
Code:
 https://www.tf1.fr/tf1/direct
there are five channels built equally
/tf1/direct /tfx/direct /rmc/direct /lci/direct /tf1-series-films/direct

thank you !
c u soon on web
 

jujuuj

New member
Feb 25, 2015
27
0
1
http
Hello, a lil UP! .. sorry ... ;)

May I have some help to build this item please ?

Code:
https://www.tf1.fr/tf1/direct
there are five channels built equally
/tf1/direct
/tfx/direct
/rmc/direct
/lci/direct
/tf1-series-films/direct

thank you !
c u soon on web
 

gujal

Developer
Dec 26, 2013
574
319
63
Unfortunately geo blocked to France and its territories, Not even Canada is allowed access
Code:
"error_code":"GEOBLOCKED",
"error_desc":"Ce contenu n'est pas disponible dans votre zone géographique",
"title":"L'émission de Mcfly & Carlito","useND":"//delivery.tf1.fr/mytf1-wrd/L_TMC",
"geoList":["FR","AD","FX","GF","GP","MC","MQ","NC","PF","PM","RE","WF","YT","TF"]
 
  • Like
Reactions: jujuuj

udomrat

New member
Nov 10, 2016
20
5
3
thailand
Hi.
Give me this code.
Code:
https://www.dufree4k.com/streaming/eyJpdiI6InY5Y0dTaUVZT2tJNHE1M1B5QVhNcXc9PSIsInZhbHVlIjoiSktSc3NzMzhyckFJNmVtMkRMUXYyQXFabjJENXhUMzRoTkRsRXFHZ08rY0J5K1ZuNTQreHJqK1p0N1dac2dleUV4dFJUUHdYZE5sRkQ4UFhiQ0p2MUE9PSIsIm1hYyI6ImYxZjI5MDA2YzBkYjQyNjhhMDk4YmVmMDU4NTg2MjAyNmUxYmFlZTViZjk0MzMxYTFlOTM3YjJkMjJmNDkzZTMifQ==
 

matri1986

New member
Dec 11, 2019
2
0
1
Hi Gurus,
I've a problem with this regex it work on win 10 but not in android tablet or box tv ?
Can anyone help me?.
P.s sorry for my regex expres i'm not an expert

<item>
<title>FILM 2020 PAGINA 1</title>
<link>$doregex[genre]</link>
<regex>
<name>genre</name>
<listrepeat><![CDATA[
<title>[COLOR black]TITOLO:--[genre.param3][/COLOR][COLOR white]GENERE:--[genre.param4][/COLOR][COLOR black]TRAMA:--[genre.param5][/COLOR]</title>
<link>$doregex[lists]</link>
<thumbnail>https://cb01.gold[genre.param1]</thumbnail>
]]></listrepeat>
<expres>img src="(.*?)" alt=".*?" border="0" class="cont_img".+\/a.
.\/div.
.div class="col-md-8".
.a href="(.*?)".+h1.(.*?).\/h1.+\/a.
.h2 style="font-weight: bold; padding-top: 10px;".(.*?).\/h2.
.p.(.*?).\/p.</expres>
<page>https://cb01.gold/xfsearch/anno/2020/</page>
</regex>
<regex>
<name>lists</name>
<listrepeat><![CDATA[
<title>[COLOR gold][lists.param3][/COLOR]</title>
<link>$doregex[zeta]|Referer=https://cb01.gold/&amp;User-Agent=iPad</link>
]]></listrepeat>
<expres>a href="((.*?))" rel="nofollow" target="_blank".+img src=".*?". (VupStream|Upstream).\/a.+\/li.</expres>
<page>[genre.param2]</page>
<referer>[genre.param2]</referer>
</regex
<regex>
<name>zeta</name>
<expres>(?:source|src|file):\s*[\'"]([^\'"]+)</expres>
<page>[lists.param2]</page>
<setcookie>challenge=[lists.param2]</setcookie>
<referer>[genre.param2]</referer>
</regex>
</item>
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5