LSP Regex & Makelist Discussion.

03stevensmi

Member
Sep 12, 2019
47
4
8
@streamwatcher2013 i tried to fix it myself by renaming myvideo to the correct my_video_1 and tried to add the rest of the sources "fe,mx,p2p,alpha,beta" but they all show up blank. Can you take a look at this to see if it can be added or fixed. cheers. ;)
 

m5Germany

Member
Mar 20, 2014
95
13
8
Greetings,
After viewing the LSPro wiki: http://lsprowiki.eu5.org/wiki/index.php?n=Functions.WidevineDRM I wrote the following:
XML::
<item>
<title>TEST - WORKS</title>
<inputstream>https://p-cdn1-a-cg14-linear-cbd46b77.movetv.com/clipslist/1210/20201029T170000Z/20201029T180000Z.mpd$$lic=http://p-drmwv.movetv.com/widevine/proxy|User-Agent: Mozilla/5.0|{"env":"production","user_id":"bc2aa07e-9b21-11e6-8c7e-0e64d2fd7f19","channel_id":"f0111af39c5d4ff1b3ca6c57a27efcb5","message":[D{SSM}]}|</inputstream>
</item>
But - I'm having a hard time getting the stream to stay LIVE. I've tried to REGEX it multiple times (Sorry - not proficient in writing Python) and have not been successful.

Although I might have been around here for a while - CODE Writing is not my day job and I appreciate the help from the Pro's.

Anyway, If I can get someone to CODE this - I can reverse engineer it - hopefully - and then have learned.

https://sports24.club/tv/v?id=foxnews

As Always, Thanks in advance
m5
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Try this for me. Some how I got the error 404, it is not so sure it was from my ISP or not. Let me know. I saw some stream was qmx format (fairplay.m3u8) from apple's quantum stream. May be @gujal step in to solve the mistery. ;)

LSP XML:
<item>
<title>https://sports24.club/tv/v?id=foxnews</title>
<inputstream>$doregex[getUrl]$$lic=http://p-drmwv.movetv.com/widevine/proxy|User-Agent:Mozilla/5.0|{"env":"production","user_id":"bc2aa07e-9b21-11e6-8c7e-0e64d2fd7f19","channel_id":"f0111af39c5d4ff1b3ca6c57a27efcb5","message":[D{SSM}]}|</inputstream>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,json
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  s=requests.get('https://sports24.icu/tv/v?id=foxnews',headers={'user-agent':'Mozilla/5.0','referer':'https://sports24.club/tv/','accept':'*/*'})
  path,chID=re.findall('(?:id=ppp|embed-responsive-item).+?(/?.+=([^"]+))',s.content)[0]
  url='http://cbd46b77.cdn.cms.movetv.com/cms/publish3/channel/current_asset/%s.json'%chID
  jdata=requests.get(url,headers={'user-agent':'Mozilla/5.0','accept':'application/json, text/javascript, */*; q=0.01'},cookies=s.cookies).json()
  qvtlink=jdata['schedules'][0]['playback_info'].replace('http','https')
  source=requests.get(qvtlink,headers={'user-agent':'Mozilla/5.0','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'},cookies=s.cookies).json()
  return source['playback_info']['dash_manifest_url'].replace('http','https')
]]></expres>
<page></page>
</regex>
</item>
 

m5Germany

Member
Mar 20, 2014
95
13
8
Thanks for taking a look. I too get a 404 error:
Code:
ERROR: AddOnLog: InputStream Adaptive: Download http://p-cdn3-a-cg14-linear-cbd46b77.movetv.com/15807/live/FXNWS/16bfe0821cea11eba5170025b5471215/video/vid04/fffffff9.m4s failed with error: 404
Not a priority - but - It would be nice to see if it can be CODED to play LIVE.

I know your busy - so - whenever.

As Always, Thanks.
m5
 

gujal

Developer
Dec 26, 2013
472
243
43
The MPD contains three different CDN sources for the stream, Akamai, Fastly and Level3.
MPEG DASH Manifest:
<BaseURL serviceLocation="A-Akamai" dvb:priority="1" dvb:weight="34">http://p-cdn1-a-cg14-linear-cbd46b77.movetv.com/15807/live/FXNWS/d3ef8002201111eba5170025b5471215/</BaseURL>
<BaseURL serviceLocation="A-Fastly" dvb:priority="1" dvb:weight="33">http://p-cdn4-a-cg14-linear-cbd46b77.movetv.com/15807/live/FXNWS/d3ef8002201111eba5170025b5471215/</BaseURL>
<BaseURL serviceLocation="A-Level3" dvb:priority="1" dvb:weight="33">http://p-cdn3-a-cg14-linear-cbd46b77.movetv.com/15807/live/FXNWS/d3ef8002201111eba5170025b5471215/</BaseURL>
When played from the browser, it picks the Akamai Stream and plays fine. But when Inputstream Adaptive parses the MPD, it picks Level3 and that gives a 404.
Looks like Inputstream Adaptive bug as it is picking a stream with lower "dvb:weight".
LSP XML:
<item>
<title>Fox News (Sports24.club)</title>
<inputstream>$doregex[getUrl]$$lic=http://p-drmwv.movetv.com/widevine/proxy|User-Agent: Mozilla/5.0|{"env":"production","user_id":"bc2aa07e-9b21-11e6-8c7e-0e64d2fd7f19","channel_id":"f0111af39c5d4ff1b3ca6c57a27efcb5","message":[D{SSM}]}|</inputstream>
<regex>
<name>getUrl</name>
<expres>dash_manifest_url":"([^"]+)</expres>
<page>https://cbd46b77.cdn.cms.movetv.com/cms/api/channels/e78cd8c7cca443cba7a70c6008c0291f/schedule/now/playback_info.qvt</page>
</regex>
</item>
 

m5Germany

Member
Mar 20, 2014
95
13
8
Thanks @gujal and @streamwatcher2013

Didn't know that @gujal had responded when I was just about to post this update. If possible, I would still like to know how to decode.

Greetings,

Would like to know what I use to decode this page and how/what online tool I can use to do that.

I'm expecting that there is a: https://sports24.club/bm/channels.json?1603651217.
URL:
view-source:https://sports24.club/bm/sl.php?ch=e78cd8c7cca443cba7a70c6008c0291
Here's what I have so far:
LSP XML:
<item>
<title>Test .mpd FOX News</title>
<inputstream>$doregex[getM5]$$lic=http://p-drmwv.movetv.com/widevine/proxy|User-Agent:Mozilla/5.0|{"env":"production","user_id":"bc2aa07e-9b21-11e6-8c7e-0e64d2fd7f19","channel_id":"f0111af39c5d4ff1b3ca6c57a27efcb5","message":[D{SSM}]}|</inputstream>

<regex>
<name>getM5</name>
<expres><![CDATA["live","dash_manifest_url":"([^"]+)]]></expres>
<page>$doregex[getMPD]</page>
<referer>https://sports24.club/bm/sl.php?ch=e78cd8c7cca443cba7a70c6008c0291f</referer>
</regex>

<regex>
<name>getMPD</name>
<expres><![CDATA["playback_info":\s"([^"]+)]]></expres>
<page>$doregex[getQvt]</page>
<referer>https://sports24.club/bm/sl.php?ch=e78cd8c7cca443cba7a70c6008c0291f</referer>
</regex>

<regex>
<name>getQvt</name>
<expres><![CDATA["playback_info":\s"([^"]+)]]></expres>
<page>$doregex[getJason]</page>
<referer>https://sports24.club/bm/sl.php?ch=e78cd8c7cca443cba7a70c6008c0291f</referer>
</regex>

<regex>
<name>getJason</name>
<expres><![CDATA[call_sign":"FXNWS".*?"current_asset":"([^"]+)]]></expres>
<page>$doregex[Need TO GET]</page>
<info>https://sports24.icu//bm/channels.json?1603651217</info>
<referer>https://sports24.club/bm/sl.php?ch=e78cd8c7cca443cba7a70c6008c0291f</referer>
</regex>

<regex>
<name>Need TO GET</name>
<expres><![CDATA[NEED TO GET]]></expres>
<page>https://sports24.club/$doregex[getIframePHP]</page>
<referer>https://sports24.club/tv/v?id=foxnews</referer>
</regex>

<regex>
<name>getIframePHP</name>
<expres><![CDATA[(?:id=ppp|embed-responsive-item).*?src="([^"]+)]]></expres>
<page>https://sports24.club/tv/v?id=foxnews/page>
<referer>https://sports24.club/tv/</referer>
</regex>
</item>
As Always, Thanks in Advance.
m5
 

dantas1990

Member
Apr 10, 2020
45
1
8
hello guys ,its possible regex for this link for lsp thanks

hxxps://mega.nz/file/zm5iVCrA#bAjSAIuV2L7upD3EN0lSWIPPok2Az7DGb0bekN4j_rE
hxxps: //pandafiles.com/0yqrqgu436kf/DW.S09E01.MP4.DUB.BaixarSeriesMP4.Com.mp4
 

tungbeng95

Member
Oct 25, 2018
286
9
18
I need help this:
HTML:
https://livestream.com/accounts/29590904/events/9143169/player?autoPlay=true
 

m5Germany

Member
Mar 20, 2014
95
13
8
Try This:
LSP XML:
<item>
<title>Dog TV - Livestream.com</title>
<link>$doregex[getM3U8]|User-Agent=Mozilla/5.0&amp;Referer=https://livestream.com/</link>
<regex>
<name>getM3U8</name>
<expres><![CDATA[secure_m3u8_url":"([^"]+)]]></expres>
<page>https://livestream.com/accounts/29590904/events/9143169/player?autoPlay=true</page>
<referer>https://livestream.com/</referer>
</regex>
</item>
Enjoy,
m5
 
  • Like
Reactions: tungbeng95

vbprofi

Member
Feb 9, 2016
74
3
8
Hello dear experts,

I haven't been here for a long time. I am happy to be here again.

For a few days now, karwan.tv has again switched cloudflare to their website. Does anyone have any idea how this can be used with lsp?

Thank you in advance for the help.

best regards
 

TRC4

New member
Mar 6, 2016
28
3
3
Netherland
wait a few days it will remove the fucking cloudflare, clf is problematic in streaming sites blocking video <tags> headers + problem in android devices even who administers this site will remove it, just wait.
 

m5Germany

Member
Mar 20, 2014
95
13
8
Greetings,
Not sure why they do not play.
Here's my attempt:
LSP XML:
GET http://s4.quickcpa.org/srv/btn.m3u8 HTTP/1.1
Referer: http://yoursports.stream/
HOST: http://yoursports.stream/live?v=btn
<item>
<title>[COLOR=FF00FFFF]Test |[COLOR=FF00FF00] Big Ten Network - yoursports.stream ([COLOR=blue]SD[/COLOR])[/COLOR]  RegEx</title>
<link>http://s4.quickcpa.org/srv/btn.m3u8|User-Agent=Mozilla/5.0&amp;Referer=http://yoursports.stream/</link>
</item>
 
GET http://s4.rstrm.club/srv/foxn.m3u8 HTTP/1.1
Referer: http://yoursports.stream/
HOST: http://yoursports.stream/live?v=foxnews
<item>
<title>[COLOR=FF00FFFF]Test |[COLOR=FF00FF00] FOX News - yoursports.stream ([COLOR=blue]SD[/COLOR])[/COLOR]  RegEx</title>
<link>http://s4.rstrm.club/srv/foxn.m3u8|User-Agent=Mozilla/5.0&amp;Referer=http://yoursports.stream/</link>
</item>
As Always, Thanks in advance
m5
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Try this

LSP XML:
<item>
<title>http://yoursports.stream/live?v=foxnews</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('window.location.replace[\w\W]*?var.+?[\'"]([^\'"]+)',page_data)[0].decode('base64')+'|user-agent=ipad&origin=http://yoursports.stream&referer=http://yoursports.stream/ing/foxnews'
]]></expres>
<page>http://yoursports.stream/ing/foxnews</page>
<referer>http://yoursports.stream/live?v=foxnews</referer>
</regex>
</item>
 
  • Like
Reactions: m5Germany

tungbeng95

Member
Oct 25, 2018
286
9
18
Can I get help this:
HTML:
https://archivum.mtva.hu/m3/embed
 

gujal

Developer
Dec 26, 2013
472
243
43
Simple one, Enjoy!

LSP XML:
<item>
<title>M3 HU</title>
<inputstream>$doregex[getUrl]</inputstream>
<regex>
<name>link</name>
<expres>url":"([^"]+)</expres>
<page>https://archivum.mtva.hu/m3/embed</page>
</regex>
<regex>
<name>getUrl</name>
<expres>$pyFunction:'$doregex[link]'.replace('\\/','/')<expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: tungbeng95

Dwarfman

New member
Oct 31, 2020
3
0
1
Hello first time here.

Could someone kindly please code the following. Its for the grandparents. Its a makelist with a number of series. Thanks.

Code:
https://n300.tv/d/series/TurkeySeries.aspx?mc=%D9%85%D8%B3%D9%84%D8%B3%D9%84%D8%A7%D8%AA-%D8%AA%D8%B1%D9%83%D9%8A%D8%A9-2020
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Try this:

LSP XML:
<item>
<title>مسلسلات تركية مترجمة مدبلجة 2020</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param3] [makelist.param4]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>https://n300.tv[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('(?s)inline-block.>.+?href.+?(\d+).+?src=[\'"]([^\'"]+).+?card-text.+?>([^<]+).+?>([^<]+)',page_data)
]]></expres>
<page>https://n300.tv/d/series/TurkeySeries.aspx?mc=%D9%85%D8%B3%D9%84%D8%B3%D9%84%D8%A7%D8%AA-%D8%AA%D8%B1%D9%83%D9%8A%D8%A9-2020</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[makelist.param3] [makelist2.param2]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://n300.tv[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url='https://n300.tv/series/ep/[makelist.param1]'
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','accept':'*/*'},cookies=Cookie_Jar).content
  return re.findall('(?s)text-center.+?href.+?(\d+).+?<b.+?>([^<]+)',re.findall('<table\s*id=.Content(?s)(.*?)</table',source)[0])
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,resolveurl
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://n300.tv/series/ep/[makelist2.param1]',headers={'user-agent':'Mozilla/5.0','accept':'*/*'},cookies=Cookie_Jar).content
  link=re.findall('class=.iframe_player.+?src=[\'"]([^\?\'"]+)',source)[0]
  if 'ok.ru' in source:
    return resolveurl.resolve(link)
  else:
    source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://n300.tv/series/ep/[makelist2.param1]','accept':'*/*'}).content
    return re.findall('player[\w\W]*?(?:source|src|file):(?:|\s*)[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer=%s'%link
]]></expres>
<page></page>
</regex>
</item>
 

Dwarfman

New member
Oct 31, 2020
3
0
1
sorry for the above...want the turkish series...it didnt paste properly because of arab writing
 

tungbeng95

Member
Oct 25, 2018
286
9
18
Can help me 2 codes.
HTML:
https://www.tvr.by/plugines/online-tv-main.php?channel=tv&chan_id=bt24
And:
HTML:
https://www.htatv.com/channel/7
So many thanks.
 

efradncr

Member
Mar 26, 2018
60
1
8
it seems to me that it has a static url
Code:
https:\u002F\u002Fcdn.hta.dz\u002Flive\u002FEL_DJAZAIRIA_TV\u002Fplaylist.m3u8
https://cdn.hta.dz/live/EL_DJAZAIRIA_TV/playlist.m3u8
 

gujal

Developer
Dec 26, 2013
472
243
43
Both need simple regex code, Enjoy!


LSP XML:
<item>
<title>BT 24</title>
<inputstream>$doregex[getUrl]</inputstream>
<regex>
<name>getUrl</name>
<expres>(?s)source\s*src="([^"]+)</expres>
<page>https://www.tvr.by/plugines/online-tv-main.php?channel=tv&amp;chan_id=bt24</page>
<referer>https://www.tvr.by/</referer>
</regex>
</item>

<item>
<title>HTA TV</title>
<inputstream>https://cdn.hta.dz/live/EL_DJAZAIRIA_TV/playlist.m3u8$doregex[getToken]</inputstream>
<regex>
<name>getToken</name>
<expres>(.*)</expres>
<page>https://token.kube.easybroadcast.fr/authtoken?url=http://apphta.easybroadcast.fr/apphta</page>
<referer>https://www.htatv.com/</referer>
</regex>
</item>
 
  • Like
Reactions: tungbeng95

juju

New member
Jul 6, 2016
23
2
3
please need help wit this page ,thanks for you help

Code:
hxxp://lawebderewind.ucoz.es/
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Try this:

LSP XML:
<item>
<title>http://lawebderewind.ucoz.es/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>http://lawebderewind.ucoz.es[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url='http://lawebderewind.ucoz.es/?page{}'
  headers={'user-agent':'Mozilla/5.0','referer':'http://lawebderewind.ucoz.es/','accept':'*/*'};data=[]
  for p in range(1,9):
    source=requests.get(url.format(p),headers=headers,cookies=Cookie_Jar).content.replace('&#39;','\'')
    gtitle=re.findall('(?s)short-images.+?title="([^"]+)',source)
    for t in gtitle:
       title=t.title()
       source=source.replace(t,title)
    data +=re.findall('(?s)short-images.+?href="([^"]+).\s*title="([^"]+).+?src="([^"]+)',re.findall('id="allEntries">(?s)(.*?)class="paging',source)[0])
  return data
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,xbmcgui,jsunpack,resolveurl
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('id=.nativeroll_video_cont(?s)(.*?)clearfix',page_data)[0]
  if 'lawebderewind.ucoz' in list:
     txt1="Apenas trailer do Youtube! - streamwatcher2013"
     txt2="[COLOR lime][B]A transmissão ao vivo não está disponível no momento![/B][/COLOR]"
     return xbmcgui.Dialog().ok(txt1,txt2)
  elif 'sendvid.com' in list:
     link=re.findall('opcion.+(?:SRC|src)=[\'"](.+?sendvid[^\'"]+)',list)[0];link='https:'+link if link.startswith('//') else link
     source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'http://lawebderewind.ucoz.es[makelist.param1]','accept':'*/*'}).content
     return re.findall('[\'"]og:video[\'"]\s*content=[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer=%s'%link
  elif 'vidia.tv' in list:
     link=re.findall('opcion.+(?:SRC|src)=[\'"](.+?vidia[^\'"]+)',list)[0];link='https:'+link if link.startswith('//') else link
     source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'http://lawebderewind.ucoz.es[makelist.param1]','accept':'*/*'}).content
     mp4=jsunpack.unpack(re.findall('(eval.*(?:m3u8|mp4).*)',source)[0])
     return re.findall('player[\w\W]*?file:\s*[\'"](.+?mp4)',mp4)[0]
  elif 'ok.ru' in list or 'mystream.to' in list or 'uptostream' in list:
     link=re.findall('tyle="display:none;"></div>.+(?:IFRAME|iframe).+?(?:SRC|src)=[\'"](.+?(?:ok.ru|mystream.to|uptostream)[^\'"]+)',list)[0];link='https:'+link if link.startswith('//') else link
     return resolveurl.resolve(link)
]]></expres>
<page>http://lawebderewind.ucoz.es[makelist.param1]</page>
</regex>
<thumbnail>http://lawebderewind.ucoz.es/images/logo.png</thumbnail>
</item>
 

juju

New member
Jul 6, 2016
23
2
3
the regex work perfect but when try open one movie no open ,maybe is my problem with my kodi o lsp please check the movies open ,thanks
 

tungbeng95

Member
Oct 25, 2018
286
9
18
Can help me this code final?
HTML:
https://www.euronews.com/api/watchlive.json
 

gujal

Developer
Dec 26, 2013
472
243
43
Enjoy!

LSP XML:
<item>
<title>EuroNews</title>
<link>$doregex[getUrl]|user-agent=iPad</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import requests
  headers = {'User-Agent': 'iPad'}
  url = 'https://www.euronews.com/api/watchlive.json'
  murl = 'http:' + requests.get(url, headers=headers).json().get('url')
  vidurl = requests.get(murl, headers=headers).json().get('primary')
  return vidurl
]]></expres>
<page></page>
</regex>
</item>
 
  • Love
Reactions: tungbeng95

Catmantx

New member
Nov 2, 2020
10
0
1
Hello, first, THANK YOU FOR ALL YOUR WORK!!!

Need help with a script pickup from here.

I am pulling a youtube playlist but I need the order to be backward. Last one to be first.

Here is the "code"

Code:
<item>

<title>Telejurnalul orei 20</title>

<thumbnail>https://m.media-amazon.com/images/M/MV5BN2Q5MjY5MDct[email protected]._V1_.jpg</thumbnail>

<link>$doregex[makelist]</link>

<regex>

<name>makelist</name>

<listrepeat><![CDATA[

<title>[COLOR gold][makelist.param1] [COLOR cyan]([makelist.param2])[/COLOR]</title>

<info>[makelist.param3]</info>

<urlsolve>https://www.youtube.com/watch?v=[makelist.param4]</urlsolve>

<thumbnail>[makelist.param5]</thumbnail>

]]></listrepeat>

<expres><![CDATA[#$pyFunction

def GetLSProData(page_data, Cookie_Jar, m, list='PLWRsR70qPhsE-rMNIV1SaBi_yfp9bN6mJ'):

  import requests

  headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0'}

  apiurl = 'https://www.youtube.com/list_ajax?style=json&action_get_list=1&list={0}&index={1}'

  index = 1

  events = []

  while True:

    page_data = requests.get(apiurl.format(list, index), headers=headers).json()

    items = page_data.get('video')

    index += 200

    for item in items:

      title = item.get('title')

      vid = item.get('encrypted_id')

      info = item.get('description')

      length = item.get('duration')

      thumb = item.get('thumbnail').replace('default', 'hqdefault')

      event = (title, length, info, vid, thumb)

      if event not in events:

        events.append(event)

    if len(events) % 200 != 0:

      return events

]]></expres>

<page></page>

</regex>

</item>


Thank you very much for all your help!!!
 
Last edited by a moderator:

altug

Member
Jul 7, 2016
68
2
8

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Try this:

LSP XML:
<item>
<title>https://www.sestv.pw/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://www.sestv.pw[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar, m, list='PLWRsR70qPhsE-rMNIV1SaBi_yfp9bN6mJ'):
  pn=re.findall('p/(\d+).\s*title="Son\s.+?>Son',page_data)[0]
  url='https://www.sestv.pw/p/{}'
  data=[]
  for p in range(1,int(pn)+1):
     source=requests.get(url.format(p),headers={'user-agent':'Mozilla/5.0'}).content
     data +=re.findall('li>\s*<a\s*href="([^"]+).\s*title="(.+?)Canl.+?src="(.+?/(\d+)\.[^"]+)',re.findall('(?:tv-list\s*tab-content|content\s*container)">(?s)(.*?)</ul',source)[0])
  return data
]]></expres>
<page>https://www.sestv.pw/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  link=re.findall('class="(?:player|embedUrl).+?[\'"](http.+?embed[^\'"]+)',page_data)[0]
  jdata=requests.post(link,headers={'user-agent':'Mozilla/5.0','referer':link,'x-requested-with':'XMLHttpRequest','accept':'*/*'},data={'e':'1','id':'[makelist.param4]'}).content[::-1]
  stream=re.findall('(.*)',jdata)[0]+'=='
  return stream.decode('base64')+'|user-agent=ipad&referer=%s'%link
]]></expres>
<page>https://www.sestv.pw[makelist.param1]</page>
<referer>https://www.sestv.pw/</referer>
</regex>
</item>
 
  • Like
Reactions: altug

umonkey

Member
Sep 18, 2012
70
0
6
@streamwatcher2013 any chance you could have another look at this for me?

Code:
<item>
<title>https://www.3donlinefilms.com/</title>
<thumbnail>https://www.3donlinefilms.com/Favicons/logo3.png</thumbnail>
<fanart>https://ideaexchange.org/sites/default/files/styles/original/public/iStock-506221782_0317_ADULT3dmovie.jpg</fanart>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>https://www.3donlinefilms.com/Favicons/logo3.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[href=[\'"](.*?genre[^\'"]+).+?>([^<]+)]]></expres>
<page>https://www.3donlinefilms.com/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[makelist2.param3]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://www.3donlinefilms.com/[makelist2.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
  if 'pageNum_Recordset' in page_data:
    mlist=re.findall('(?s)class="post".+?href="([^"]+).+?src="(.*?)"\s*title="(([^\s:="]+)[^"]+)',page_data)
    count=re.findall('"page gradient">(\d+)<.+\n.*\n.*</div',page_data)[0];pn=1;list=[]
    while pn <= int(count):
      pages='https://www.3donlinefilms.com/results.php?pageNum_Recordset1='+str(pn)+'&totalRows_Recordset1=145&search=&genre=[makelist.param2]';source=requests.get(pages).content
      list +=re.findall('(?s)class="post".+?href="([^"]+).+?src="(.*?)"\s*title="(([^\s:="]+)[^"]+)',source);pn +=1
    return mlist+list
  else:
    return re.findall('(?s)class="post".+?href="([^"]+).+?src="(.*?)"\s*title="(([^\s:="]+)[^"]+)',page_data)
]]></expres>
<page>https://www.3donlinefilms.com/[makelist.param1]</page>
<referer>https://www.3donlinefilms.com/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
  ref='[makelist2.param1]'.replace('player','playerf');url='[makelist2.param1]'.replace('3donlinefilms','freedocufilms')
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':ref,'accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'}).content
  murl=re.findall('"contentUrl".+?"(.*?)[makelist2.param4]',source)[0]
  if 'fileTV' in source:
     return murl+re.findall('fileTV:.+?[\'"]([^\'"]+)',source)[0]
  elif 'fileHD' in source:
     return murl+re.findall('fileHD:.+?[\'"]([^\'"]+)',source)[0]
  else:
     return murl+re.findall('file:.+?[\'"]([^\'"]+).}',source)[0]
]]></expres>
<page></page>
</regex>
</item>
Many thanks in advance
 

adriansyafiq

New member
Jan 3, 2016
27
2
3
hello experts..
need your pro help on this as I'm unable to get it to play..

Code:
https://sports24.club/tv/v?id=btsport1
Code:
https://uk-vm-dash3.live.horizon.tv/dash/HorizonGo/VM24/manifest.mpd$$lic=https://x.sports24.site/license/hor|A{SSM}|
 

efradncr

Member
Mar 26, 2018
60
1
8
Try this
Code:
<item>
<title>Bt1</title><link>$doregex[GetLink]|User-agent=ipad&amp;Referer=https://08sportbar.net</link>
<regex>
<name>GetLink</name>
<expres>var videoLink = [\'"](.*?)[\'"]</expres>
<page>https://08sportbar.net/btuk1.html</page>
</regex>
<thumbnail>http://www.canlisportv.com/Core/img/home_logo.png</thumbnail>
<fanart>http://www.canlisportv.com/Core/img/home_logo.png</fanart>
</item>
 

gujal

Developer
Dec 26, 2013
472
243
43
Enjoy!

LSP XML:
<item>
  <title>BT Sport 1</title>
  <inputstream>https://uk-vm-dash3.live.horizon.tv/dash/HorizonGo/VM24/manifest.mpd$$lic=https://x.sports24.site/license/hor|User-Agent=Mozilla/5.0&amp;Referer=https://sports24.club/&amp;Content-Type= |R{SSM}|</inputstream>
</item>
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5