LSP Regex & Makelist Discussion.

gladio

New member
Oct 14, 2018
23
3
3
Per favore aiutami per il sito e grazie
Code:
https://streamtest.in/logs/search
 

m5Germany

Active member
Mar 20, 2014
310
98
28
IMHO the site is not worth coding. The streams that are (Green Button "Detail") in most cases are not static m3u8's.
And I have looked at site periodically for over a 6 hr time-frame. Then, more than not, most do not have Titles.
If you find a stream which is static, you can use the following. Just paste the m3u8/mp4 to between the <link></link> tags.
Example:
LSP3 XML:
<item>
<title>Türkmenistan Sport | streamtest.in | m3u8 Tester</title>
<link>http://217.174.225.146/hls/ch004_720/index.m3u8</link>
</item>
 
  • Like
Reactions: gladio

Catmantx

Member
Nov 2, 2020
67
3
8
Can someone take a look, please?
Something changed yesterday on Utube.
It is pulling the lists fine just doesn't want to play anything.

HTML:
<item>
<title>[COLOR yellow]Sky News Australia[/COLOR]  [COLOR red][B]  [YT][/B][/COLOR]  [Latest]</title>
<thumbnail>https://yt3.ggpht.com/a/AATXAJycFSnTJaiKoFF4Vl4MbkE6ezfcU6g9L_NSPFNDsg=s88-c-k-c0x00ffffff-no-rj</thumbnail>
<fanart>https://s3.amazonaws.com/media.muckrack.com/groups/icons/skynews-1.jpeg</fanart>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR cyan]([makelist.param2])[COLOR gold][makelist.param1][/COLOR]</title>
  <info>Sky News Australia [makelist.param2]</info>
  <utube>[makelist.param3]</utube>
  <thumbnail>https://i.ytimg.com/vi/[makelist.param3]/hqdefault.jpg</thumbnail>
  <fanart></fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data,Cookie_Jar,m):
  page_data=urllib.urlopen('https://www.youtube.com/playlist?list=UUO0akufu9MOzyz3nvGIXAAw').read()
  jdata=re.findall('"sectionListRenderer":{"contents"(?s)(.*?)id="container"',page_data)[0].replace('\u0026','&').replace('\\','')
  YTid=re.findall('"playlistVideoRenderer":{"videoId":"([^"]+)',jdata)
  title=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?"accessibilityData":{"label":"(.+?)\sby',jdata)
  duration=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?},"simpleText":"([^"]+)',jdata)
  return zip(title,duration,YTid)
]]></expres>
<page></page>
</regex>
</item>
 

adrianhn

New member
Mar 20, 2014
27
5
3
hi mates .

some help with
hxxps://sportsonline.to/channels/hd/hd2.php

suddenly stop to work
thks for advance.
 

m5Germany

Active member
Mar 20, 2014
310
98
28
LSP3 XML:
Channels checked/tested Kodi 18.5 & 19 w/LSPro3
https://sportsonline.to/channels/hd/hd2.php
https://sportsonline.to/channels/pt/sporttv2.php
https://sportsonline.to/channels/bra/br4.php
https://sportsonline.to/channels/hd/hd5.php

<item>
  <title>hd2 | sportsonline.to</title>
  <fanart>https://techraver.com/wp-content/uploads/2019/01/1-28.jpg</fanart>
  <thumbnail>https://spidermesh.com.bd/wp-content/uploads/2019/06/LiveSports-1.jpg</thumbnail>
  <link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Accept=*/*&amp;Origin=https://62e92xw6fe7pwx.worlwidestream.net&amp;Referer=https://62e92xw6fe7pwx.worlwidestream.net/</link>
  <regex>
    <name>m5</name>
    <expres>var\s*src\s*=\s*"([^"]+)</expres>
    <page>$doregex[m4]</page>
    <connection>keep-alive</connection>
    <agent>Mozilla/5.0</agent>
    <accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</accept>
    <referer>https://sportsonline.to/</referer>
  </regex>
  <regex>
    <name>m4</name>
    <expres>$pyFunction:get_unpacked(page_data,'(eval.*m3u8.*)')</expres>
    <page>$doregex[m3]</page>
    <connection>keep-alive</connection>
    <agent>Mozilla/5.0</agent>
    <accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</accept>
    <referer>https://sportsonline.to/</referer>
  </regex>
  <regex>
    <name>m3</name>
    <expres><![CDATA[-><iframe\s*src="([^"]+)]]></expres>
    <page>https://sportsonline.to/channels/hd/hd2.php|Upgrade-Insecure-Requests=1</page>
    <connection>keep-alive</connection>
    <agent>Mozilla/5.0</agent>
    <accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</accept>
    <referer>https://sportsonline.to/</referer>
  </regex>
</item>
 

Doom

Member
Sep 16, 2019
318
21
18
@streamwatcher2013 Can i get a fix stopped working & thanks!
LSP XML:
<item>
<title>http://p2pstreams.live</title>
<thumbnail></thumbnail>
<fanart></fanart>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold] [makelist.param2][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail></thumbnail>
  <fanart></fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('class="takoheddo".+?Upcoming Schedule</span>(?s)(.*?)</section',page_data)[0]
  return re.findall('class="takoheddo".+?Upcoming Schedule</span>|class="takos".+?href.+?live/(?!Upcoming)([^"]+).+?<span>([^<]+)',list)
]]></expres>
<page>https://p2pstreams.live/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR white][makelist2.param1][/COLOR][COLOR gold]  [makelist2.param3][/COLOR][COLOR blue]  [makelist2.param4][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail></thumbnail>
 <fanart></fanart>
]]></listrepeat>
<expres><![CDATA[<h3><strong>([^<]+)</strong></h3>\s*<div|class="takos".+?href="([^"]+).+?>([^<]+)</span.+?value="([^"]+)]]></expres>
<page>https://p2pstreams.live/[makelist.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('"embed-responsive.+?src=[]\'"]([^\'"]+)',page_data)[0];ref=re.findall('(.+?)embed',url)[0]
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'http://p2pstreams.live/','accept':'*/*'}).text.replace('\\','')
  pUrl=re.findall('source:\s*([^\(]+)',source)[0]
  html,gtok1,gtok2=re.findall('(?s)function\s*%s.+?\[([^\]]+).+?\+\s*([^\.]+).+?"(\w[^"]+)'%pUrl,source)[0]
  html=''.join(eval(html))
  tok1=re.findall('%s.+?\[("[^\]]+)'%gtok1,source)[0];tok1=''.join(eval(tok1))
  tok2=re.findall('%s>([^<]+)'%gtok2,source)[0]
  return '%s%s%s|user-agent=ipad&referer=%s'%(html,tok1,tok2,ref)
]]></expres>
<page>[makelist2.param2]</page>
</regex>
</item>
</items>
 

undpnd tqucbo

Member
Jan 25, 2021
139
2
18

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
I don't think I can get the code done. It get the device's id from some where to post. You can try this with , sometime it work for once and error.

LSP XML:
<item>
<title>https://allplay.uz/c/93 - LUX TV</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  source=requests.post('https://api.allplay.uz/api/v1/login',headers={'user-agent':'Mozilla/5.0','host':'api.allplay.uz','origin':'https://allplay.uz','referer':'https://allplay.uz/','accept':'application/json'},data={'email':'[email protected]','password':'kyhoang64'}).text  #,'device_id':'2ij0fx34m0zph3b'
  tok=re.findall('"api_token":"([^"]+)',source)[0]
  source=requests.get('https://api.allplay.uz/api/v1/iptv/channel/play/93',headers={'user-agent':'Mozilla/5.0','host':'api.allplay.uz','origin':'https://allplay.uz','referer':'https://allplay.uz/','accept':'application/json','authorization':'bearer {0}'.format(tok)}).text.replace('\\','')
  return re.findall('"url":"([^"]+)',source)[0]
]]></expres>
<page>https://allplay.uz/c/93</page>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
310
98
28
Let me preface:
I briefly looked at streamwatcher2013s' Code when it was written/working and have used that as a template and adapted it from there. #1405
Here's what I see.
From what makes sense to me is that they switched to
Info:
https://api.allplay.uz/api/v1/iptv/channels
 
          "data" below Truncated
 
{"data":[{"id":172,"num":118,"name":"Dasturxon-TV","input_quality":"sd","is_free":true,"fav":false,"required_services":[3,13,14,9,25,16],"is_payment_required":false,"score":0.0006666666666666666,"slug":"dasturxon-tv","icon":{"id":43143,"url_34x34":"https:\/\/i.allplay.uz\/i\/43143\/eyJ3IjozNCwiaCI6MzQsImMiOnRydWV9\/image.jpg?t=mYf6Vmb3w28yHuPI562glQ","url_100x100":"https:\/\/i.allplay.uz\/i\/43143\/eyJ3IjoxMDAsImgiOjEwMCwiYyI6dHJ1ZX0\/image.jpg?t=5ziUroVOWcohlW09DBDhTQ","url_250x250":"https:\/\/i.allplay.uz\/i\/43143\/eyJ3IjoyNTAsImgiOjI1MCwiYyI6dHJ1ZX0\/image.jpg?t=o_mEyr29q45JUEm0d_EJJg","url_500x500":"https:\/\/i.allplay.uz\/i\/43143\/eyJ3Ijo1MDAsImgiOjUwMCwiYyI6dHJ1ZX0\/image.jpg?t=1dJkLb3y9yCtUfmPrDhYyg"},"categories":[{"id":2,"name":"\u0423\u0437\u0431\u0435\u043a\u0441\u043a\u0438\u0435","num":7},{"id":8,"name":"\u041f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435","num":4}]},{"id":81,"num":119,"name":"ZOR TV HD","input_quality":"fullhd","is_free":true,"fav":false,"required_services":[3,13,14,9,25,16],"is_payment_required":false,"score":0.006333333333333333,"slug":"zor-tv-hd","icon":{"id":32700,"url_34x34":"https:\/\/i.allplay.uz\/i\/32700\/eyJ3IjozNCwiaCI6MzQsImMiOnRydWV9\/image.jpg?t=49b8ryYnylBKJyB-jX7JDw","url_100x100":"https:\/\/i.allplay.uz\/i\/32700\/eyJ3IjoxMDAsImgiOjEwMCwiYyI6dHJ1ZX0\/image.jpg?t=mPrTRExpMf4zAG4V4C45tw","url_250x250":"https:\/\/i.allplay.uz\/i\/32700\/eyJ3IjoyNTAsImgiOjI1MCwiYyI6dHJ1ZX0\/image.jpg?t=ZhPLnRePYi6P_Ww1OimjPA","url_500x500":"https:\/\/i.allplay.uz\/i\/32700\/eyJ3Ijo1MDAsImgiOjUwMCwiYyI6dHJ1ZX0\/image.jpg?t=QUjP2TsQ10Xc1BnGbJQjXA"},"categories":

Parsed and replced original 

"id":(\d+).+?"name":"([^"]+).+?"slug":"([^"]+).+?"url_500x500":"([^"]+)
to
icon":{"id":(\d+).*?"name":"(?!\\|Dasturxon-TV)([^"]+).*?is_free.*?slug":"([^"]+)

Made changes to [makelist.param#] where indicated

Not getting the results expected. Not sure if it also has to do with

<name>logtok</name>
<expres><![CDATA[csrfToken:\s*[\'"]([^\'"]+)]]></expres>
<page>https://allplay.uz/login</page>
<referer>https://allplay.uz/c/93/luxtv</referer>
</regex>
 

m5Germany

Active member
Mar 20, 2014
310
98
28
Please disregard reference to #1405 above - incorrect reference I meant thus:
LSP3 XML:
<item>
<title>https://allplay.uz/c/93/luxtv</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param4]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://allplay.uz/channel/list',headers={'user-agent':'Mozilla/5.0','referer':'https://allplay.uz/','x-requested-with':'XMLHttpRequest'}).text.replace('\\','')
  return re.findall('"id":(\d+).+?"name":"([^"]+).+?"slug":"([^"]+).+?"url_500x500":"([^"]+)',source)
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('"url":"([^"]+)',page_data)[0].replace('\\','')+'|user-agent=ipad&referer=https://allplay.uz/c/[makelist.param1]/[makelist.param3]'
]]></expres>
<page>https://allplay.uz/channel/play/[makelist.param1]</page>
<referer>https://allplay.uz/c/[makelist.param1]/[makelist.param3]</referer>
<x-req>XMLHttpRequest</x-req>
<accept>*/*</accept>
<cookieJar>$doregex[getLogin]</cookieJar>
</regex>
<regex>
<name>getLogin</name>
<expres></expres>
<page>https://allplay.uz/login</page>
<referer>https://allplay.uz/login</referer>
<rawpost>_token=$doregex[logtok]&amp;email=hoanganhkyc2hlbn%40bacninh.edu.vn&amp;password=kyhoang64</rawpost>
<cookieJar></cookieJar>
</regex>
<regex>
<name>logtok</name>
<expres><![CDATA[csrfToken:\s*[\'"]([^\'"]+)]]></expres>
<page>https://allplay.uz/login</page>
<referer>https://allplay.uz/c/93/luxtv</referer>
</regex>
</item>
 
  • Like
Reactions: undpnd tqucbo

Catmantx

Member
Nov 2, 2020
67
3
8
Hello,
Can someone help me with this?
Hxxps://filme24.club/tv-live/?url=pro-tv


Tried this and did not worked:
HTML:
<item>
<title>[COLOR yellow][B]HBO[/B][/COLOR]   [COLOR green][B][LIVE][/B][/COLOR]</title>
<link>https://srv.tvhd-online.com:2083/live/7ejDMeEkQE/bqwuq2hSaU/40.m3u8|User-Agent=Mozilla/5.0&amp;Referer=https://filme24.club/</link>
<thumbnail>https://i.ibb.co/bX5zrfH/HBO.png</thumbnail>
</item>
:
 

Catmantx

Member
Nov 2, 2020
67
3
8
@m5Germany doesn't work. It looks like it is passing a token.
This link works but I would like to grab the token.

Code:
https://lb4.tvhd-online.com:8443/live/7ejDMEekQE/bqwuq2hSaU/40.m3u8?token=HkZdBxZQQAIXVVAAXAJVUgNQUQABBFQFXVcIUg0EBgBSXA0FUgBaDgwUTxMWEhYAB1toDVxAWAAIHRsWS1VGaQwAF1xHCUAUF0IKXABEXlVKFEcNXEBYFgoDAFAIEhgUABxBAxdWA1RqUgZHDAUBR1xYQghUTkBbVm5dBlVRWlJHXhdWRxRAUUZGQQtHJQsIBVdEEBghA1ZUVBkgV11ZQwsNVgcRUQ1WRhYvfSZESEcEX0MWWRYHFgITCloPAxYaRwdaEwtMEEEXDEFkNkRIRwNOQwFWEQtbVhMDQVUDQQ5HSBcPFmcQXUZCEVQECwEXRAwVVBpOQFlZSWYAV15aUwYQXAkLS0ACFwZBHUcLCwsPQlgWZxILUBoLG1EICA0GRxk=
 

efradncr

Member
Mar 26, 2018
62
1
8
Can you help me with a regex for this channel? I tried with a code posted above but it doesn't run
Code:
hxxps://iframe.dacast.com/b/172853/c/551036
 

m5Germany

Active member
Mar 20, 2014
310
98
28
LSP3 XML:
<item>
  <title>https://iframe.dacast.com/b/172853/c/551036</title>
  <fanart></fanart>
  <thumbnail></thumbnail>
  <link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Accept=*/*&amp;Origin=https://iframe.dacast.com&amp;Referer=https://iframe.dacast.com/</link>
  <regex>
    <name>m5</name>
    <expres>hls":"([^"]+)</expres>
    <page><![CDATA[https://playback.dacast.com/content/access?contentId=$doregex[m4]&provider=universe]]></page>
    <connection>keep-alive</connection>
    <agent>Mozilla/5.0</agent>
    <accept>application/json,text/plain,*/*</accept>
    <referer>https://iframe.dacast.com/</referer>
  </regex>
  <regex>
    <name>m4</name>
    <expres>script\s*id="([^"]+)</expres>
    <page>https://iframe.dacast.com/b/172853/c/551036|Upgrade-Insecure-Requests=1</page>
    <connection>keep-alive</connection>
    <agent>Mozilla/5.0</agent>
    <accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</accept>
    <referer>https://iframe.dacast.com/</referer>
  </regex>
</item>
 

nkt9911

Member
May 22, 2021
31
0
6
USA
Can do i get help?
Code:
https://m.andorradifusio.ad/endirecte/atv
 

m5Germany

Active member
Mar 20, 2014
310
98
28
LSP3 XML:
<item>
  <title>https://m.andorradifusio.ad/endirecte/atv</title>
  <fanart>https://ohcbrands.com/wp-content/uploads/2018/05/black-background.jpg</fanart>
  <thumbnail>https://www.andorradifusio.ad/images/logo/andorradifusio_mobil_logo_22122020093710.png</thumbnail>
  <link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Accept=*/*&amp;Origin=https://m.andorradifusio.ad&amp;Referer=https://m.andorradifusio.ad/&amp;verifypeer=false</link>
    <regex>
      <name>m5</name>
      <expres><![CDATA[$pyFunction:'$doregex[m4]'.replace('&amp;','&')]]></expres>
      <page></page>
      <connection>keep-alive</connection>
      <agent>Mozilla/5.0</agent>
      <accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</accept>
      <referer>https://m.andorradifusio.ad/</referer>
    </regex>
    <regex>
      <name>m4</name>
      <expres>var\s*urlx\s*=\s*"([^"]+)</expres>
      <page>https://m.andorradifusio.ad/endirecte/atv</page>
      <connection>keep-alive</connection>
      <agent>Mozilla/5.0</agent>
      <accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</accept>
      <referer>https://m.andorradifusio.ad/</referer>
    </regex>
</item>
 
  • Like
Reactions: nkt9911

undpnd tqucbo

Member
Jan 25, 2021
139
2
18
@m5Germany can you help me for site & tk!
Code:
https://uzon.tv/online-tv/public/208-luxtv-4k.html
 

m5Germany

Active member
Mar 20, 2014
310
98
28
LSP3 XML:
<item>
  <title>https://uzon.tv/online-tv/public/208-luxtv-4k.html</title>
  <fanart>https://ohcbrands.com/wp-content/uploads/2018/05/black-background.jpg</fanart>
  <thumbnail>https://uzon.tv/uploads/posts/2021-04/lux_tv.jpg</thumbnail>
  <link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Accept=*/*&amp;Origin=https://uzon.tv&amp;Referer=https://uzon.tv/</link>
    <regex>
      <name>m5</name>
      <expres>html\?file=([^"]+)</expres>
      <page>https://uzon.tv/online-tv/public/208-luxtv-4k.html|Upgrade-Insecure-Requests=1</page>
      <connection>keep-alive</connection>
      <agent>Mozilla/5.0</agent>
      <accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</accept>
      <referer>https://uzon.tv/</referer>
    </regex>
</item>
 
  • Like
Reactions: undpnd tqucbo

posadka

New member
Jun 10, 2021
14
10
3
Code:
<item>
<title>OVOSTREAM BOXING</title>
<link>$doregex[schedule]</link>
<regex>
<name>schedule</name>
<listrepeat><![CDATA[
<title>[schedule.param2] [schedule.param3]</title>
<link>$doregex[play]</link>
        <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = ''):
    import re
    e = re.findall('<a href="([^"]*)(?:[^>]*)>(?:[^>]*)>(?:[^>]*)>(?:[^>]*)>(?:[^>]*)>(?:[^>]*)>(?:[^>]*)>([^<]*)(?:[^>]*)>(?:[^>]*)>(?:[^>]*)>(?:[^>]*)>(?:[^>]*)>(?:[^>]*)>(?:[^>]*)>(?:[^>]*)>([^<]*)', page_data)
    s = [('http://www.ovostreams.com'+i[0],i[1],i[2]) for i in e]
    return s
]]></expres>
<page>http://www.ovostreams.com/boxingstreams.php</page>
</regex>
<regex>
<name>play</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = '[schedule.param1]'):
    import re
    t = re.findall('var source =\s*\'([^\']*)', page_data)[0]
    return t + '|user-agent=ipad&referer=' + url
]]></expres>
<page>[schedule.param1]</page>
</regex>
</item>
 
  • Happy
Reactions: Doom

Doom

Member
Sep 16, 2019
318
21
18
Can i get help for a makelist and thanks!🙂
hxxp://p2pstreams.live/mma-streams/
 

posadka

New member
Jun 10, 2021
14
10
3
Adapted from gujal code

Code:
<item>
<title>p2p mma</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
    <title>[makelist.param1] [makelist.param3] [makelist.param4]</title>
    <link>$doregex[player]</link>
    <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = ''):
    import re
    r = re.findall('none"><h3><strong>([^<]*)|(?s)none">\s*<a href="([^"]*).*?span c(?:[^>]*)>([^<]*).*?value="([^"]*)',page_data)
    return r
]]></expres>
<page>http://p2pstreams.live/mma-streams/</page>
</regex>
<regex>
<name>player</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = '[makelist.param2]'):
    import re,requests
    headers = {'User-Agent': 'iPad', 'Referer': 'http://livestr.xyz'}
    u = requests.get(url).text
    r = re.findall('<iframe class.*?src="([^"]*)',u)[0]
    page_data = requests.get(r, headers=headers).text
    pattern = r'''return\(\[([^\]]+).+?\+\s*([^\.]+).+?\+.+?"([^"]+)'''.format(page_data)
    par1, par2, par3 = re.findall(pattern, page_data, re.DOTALL)[0]
    part2 = re.findall(r'var\s*{0}\s*=\s*\["([^]]+)'.format(par2), page_data)[0].replace('","', '')[:-1]
    part3 = re.findall('id={0}>([^<]+)'.format(par3), page_data)[0]
    part1 = par1.replace('","','').replace('\\/', '/')[1:-1]
    return 'http:' + part1 + part2 + part3 + '|User-Agent=iPad&Referer=' + r
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: Doom

m5Germany

Active member
Mar 20, 2014
310
98
28
I've tried the Code on 18.5 & 19 w/LSPro3. "On my system", it does't seem to work, get errors? Not sure why?
Could be site doesn't like my IP. Would like to know if Code works on another members box.
If it does, then there is a problem on my side and I'll try to hunt that down.
Oh, I did change the page to http://p2pstreams.live/soccer-streams/ as there are Live Games now. m5
 

m5Germany

Active member
Mar 20, 2014
310
98
28
Thanks: Wondering, would a different Member Test it on a Windows Box?
Trying to narrow down whether it's unique to me. I do get error code 224003 when access web site some times.
Want to verify/isolate error to my box. If someone w/ a Windows box has fixed error, Please advise. m5

Info:
The error code 224003 is a prominent issue that users face while playing a video on a browser like Safari,
Chrome, or Firefox. In this, the video content doesn't load and is blocked instead due to different reasons.
I do not understand; does Kodi/LSPro3 act like Chrome?
 

m5Germany

Active member
Mar 20, 2014
310
98
28
Also: This video file cannot be played.
(Error Code: 232404)
Use Different Video Player.
Sometimes the "Error loading media: File could not be played" or "Error code 232404"
error arise due to unsupported video format.
Anything?
 

posadka

New member
Jun 10, 2021
14
10
3
Slight change

Code:
<item>
<title>p2p mma</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
    <title>[makelist.param1] [makelist.param3] [makelist.param4]</title>
    <link>$doregex[player]</link>
    <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = ''):
    import re
    r = re.findall('none"><h3><strong>([^<]*)|(?s)none">\s*<a href="([^"]*).*?span c(?:[^>]*)>([^<]*).*?value="([^"]*)',page_data)
    return r
]]></expres>
<page>http://p2pstreams.live/mma-streams/</page>
</regex>
<regex>
<name>player</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = '[makelist.param2]'):
    import re,requests
    headers = {'User-Agent': 'iPad', 'Referer': 'http://livestr.xyz'}
    u = requests.get(url).text
    r = re.findall('<iframe class.*?src="([^"]*)',u)[0]
    page_data = requests.get(r, headers=headers).text
    pattern = r'''return\(\[([^\]]+).+?\+\s*([^\.]+).+?\+.+?"([^"]+)'''.format(page_data)
    par1, par2, par3 = re.findall(pattern, page_data, re.DOTALL)[0]
    part2 = re.findall(r'var\s*{0}\s*=\s*\["([^]]+)'.format(par2), page_data)[0].replace('","', '')[:-1]
    part3 = re.findall('id={0}>([^<]+)'.format(par3), page_data)[0]
    part1 = par1.replace('","','').replace('\\/', '/')[1:-1]
    part1 = 'http:' + part1 if part1.startswith('//') else part1
    return part1 + part2 + part3 + '|User-Agent=iPad&Referer=' + r
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: Doom

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
Don't give up. Right now it's soccer time. You can try mine

LSP XML:
<item>
<title>https://p2pstreams.live/ - Soccer</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR lime][makelist.param3] ET  -  [COLOR gold]  [makelist.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  gtime=re.findall('class="soccer.+?(\d+:\d+)',page_data)
  for t in gtime:
    localtime = int(t[:-3]) - 10  # My is Eastern Time Zone
    if localtime > 24:
       localtime -= 24
    if localtime < 1:
       localtime += 24
    lctime = str(localtime)+t[2:]
    lctime = lctime.zfill(5)   #  insure the var time is 5 spaces by adding leading zero
    page_data=page_data.replace(t, lctime)
  return re.findall('class="takos".+?href="([^"]+).+?class="socce.+?>([^<]+).+?(\d+:\d+)',page_data)[0]
]]></expres>
<page>http://p2pstreams.live/soccer-streams/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('"embed-responsive.+?src=[\'"]([^\'"]+)',page_data)[0]
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'http://p2pstreams.live/soccer-streams/','accept':'*/*'}).text.replace('\\','')
  html,gtok1,gtok2=re.findall('return.\[([^\]]+).+?\+\s([^\.]+).+?Id."([^"]+)',source)[0]
  html=''.join(eval(html));html='http:'+html if html.startswith('//') else html
  tok1=re.findall('%s.+?\[("[^\]]+)'%gtok1,source)[0];tok1=''.join(eval(tok1))
  tok2=re.findall('%s>([^<]+)'%gtok2,source)[0]
  return '%s%s%s|user-agent=Mozilla/5.0&origin=http://p2pstreams.live&referer=http://p2pstreams.live/'%(html,tok1,tok2)
]]></expres>
<page>[makelist.param1]</page>
</regex>
</item>
 
  • Like
Reactions: Doom and m5Germany

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
@m5Germany

little mistake. My bad

LSP XML:
replace this

return re.findall('class="takos".+?href="([^"]+).+?class="socce.+?>([^<]+).+?(\d+:\d+)',page_data)[0]

without [0]

return re.findall('class="takos".+?href="([^"]+).+?class="socce.+?>([^<]+).+?(\d+:\d+)',page_data
 
  • Like
Reactions: Doom

m5Germany

Active member
Mar 20, 2014
310
98
28
streamwatcher2013, Awesome - I also appreciate the ET time shift. Exactly what I was looking for.
Did have to Change:

d+)',page_data
to
d+)',page_data)

But I knew what you meant. Can't write Python but can read it - sort of.
Thank you very much, m5
 

m5Germany

Active member
Mar 20, 2014
310
98
28
Change
return re.findall('class="takos".+?href="([^"]+).+?class="socce.+?>([^<]+).+?(\d+:\d+)',page_data
To
return re.findall('class="takos".+?href="([^"]+).+?class.+?\d">([^<]+).+?(\d+:\d+)',page_data)
 
  • Like
Reactions: Doom

m5Germany

Active member
Mar 20, 2014
310
98
28
Can the Time localtime = int(t[:-3]) be written to reflect EST using the GMT+#
Meaning, 19:00 GMT+0 is different than 19:00 GMT-5
value="July 18, 2021 19:00:00 GMT+0
value="September 7, 2021 06:00:00 GMT+6
value="September 10, 2021 12:00:00 GMT-5
Thanks. m5
 

undpnd tqucbo

Member
Jan 25, 2021
139
2
18
Can i get help a site & tk!
Code:
https://tas-ix.tv/tv-tasix/64-futbol-tv.html
 

m5Germany

Active member
Mar 20, 2014
310
98
28
LSP3 XML:
https://tas-ix.tv/tv-tasix/64-futbol-tv.html
https://tas-ix.tv/tv-tasix/6-uzreport-tv.html
https://tas-ix.tv/tv-tasix/72-sport-uzbekistan.html
https://tas-ix.tv/tv_tasix/52-match-futbol-1.html

<item>
 <title>https://tas-ix.tv/tv-tasix/64-futbol-tv.html</title>
 <fanart>https://static-s.aa-cdn.net/img/gp/20600014746326/Y_F0uP4-G0oqU3lAVw3yW5DD7t0PhOJjI18V4LvAgRwj8mCGgvW_hBqRYM8ctdUccJs=s300?v=1</fanart>
 <thumbnail>https://tas-ix.tv/uploads/posts/2018-04/1524334316_d.jpg</thumbnail>
 <link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Accept=*/*&amp;Origin=https://tasix.online&amp;Referer=https://tasix.online/</link>
   <regex>
    <name>m5</name>
    <expres><![CDATA[$pyFunction:'$doregex[m4]'.replace('%26','&')]]></expres>
    <page />
  </regex>
  <regex>
    <name>m4</name>
    <expres>file=([^"]+).*?iframe</expres>
    <page>https://tas-ix.tv/tv-tasix/64-futbol-tv.html|Upgrade-Insecure-Requests=1</page>
    <connection>keep-alive</connection>
    <agent>Mozilla/5.0</agent>
    <accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</accept>
    <referer>https://tasix.online/</referer>
  </regex>
</item>
 
  • Like
Reactions: undpnd tqucbo

vbprofi

Member
Feb 9, 2016
82
3
8
Hello dear friends,
I have a problem with playing video from medyahaber.info. I extract the video-url from here:
Code:
https://medyahaber.info/ozel-program-07-09-2021/
and will play this for example:
Code:
<item>
<title>test</title>
<link>https://medyahaber.info/video/023_OZEL_PROGRAM_07.09.2021.mp4</link>
</item>
Error log:
Code:
2021-09-08 06:48:07.102 T:5268   ERROR: CCurlFile::FillBuffer - Failed: Requested range was not delivered by the server(33)
2021-09-08 06:48:07.102 T:5268    INFO: CFileCache::Process - Source read didn't return any data! Hit eof(?)
2021-09-08 06:48:07.154 T:8304   DEBUG: ffmpeg[2070]: [mov,mp4,m4a,3gp,3g2,mj2] reached eof, corrupted STSD atom
2021-09-08 06:48:07.154 T:8304   ERROR: ffmpeg[2070]: [mov,mp4,m4a,3gp,3g2,mj2] error reading header
2021-09-08 06:48:07.154 T:8304   ERROR: CDVDDemuxFFmpeg::Open - Error, could not open file https://medyahaber.info/video/023_OZEL_PROGRAM_07.09.2021.mp4
2021-09-08 06:48:07.154 T:8304   ERROR: CVideoPlayer::OpenDemuxStream - Error creating demuxer
2021-09-08 06:48:07.154 T:8304  NOTICE: CVideoPlayer::OnExit()
have someone an idea what the problem is?
 

m5Germany

Active member
Mar 20, 2014
310
98
28
LSP3 XML:
Try this: it works here.

<item>
<title>test</title>
<link>https://medyahaber.info/video/023_OZEL_PROGRAM_07.09.2021.mp4|User-Agent=Mozilla/5.0&amp;Accept=*/*&amp;Origin=https://medyahaber.info&amp;Referer=https://medyahaber.info/</link>
</item>
 

vbprofi

Member
Feb 9, 2016
82
3
8
@m5Germany
your solution don't work here. view error log:
Code:
2021-09-08 16:42:55.867 T:10324 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.live.streamspro/?url=https%3A%2F%2Fmedyahaber.info%2Fvideo%2F023_OZEL_PROGRAM_07.09.2021.mp4%7CUser-Agent%3DMozilla%2F5.0amp%3BAccept%3D%2A%2F%2Aamp%3BOrigin%3Dhttps%3A%2F%2Fmedyahaber.infoamp%3BReferer%3Dhttps%3A%2F%2Fmedyahaber.info%2F&mode=12
2021-09-08 16:42:55.867 T:10324   ERROR: InputStream: Error opening, plugin://plugin.video.live.streamspro/?url=https%3A%2F%2Fmedyahaber.info%2Fvideo%2F023_OZEL_PROGRAM_07.09.2021.mp4%7CUser-Agent%3DMozilla%2F5.0amp%3BAccept%3D%2A%2F%2Aamp%3BOrigin%3Dhttps%3A%2F%2Fmedyahaber.infoamp%3BReferer%3Dhttps%3A%2F%2Fmedyahaber.info%2F&mode=12
My System:
Code:
Kodi (18.9 (18.9.0) Git:20201023-0655c2c718).
Platform: Windows NT x86 64-bit
FFmpeg version/source: 4.0.4-Kodi
@streamwatcher2013
I do not understand that. the VLC player plays the video without any problems. What's wrong with the Kodi or ffmpeg?
 

m5Germany

Active member
Mar 20, 2014
310
98
28
Stopped working here also. I think streamwatcher2013 is correct.

ERROR <general>: CCurlFile::FillBuffer - Failed: Requested range was not delivered by the server(33)
 

gujal

Developer
Dec 26, 2013
574
319
63
VLC will play any junk you throw at it as it is designed to play broken fragments
Kodi FFMPEG needs to get the seek information without which it wont play, the site is deliberately hiding the last byte to not give that info.

When you play in VLC, try skipping the video to say 3 minutes ahead and see if VLC can do that.
 

skyhigh

Member
Jan 11, 2015
62
1
8
Can this old password regex be made to work with L$P3 please and thanks.

Code:
<item>
<title>Password protected  - Big Buck Bunny (password = test)</title>
<link>$doregex[getinput]</link>

<regex>
<name>getinput</name>

<expres><![CDATA[#$pyFunction
import xbmcgui,xbmc, xbmcaddon, time

def GetLSProData(page_data,Cookie_Jar,m,txt='Enter Password?'):
    addon = xbmcaddon.Addon('plugin.video.live.streamspro')
    addon_version = addon.getAddonInfo('version')
    profile = xbmc.translatePath(addon.getAddonInfo('profile').decode('utf-8'))

    solver = InputWindow( txt=txt)
    solution = solver.get()
    if solution == 'test':
        return play()
    else:
        return ''

class InputWindow(xbmcgui.WindowDialog):
    def __init__(self, *args, **kwargs):

        self.txt = kwargs.get('txt','')

        xbmcgui.WindowXMLDialog.__init__(self)
        #self.addControl(self.txt)
        path = xbmcaddon.Addon().getAddonInfo('path')
        self.kbd = xbmc.Keyboard()
        self.kbd.setHeading( self.txt)

    def get(self):
        self.show()
        time.sleep(2)
        self.kbd.doModal()
        if (self.kbd.isConfirmed()):
            text = self.kbd.getText()
            self.close()
            return text
        self.close()
        return False

def play():
    return 'http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4'
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: JonnyB

m5Germany

Active member
Mar 20, 2014
310
98
28
Greetings, Would like to use "cfscrape" for the following example. Couple of things:
In Code below (Adapted from posadka Paste: #1,388)
1: By importing "cfscrape" from "resources.lib" using "scraper.get"
Do I need to add "cfscrape" in LSPro3 Kodi 19 or is that function already included?
2: Assuming it's a .py file - Do I have to write a Python block?
Or can it be written with something like: $pyFunction:cfscrape.scraper.get(url)
Thanks, m5

Looking to get return r to equal data-sh="([^"]+)

data-sh="UTIxNlFqTnhUVEozUlhwQlEyNVRTSHB2TTFGMVFWRkhjbmRqVTFReVdHb3dWbUowUzB0dVRIY3JhamRqVkU0MlFXSklVVTU1TTA5RWFUTkZabmhwS3c9PQ=="
LSP3 XML:
<item>
<title>cfscrape Tester</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url = ''):
    import re
    from resources.lib import cfscrape
    scraper = cfscrape.create_scraper()
    page_data = scraper.get('https://iptv.stream2watch.sx/streaming-television/live-fox-news-streaming').text
    r = re.findall('data-sh="([^"]+)', page_data)[0]
    return r
]]></expres>
<page></page>
</regex>
</item>
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5