LSP Regex & Makelist Discussion.

altug

Member
Jul 7, 2016
37
1
8
unfortunately no longer works please someone can help me

<item>
<title>atv</title>
<link>$doregex|Referer=https://7.fixspor45.xyz/</link> <regex> <name>url</name> <expres>src:\s*['"]([^'"]+)</expres> <page>https://7.fixspor45.xyz/android/player2.php?id=atv</page> </regex> </item> [/QUOTE]
 

makal

Member
Jul 23, 2014
55
9
8
Enjoy!!
Code:
<item>
<title>atv</title>
<link>$doregex[url]|Referer=https://7.fixspor45.xyz/</link> 
<regex> 
<name>url</name> 
<expres>window.mainSource\s=\s"(.*?)"</expres>
 <page>https://7.fixspor45.xyz/android/player2.php?id=atv</page> 
</regex> 
</item>
 
  • Like
Reactions: altug

Nature

New member
Dec 12, 2018
19
0
1
@streamwatcher2013 @gujal
Is possible to fix this regex?
Can you help me, pls.

LSP XML code:
<item>
<title>New</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3] [COLOR white]([makelist.param4])[/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('(?s)image:url.([^\)"]+).+?href="(.*?)"\s*title="(.*?)\s*\((\d+)',re.findall('id="movies-grid">(?s)(.*?)pagina',page_data)[0])
  for pn in xrange(2,3):
    source=requests.get('https://www.filma24.ac/page/'+str(pn)+'/',headers={'user-agent':'Mozilla/5.0','referer':'https://www.filma24.ac/','accept':'*/*'}).content.replace('#038;','').replace('&#8211;','-')
    list +=re.findall('(?s)image:url.([^\)"]+).+?href="(.*?)"\s*title="(.*?)\s*\((\d+)',re.findall('id="movies-grid">(?s)(.*?)pagina',source)[0])
  return list
]]></expres>
<page>https://www.filma24.ac/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[COLOR lightskyblue][makelist2.param2][/COLOR]</title>
<link>$doregex[finallink]</link>
<thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
list1=re.findall('"tab-server">(?s)(.*?)</div',page_data)[0]
list2=re.findall('"watch-links">(?s)(.*?)</ul',page_data)[0]
return re.findall('(?:data-servera|href)="([^"]+).+?(?:">|class=")([^<"]+)',list1+list2)
]]></expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>finallink</name>
<expres><![CDATA[#$pyFunction
import re,requests,urlresolver
def GetLSProData(page_data,Cookie_Jar,m):
mUrl='[makelist2.param1]'
if 'http' not in mUrl:
   source=requests.get('[makelist.param2]?server=[makelist2.param1]',headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param2]','accept':'*/*'}).content
   url=re.findall('movie-player[\w\W]+?iframe.+?src="([^"]+)',source)[0];url='https:'+url if url.startswith('//') else url
   source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param2]?server=[makelist2.param1]','accept':'*/*'}).content
   return re.findall('(?:player.updateSrc|var\*player|)[\w\W]+?(?:sources|file|src):.+?[\'"](h[^\'"]+)',source)[0]+'|user-agent=ipad&referer='+url
elif 'http' in mUrl:
   source=requests.get('[makelist2.param1]',headers={'user-agent':'Mozilla/5.0','accept':'*/*'}).content
   link=urlresolver.resolve(re.findall('(?s)window.location="([^"]+)',source)[0])
]]></expres>
<page></page>
</regex>
</item>
 

m5Germany

Member
Mar 20, 2014
44
9
8
It looks like they changed something, again. I tried messing with the CODE - not successful. When someone has an opportunity - would they Please take a look at and fix if possible?
Info:
https://www.tvaddons.co/community/threads/lsp-regex-makelist-discussion.62925/post-435502
As Always, Thanks.
m5
 

m5Germany

Member
Mar 20, 2014
44
9
8
Hmm, Going to take another look at to try and understand more. I see "ciphertext":" and ","iv":" . Not sure on how to view/see salt=e['salt'].decode('hex') . I have a Base64 Decode and HexDecode site to view but must not be entering that values correctly as I get an error.
For instance:
Info:
var _0x18a523=_0xf3b09=>{var _0xfa7d=E['d'](_0x5ba740('e03f246'),_0xba3d0e('bac7e39')

I get:

Error! String conversion failed
Invalid hex encoded string.
I am not sure where to start and end what I enter into the Decode.
Thanks for the update.
m5
 

upd8t3r

Member
Oct 16, 2019
30
9
8
I'm gradually learning more and more like you. You just need to select the right chunk of code and stick it in a base64 decoder to see it.

Code:
view-source:http://123tvnow.com/watch/trutv/

Line 55, copy the 1st chunk of code between the [], between the 1st single quote to matching end single quote.

eyJjaXBoZXJ0ZXh0IjoiZ3FwYWQ3SW5qMFNcL2paSU5ybVFQeUVUOGk1bkFuY2tmSCt4QitYSlJnZ1VzWFJySEdwTTdEdkFua3dDUU9oU1N6cFFwSmY1TGY5UVQwdTBzaHVpamhZXC91S3ZwM2JQdFwvSmR4TFZ4UnJOa1hXcEtYbFB4d3kxQWVCdmJIWkF2SVAiLCJpdiI6ImIyMDg5NTk4YTA0NGE5NzFjZGMyMWMzMmJkNjR','jOGViIiwic2FsdCI6ImJhYTMzYTc0YzY4NjVjNGM0NTk3YjExODE1NzIxOTlmYzlmNjY4YWEyNjNjYjMyODUyODdjZDYwMzVkZTYxMzg1MTRlYTQzOWE0OWE0M2VjOTUzYzhiN2Q1MGIyYjBlNmRhOTJjZmQyM2IyYTI0YTY4M2I3YjFjOWYyYWU3NTNiMmIxNTFkYWQ3MTA5MzJiMWY2MWM1NDRhNDdkOWEzOGZlYTk0NDk0OT','llODRjMGNkMzY0MzlhNjI3NmFlNjdkODhiOGYzM2Y1MTgzMDk1ZGY5ZDU0MjYwYzFiYTRlZDE3Y2U5MWM1ODJhM2M0YjQ0MTRhYjJlODg4YWE0YjUwMjZkOTZiOWFmMTcyOTBlNTkzZTU0NzgwNDFlOGU1ZjBhZWU4MTk5ZjQ3MGY1OWVjNGQxMmEwY2I1ZTc2ZDI1MGU3ZDlkNmQwZmQwNDY4NTk5NjU3YmYwZjg3NzBhMmE3N','GFkYTljZWZhOTg1OTNjNTMzYTg0MjE4YjlmZTUyN2E0ZjZiYjdjY2I2YmIwYmE0MTdkYTgzYjM2ZDk5NmU0Mjc4YTE0MmZjZDZjNDhjZDI5ZjE0NzZjYWJiM2Y5MDgxOGNiMGUzOWY5ZGQxMGEzYzc0OTY0M2VmYWY4MzAwMjgxYzI5YjYxMWJhNzg1MDk5ZWUzZTE5MTEyYjY3ZTU3ZTA5IiwiaXRlcmF0aW9ucyI6OTk5fQ==


Base64 Decodes to:

{"ciphertext":"gqpad7Inj0S\/jZINrmQPyET8i5nAnckfH+xB+XJRggUsXRrHGpM7DvAnkwCQOhSSzpQpJf5Lf9QT0u0shuijhY\/uKvp3bPt\/JdxLVxRrNkXWpKXlPxwy1AeBvbHZAvIP","iv":"b2089598a044a971cdc21c32bd64c8eb","salt":"baa33a74c6865c4c4597b1181572199fc9f668aa263cb3285287cd6035de6138514ea439a49a43ec953c8b7d50b2b0e6da92cfd23b2a24a683b7b1c9f2ae753b2b151dad710932b1f61c544a47d9a38fea9449499e84c0cd36439a6276ae67d88b8f33f5183095df9d54260c1ba4ed17ce91c582a3c4b4414ab2e888aa4b5026d96b9af17290e593e5478041e8e5f0aee8199f470f59ec4d12a0cb5e76d250e7d9d6d0fd0468599657bf0f8770a2a74ada9cefa98593c533a84218b9fe527a4f6bb7ccb6bb0ba417da83b36d996e4278a142fcd6c48cd29f1476cabb3f90818cb0e39f9dd10a3c749643efaf8300281c29b611ba785099ee3e19112b67e57e09","iterations":999}
 

m5Germany

Member
Mar 20, 2014
44
9
8
Right, Thanks - It's after that:
Code:
{"ciphertext":"ZzYVw0bGW0wOGupRFxWRi19Q+zxTEu+AkENYJZn6scEucsZMGYw5C9GHC22HOWZRZCQXi0Cnl1esemGczZNcJSKoBugPbS+l8ezRifeFfR0WC2C7yxSXFbvtB7Vqkbkv","iv":"f1b25abfa3aca76df0ee95ac305e86
that I do not see.
m5
 

peterpan

New member
Jul 7, 2013
14
5
3
@Doom Try this...

Code:
<item>
<title>TelevisionGratisHD</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <link>$doregex[getM3U8]</link>
  <thumbnail>http://123tvnow.com/category/img/[makelist.param3].png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('href="(.*?)".*?alt="(.*?)".*?src="img\/(.*?).png"',re.findall('channelstv">(?s)(.*?)desde este lugar',page_data)[0])
  return list
]]></expres>
<page>https://www.televisiongratishd.com/parrilla-gratis.html</page>
</regex>
<regex>
<name>getM3U8</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
    idlink=re.findall('a href="(.*?)"',page_data)[0]
    url=requests.get(idlink,cookies=Cookie_Jar,headers={'user-agent':'Mozilla/5.0'}).content
    link=re.findall("source: '(.*?)'",url)[0]
    return link
]]></expres>
<page>https://www.televisiongratishd.com/live/[makelist.param3].php</page>
</regex>
</item>
 
  • Like
Reactions: Doom

Million

New member
Dec 9, 2018
21
1
3
I need your help to make a makelist and search box
Thanks in advance
XML:
https://streamking.eu/home/movies/

https://streamking.eu/search?q=
@vbprofi Interessieren Sie sich für deutsche Filme?
 

peterpan

New member
Jul 7, 2013
14
5
3
@Million Try this...

Code:
<item>
<title>**https://streamking.eu/**</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <link>http:$doregex[getLink]</link>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('data-src="(.*?)"(?s)\s.*?href=".*?watch\/(.*?)(-\d.*?)"',re.findall('class="movie-container(?s)(.*?)End All Movies',page_data)[0])
  return list
]]></expres>
<page>https://streamking.eu/index.php?/home/movies/</page>
</regex>

<regex>
<name>getLink</name>
<expres><![CDATA[#$pyFunction
import re,requests
import jsunpack
def GetLSProData(page_data,Cookie_Jar,m):
  phplink=re.findall('responsive-embed-item".src="(h.*?)"',page_data)[0]
  url=requests.get(phplink,headers={'user-agent':'Mozilla/5.0'}).content
  data=jsunpack.unpack(re.findall('(eval\(function\(p,a,c,k,e,d.*)',url)[0])
  stream=re.findall('MDCore.wurl="(.*?)"',data)[0]
  return stream
]]></expres>
<page>https://streamking.eu/watch/[makelist.param2][makelist.param3]</page>
</regex>
</item>

 
  • Like
Reactions: Million

tpoupi

New member
Jan 2, 2016
18
0
1
I need your help to make a makelist please.
Thanks in advance

hxxp://bonoov.com/moip487dfg87gf/index.php?c=29
 

streamwatcher2013

Active member
Oct 24, 2013
637
209
43
USA
Try this:

LSP XML Code:
<item>
<title>http://bonoov.com/moip487dfg87gf/index.php?c=29</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2] [COLOR dodgerblue]([makelist.param3])[/COLOR]</title>
  <inputstream>$doregex[getUrl]|referer=http://bonoov.com/</inputstream>
  <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('(?s)id="hann">.+?href="([^"]+).+?(\w.*?)\s*\((\d+)',page_data)
  for pn in xrange(1,3):
    source=requests.get('http://bonoov.com/moip487dfg87gf/index.php?c=29&pagenum=1&pagenum='+str(pn),headers={'user-agent':'Mozilla/5.0','referer':'https://www.filma24.ac/','accept':'*/*'}).content.replace('#038;','').replace('&#8211;','-')
    list +=re.findall('(?s)id="hann">.+?href="([^"]+).+?(\w.*?)\s*\((\d+)',source)
  return list
]]></expres>
<page>http://bonoov.com/moip487dfg87gf/index.php?c=29</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,time
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  ref='http://bonoov.com/moip487dfg87gf/[makelist.param1]';link=re.findall('<iframe.+?src="(http://\d+[^"]+)',page_data)[0]
  rlink=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':ref,'accept':'*/*'},allow_redirects=False).url
  source=requests.get(rlink,headers={'user-agent':'Mozilla/5.0','referer':ref,'accept':'*/*'}).content
  html=re.findall('window.location.href=[\'"]([^\'"]+)',source)[0]
  source=requests.get(html,headers={'user-agent':'Mozilla/5.0','referer':link,'accept':'*/*'}).content.replace('\\','')
  if '720' in source:
    return re.findall('file:[\'"]([^\'"]+).{9,10}720',source)[0]
  elif '480' in source:
    return re.findall('file:[\'"]([^\'"]+).{9,10}480',source)[0]
  else:
    return re.findall('file:[\'"]([^\'"]+).{9,10}360',source)[0]
]]></expres>
<page>http://bonoov.com/moip487dfg87gf/[makelist.param1]</page>
<referer>http://bonoov.com/moip487dfg87gf/index.php?c=29</referer>
</regex>
</item>
 
Thread starter Similar threads Forum Replies Date
J Scraper Development 0
D Apple TV 4 44
O Addon Requests 5