LSP Regex & Makelist Discussion.

adioukrou

Member
May 12, 2012
36
0
6
Hello,
I know it is out of topic but I have to ask anyway. Did anyone know a good wifi hotspot for window 10? I can't find any that work!!!!
Thanks and sorry for this out of topic request.
 

Doom

Member
Sep 16, 2019
318
21
18
@streamwatcher2013 can i get help stopped working & can you add the entire list if its possible... thanks
<item>
<title>https://vikv.net/</title>
<link>$doregex[makelist]</link>
<thumbnail></thumbnail>
<fanart></fanart>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLORyellow][makelist.param3][/COLOR]</title>
<link>$doregex[makelist2]</link>
<info>[COLORyellow][makelist.param4][/COLOR]</info>
<thumbnail>[makelist.param1]</thumbnail>
<fanart></fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
data=re.findall('(?s)src="([^"]+).+?href="([^"]+).+?>([^<]+).+?summary">([^<]+)',re.findall('id="(?:main|content)"(?s)(.*?)page',page_data)[0].replace('&#8217;','\'').replace('&#8211;','-').replace('#038;',''))
for pn in xrange(2,10):
pages='https://vikv.net/page/'+str(pn)+'/';source=requests.get(pages,headers={'user-agent':'Mozilla/5.0','referer':'https://vikv.net/','accept':'*/*'},cookies=Cookie_Jar).content
data +=re.findall('(?s)src="([^"]+).+?href="([^"]+).+?>([^<]+).+?summary">([^<]+)',re.findall('id="(?:main|content)"(?s)(.*?)page',source)[0].replace('&#8217;','\'').replace('&#8211;','-').replace('#038;',''))
return data
]]></expres>
<page>https://vikv.net/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[COLORyellow][makelist2.param1][/COLOR]</title>
<link>[makelist2.param2]|user-agent=ipad</link>
<info>[COLORyellow][makelist.param4][/COLOR]</info>
<thumbnail>[makelist.param1]</thumbnail>
<fanart></fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
link=re.findall('id=.video[\w\W]*?src="([^"]+)',page_data)[0]
source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param2]'}).content
gimdb,ipAdd=re.findall('(?s)window.imdb.+?[\'"]([^\'"]+).+?window.ip.+?[\'"]([^\'"]+)',source)[0]
source=requests.post('https://api.hdv.fun/l1',headers={'user-agent':'Mozilla/5.0','referer':link,'x-requested-with':'XMLHttpRequest'},data={'imdb':gimdb,'ip':ipAdd,'hd':'true'}).content.replace('\\','')
return re.findall('"name":"([^"]+).+?"src":"([^"]+)","res":"1080',source)
]]></expres>
<page>[makelist.param2]</page>
<referer>https://vikv.net/</referer>
</regex>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
Change 2nd number (10) in xrange(2,10) to higher number to get more pages. Try this:

LSP XML Code:
<item>
<title>https://vikv.net/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param3]</title>
  <link>$doregex[makelist2]</link>
  <info>[makelist.param4]</info>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  data=re.findall('(?s)src="([^"]+).+?href="([^"]+).+?>([^<]+).+?summary">([^<]+)',re.findall('id="(?:main|content)"(?s)(.*?)page',page_data)[0].replace('&#8217;','\'').replace('&#8211;','-').replace('#038;',''))
  for pn in xrange(2,10):
    pages='https://vikv.net/page/'+str(pn)+'/';source=requests.get(pages,headers={'user-agent':'Mozilla/5.0','referer':'https://vikv.net/','accept':'*/*'},cookies=Cookie_Jar).content
    data +=re.findall('(?s)src="([^"]+).+?href="([^"]+).+?>([^<]+).+?summary">([^<]+)',re.findall('id="(?:main|content)"(?s)(.*?)page',source)[0].replace('&#8217;','\'').replace('&#8211;','-').replace('#038;',''))
  return data
]]></expres>
<page>https://vikv.net/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[makelist2.param1]</title>
  <link>[makelist2.param2]|user-agent=ipad&amp;referer=[makelist.param2]</link>
  <info>[makelist.param4]</info>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,urllib,json
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  link=re.findall('id=.video[\w\W]*?src="([^"]+)',page_data)[0]
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param2]'}).content
  gimdb,ipAdd=re.findall('(?s)window.imdb.+?[\'"]([^\'"]+).+?window.ip.+?[\'"]([^\'"]+)',source)[0]
  jdata=requests.post('https://api.hdv.fun/l1',headers={'user-agent':'Mozilla/5.0','referer':link,'x-requested-with':'XMLHttpRequest'},data={'imdb':gimdb,'ip':urllib.quote_plus(ipAdd),'hd':'true'}).content.replace('\\','')
  title=re.findall('"name":"([^"]+).+?"src":".+?","res":',jdata)
  stream=re.findall('"name":".+?".+?src":"([^"]+)","res":',jdata)
  return zip(title,stream)
]]></expres>
<page>[makelist.param2]</page>
<referer>https://vikv.net/</referer>
</regex>
</item>
 
  • Like
Reactions: altug and Doom

Doom

Member
Sep 16, 2019
318
21
18
@streamwatcher2013 Just tried that with the 2019 section using (2,58) and only scrapes like a few pages and the rest of the list is mixed up with other's year any reason why... just curious & thanks!
 

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
Replaced the below line with new one:

XML:
From
  jdata=requests.post('https://api.hdv.fun/l1',headers={'user-agent':'Mozilla/5.0','referer':link,'x-requested-with':'XMLHttpRequest'},data={'imdb':gimdb,'ip':urllib.quote_plus(ipAdd),'hd':'true'}).content.replace('\\','')

To
  jdata=requests.post('https://api.hdv.fun/l1',headers={'user-agent':'Mozilla/5.0','referer':link,'x-requested-with':'XMLHttpRequest'},data={'imdb':gimdb,'ip':str(ipAdd),'hd':'true'}).content.replace('\\','')
 
  • Like
Reactions: Doom

thingy

Member
May 9, 2018
76
1
8
can you help me with a similar code for this series? hxxps://engvideo.pro/es/serials/greys-anatomy/

Code:
<item>
<title>https://engvideo.pro/en/serials/3below-tales-of-arcadia/</title>
<link>$doregex[makelist]</link>
<thumbnail>https://vignette.wikia.nocookie.net/trollhunters/images/5/55/Dd82c352930a6e5dfdfa5ec4e2d1cfa9.jpg</thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param1] [makelist.param3]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://engvideo.pro/media/filebrowser/video/series/3below-tales-of-arcadia/thumb_gKveLsS1bxHUJZlE5CFJFdjwBcW.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  ref='https://engvideo.pro/en/serials/3below-tales-of-arcadia/';url=ref+'iframe/'
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':ref,'accept':'*/*'},cookies={'csrftoken':'$doregex[token]'}).content.replace('&#39;','\'')
  return re.findall('(?s).pull-left.+?(\d+\.).+?[\'"](/en[^\'"]+).+?>([^<]+)',source)
]]></expres>
<page></page>
</regex>
<regex>
<name>token</name>
<expres><![CDATA[(?s)id="lang_form.+?value=[\'"]([^\'"]+)]]></expres>
<page>https://engvideo.pro/en/serials/3below-tales-of-arcadia/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://engvideo.pro[makelist.param2]',headers={'user-agent':'Mozilla/5.0','referer':'https://engvideo.pro/en/serials/3below-tales-of-arcadia/','x-requested-with':'XMLHttpRequest','accept':'*/*'},cookies={'csrftoken':'$doregex[token]'}).content
  return re.findall('(?s)<video.+?source\s*src=[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer=https://engvideo.pro[makelist.param2]'
]]></expres>
<page></page>
</regex>
</item>
 

dantas1990

Member
Apr 10, 2020
62
1
8
I downloaded Imputstream, I just need to configure it in ADDON to reproduce. How do I set it up in my file?
 

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
Depend on what version of Kodi you are running. It has different modules to install and enable. GG is friendly to find it out.
Within LSP you can add the code like this to your XML file

LSP XML code:
<item>
<title>inputstream</title>
<inputstream>https://your-DASh-file-here</inputstream>
</item>
 

boomski

New member
Mar 23, 2017
24
1
3
Hi is it possible to have a rgex for this site

Code:
https://www.hln.be/nieuws/hln-live-vanaf-vandaag-eerste-24-7-live-videonieuwskanaal-in-vlaanderen~af48d9a5/
 

dantas1990

Member
Apr 10, 2020
62
1
8
@ streamwatcher2013

Eu tenho o KODI 18.6 mais recente. O que estou me referindo é como me reproduzo? Você está apenas cometendo um erro. Este erro está no arquivo .py. Descubra que preciso adicionar esses códigos. Clique nesse link.
https://gofile.io/?c=ZncRu4, basta dar um erro. Mais alguma coisa que tenho que fazer?
 

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
Se eu estava cometendo um erro, talvez não entendesse completamente o que você quer. Você está executando o arquivo xml com LSP? De que arquivo .py você está falando e pertence a quaisquer complementos, plugins? Ou você cria seu próprio arquivo .py? Muitas informações para conhecer o m8.
 

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
To see it works

default.py mod:
elif mode==20:
    addon_log("setResolvedUrl")
    item = xbmcgui.ListItem(name)
    if '$$lic' in url:
        url,lic = url.split('$$lic=')
        lic = urllib.unquote_plus(lic)
        if '{SSM}' not in lic:
            lic += '||R{SSM}|'
        item.setProperty('inputstream.adaptive.license_type', 'com.widevine.alpha')
        item.setProperty('inputstream.adaptive.license_key', lic)
    if '|' in url:
        url,strhdr = url.split('|')
        item.setProperty('inputstream.adaptive.stream_headers', strhdr)
        item.setPath(url)
    if '.m3u8' in url:
        item.setProperty('inputstreamaddon', 'inputstream.adaptive')
        item.setProperty('inputstream.adaptive.manifest_type', 'hls')
        item.setMimeType('application/vnd.apple.mpegstream_url')
        item.setContentLookup(False)
  
    elif '.mpd' in url or 'format=mpd' in url:
        item.setProperty('inputstreamaddon', 'inputstream.adaptive')
        item.setProperty('inputstream.adaptive.manifest_type', 'mpd')
        item.setMimeType('application/dash+xml')
        item.setContentLookup(False)
    
    elif '.ism' in url:
        item.setProperty('inputstreamaddon', 'inputstream.adaptive')
        item.setProperty('inputstream.adaptive.manifest_type', 'ism')
        item.setMimeType('application/vnd.ms-sstr+xml')
        item.setContentLookup(False)
        
    elif len(item('inputstream')) >0:                   
        for i in item('inputstream'):
            if not i.string == None:
                istream = i.string + '&mode=20'
                url.append(istream)
                
    item.setPath(url)
    xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, item)
 

dantas1990

Member
Apr 10, 2020
62
1
8
I was wondering how do I reproduce? It is showing an error. I found that I need to add the codes that are in the link I provided in the base.py file. Only that putting these codes is giving error. I wanted to know the procedure Sorry for my English, I speak another language.
 

efradncr

Member
Mar 26, 2018
62
1
8
Could you help me with a regex for this complete series
Code:
hxxps://www.seriesflv.cc/ver-series/la-casa-de-la-pradera-la-familia-ingalls-1974/
 

Doom

Member
Sep 16, 2019
318
21
18
Can it be possible get help for movies and thanks.
hxxps://www.film2movie.io/category/download-film/film-years/2020/
 

kavan

Member
Aug 14, 2016
71
5
8
Try This


Code:
<item>
<title>https://www.film2movie.io/category/download-film/film-years/2020/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
   <title>[COLOR gold][makelist.param3][/COLOR]</title>
   <link>$doregex[makelist2]</link>
   <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  mdata=re.findall('(?s)id="myimg.+?src="([^"]+).+?href="([^"]+)"\s*title="([^"]+)',page_data);count=50;pn=2;data=[]
  while pn <= int(count):
    page='https://www.film2movie.io/category/download-film/film-years/2020/page/'+str(pn)+'/'
    source=requests.get(page,headers={'user-agent':'Mozilla/5.0','referer':'https://www.film2movie.io/','connection':'keep-alive','accept':'*/*'}).text
    data +=re.findall('(?s)id="myimg.+?src="([^"]+).+?href="([^"]+)"\s*title="([^"]+)',source);pn +=1
  return mdata+data
]]></expres>
<page>https://www.film2movie.io/category/download-film/film-years/2020/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
   <title>[COLOR gold][makelist2.param1][/COLOR]</title>
   <link>[makelist2.param2]</link>
   <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('(?:ff0000|ff6600|008000);"(?:>|><strong>)([^<]+).+?href="([^"]+)',re.findall('id="more-\d+">(?s)(.*?)"recommendations',page_data)[0])
]]></expres>
<page>[makelist.param2]</page>
</regex>
</item>

Thanks To streamwatcher2013



 
  • Like
Reactions: Doom

Nature

New member
Dec 12, 2018
19
0
1
Can you fix this code, please. I can't get the video.
XML:
<item>
<title>Video</title>
<link>$doregex[play]</link>
<regex>
<name>play</name>
<expres>sources: ["([^"']+)"]</expres>
<page>https://vudeo.net/embed-b5l1j2npb1t0.html</page>
<referer>https://vudeo.net</referer>
<agent>Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0</agent>
<cookieJar></cookieJar>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
307
96
28
Try this.
LSP XML:
<item>
<title>Video</title>
<link>$doregex[play]|User-Agent=Mozilla/5.0&amp;Referer=https://vudeo.net/embed-b5l1j2npb1t0.html</link>
<regex>
<name>play</name>
<expres><![CDATA[sources: \["([^"']+)]]></expres>
<page>https://vudeo.net/embed-b5l1j2npb1t0.html</page>
</regex>
</item>
Enjoy,
m5
 
  • Like
Reactions: Nature

urualf

Member
Jan 19, 2016
42
0
6
hello ,please need help for this link work in lsp ,thanks for help

hxxps://vk.com/video?q=la%20dimension%20desconocida&z=video310037075_456239212
 

dantas1990

Member
Apr 10, 2020
62
1
8
Good afternoon
@streamwatcher2013

Thanks for listening.
I added the codes, but I couldn't reproduce, giving an error. Is there anything more that needs to be done besides these codes you sent?
 

haider

New member
Dec 26, 2013
21
0
1
toronto
hi can some one help me to play this one in LSP

hxxps://jk3lz82elw79-hls-live.5centscdn.com/harPalGeo/955ad3298db330b5ee880c2c9e6f23a0.sdp/harPalGeo/955ad3298db330b5ee880c2c9e6f23a0.sdp1/chunks.m3u8

thanks
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5