LSP Regex & Makelist Discussion.

thingy

Member
May 9, 2018
58
0
6
MANY thanks streamwatcher, if it looks very simple, but we mortals is difficult, can you filter by category for example group-title = "FRANCE" I thank you for an example if you can ... I have some idea that with this code I can do it but I tried and I could not
Code:
<expres><![CDATA[tvg-name=“(.*?)”.+?FRANCE.*\n(.*)]]></expres>
 

streamwatcher2013

Well-known member
Oct 24, 2013
914
398
63
USA
Good start :). Try this:

Code:
<item>
<title>FRANCE channels</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
   <title>[COLOR gold][makelist.param2][/COLOR]</title>
   <link>[makelist.param3]|user-agent=ipad</link>
   <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[tvg-logo="(.*?)"\s*group-title="FRANCE",(.*)\n(.*)]]></expres>
<page>$doregex[iptvLink]</page>
</regex>
<regex>
<name>iptvLink</name>
<expres>id="myInput1".+?value="([^"]+)</expres>
<page>https://fluxustv.blogspot.com/p/iptv.html</page>
</regex>
</item>
 
  • Like
Reactions: kavan

kavan

Member
Aug 14, 2016
69
5
8
Hello Streamwatcher2013
Please could you help me
i need 2 makelist for

Code:
https://www.glwiz.com/index.aspx
Persian channels


And

Code:
https://www.telewebion.com/channels
Thanks in advance
 

adrianhn

New member
Mar 20, 2014
25
4
3
some help with this site

Code:
https://seriescube.pw/episodios/juego-tronos-8x6

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

<regex>
<name>getUrl</name>
<listrepeat><![CDATA[
   <title>url: [getUrl.param1]</title>
   <urlsolve>$doregex[solveURL]</urlsolve>
   <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,urlresolver
def GetLSProData(page_data,Cookie_Jar,m):
  source=requests.post('https://seriescube.pw/episodios/juego-tronos-8x6/',headers={'user-agent':'Mozilla/5.0','referer':'https://seriescube.pw/','x-requested-with':'XMLHttpRequest'},data={'getlinks':'10720'}).content
  server=re.findall('href=\'(.*?)\'',source)[0]
  return server
]]></expres>
<page></page>
<referer>https://seriescube.pw/episodios/juego-tronos-8x6</referer>
</regex>

...
i try with this but dont works



thks for advance
 

Picapau

Member
Nov 15, 2018
69
9
8
Is it possible to resolve this server? I try with this, but I think it does not work for the captcha

Code:
<item>
<title>$doregex[powvideo]   powvideo</title>
<link>$doregex[powvideo]</link>
<regex>
<name>powvideo</name>
<expres>src:\s*['"](.*?)['"]</expres>
<page>$doregex[lista]</page>
<referer>http://www.seriespapaya.com/enlace/1748626851</referer>
<agent>Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3163.100 Safari/537.36</agent>  
</regex>
<regex>
<name>lista</name>
<expres>$pyFunction:get_unpacked(page_data,'javascript.*?(eval\(function\(p,a,c,k,e,d.*)')</expres>
<page>https://powvideo.net/l917afa3bkpd</page>
<rawpost>imhuman=6LfsXx4TAAAAAG7fRIpL2LpS_NLxj1HBlotEDhT7</rawpost>
<referer>http://www.seriespapaya.com/enlace/1748626851</referer>
<agent>Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3163.100 Safari/537.36</agent>
<connection>keep-alive</connection>
<accept>*/*</accept>
<X-Req>XMLHttpRequest</X-Req>
</regex>
</item>
 

boomski

New member
Mar 23, 2017
24
1
3
Hi, Can anyone help with this site
Code:
hxxp://cyfostreams.com/
 

Picapau

Member
Nov 15, 2018
69
9
8
the channels of this web are not working, I take out the regular expression, but on the web they do not work, if they go back to work they will work


Code:
<item>
<title>cyfostreams.com</title>
<link>$doregex[cristalazul]</link>
<regex>
<name>cristalazul</name>
<listrepeat><![CDATA[
<title>[COLOR white][cristalazul.param1][/COLOR]   $doregex[m3u8]  </title>
<link>$doregex[m3u8]</link>
<thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)<li>.*?<a href="(cyfo\d*).]]></expres>
<page>http://cyfostreams.com</page>
</regex>
<regex>
<name>m3u8</name>
<expres>Clappr.Player[\w\W]*?[\'"](.*?)[\'"]</expres>
<page>http://cyfostreams.com/[cristalazul.param1].php</page>
</regex>
</item>
 

boomski

New member
Mar 23, 2017
24
1
3
Thanks but only Cyfo 3 plays.
The other (working)channels play on the website but they don' t open in kodi , when i take the link from these channels in vlc they also will not play

example:
hxxp://103.194.171.8/vvv/s33/playlist.m3u8 -> plays channel 3
hxxp://103.194.171.8/live/soso1/playlist.m3u8 -> will not play channel 1
 

Lacasitos74

Member
Nov 21, 2016
43
1
8
Hi good people!
Can any one help with this link
Code:
https://sportzonline.to/channels/hd/hd5.php
Thanks a lot
 

makal

Member
Jul 23, 2014
62
16
8
Hi
try this
Code:
<item>
    <title>whostreams</title>
    <link>$doregex[geturl]</link>
    <regex>
        <name>geturl</name>
        <expres>Clappr.Player[\w\W]*?(?:source|src):\s*[\'"]([^\'"]+)</expres>
        <page>$doregex[getunpacked]</page>
    </regex>
    <regex>
        <name>getunpacked</name>
        <expres>$pyFunction:get_unpacked(page_data,'(eval\(function\(p,a,c,k,e,d.*)' )</expres>
        <page>https://whostreams.net/embed/p724u</page>
        <referer>https://sportzonline.to/channels/hd/hd5.php</referer>
    </regex>
</item>
 

vbprofi

Member
Feb 9, 2016
77
3
8
Hello dear friends,
I try to create a multipage with this code. I get always items only from first page. Have someone an idea what the mistake is? all regex working with variant for pagenation (listing page 1 to last page) as items. But I will try load many pages and listing the video items from these pages.
Code:
<item>
<title>[COLOR cyan]Medya haber - TV PROGRAMLARI[/COLOR] (für schnelle Verbindung)</title>
<link>$doregex[main]</link>

<regex>
<name>main</name>
<listrepeat><![CDATA[
<title>[COLOR cyan] [main.param2] [/COLOR]</title>
<link>$doregex[play]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#vbprofi
 s1 = re.findall('(?s)<a href="(.*?medyahaber.info/20.*?)".*?<h.*?>(.*?)</h2', re.findall('</h1>(?s)(.*?nav-links)">', page_data)[0])
 return s1
]]></expres>
<page>$doregex[multipage]</page>
</regex>

<regex>     
<name>multipage</name>
<expres><![CDATA[#$pyFunction
import xbmcgui
import xbmc
import requests, re
import HTMLParser
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
def GetLSProData(page_data,Cookie_Jar,m):#vbprofi
 parser = HTMLParser.HTMLParser()
 s = re.sub("(&.+?;)", lambda m: parser.unescape(m.group()), page_data)
 myheaders = {'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46'}

 max = 3 #testing at first with 3 pages
#loading all pages:
#max = re.findall("Next.*?</a><a href=.*?medyahaber.info/category/tv-programlari/page/(.*?)/'>Last.*?</a></div>", s)[0]

 liste = ""
 for i in xrange(1, int(max)+1):
  liste += requests.get('http://www.medyahaber.info/category/tv-programlari/page/' + str(i), headers= myheaders).text

 return liste
]]></expres>
<page>http://www.medyahaber.info/category/tv-programlari/</page>
  </regex>


<regex>
<name>play</name>
... this part is working well...
</regex>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
914
398
63
USA
From the view source I saw the category/tvprogram only start from page 2 up to page 900+. Your code get page 1 to last. You need to get page 2 and above plus 1st page not page 1 separately then return together.
 
  • Like
Reactions: kavan

vbprofi

Member
Feb 9, 2016
77
3
8
thanks for your help. I have modified the part for loading pages into
Code:
 max = 4 #testing at first with 3 pages
#loading all pages:
#max = re.findall("Next.*?</a><a href=.*?medyahaber.info/category/tv-programlari/page/(.*?)/'>Last.*?</a></div>", s)[0]

 liste = ""
 for i in xrange(2, int(max)+1):
  liste += requests.get('http://www.medyahaber.info/category/tv-programlari/page/' + str(i), headers= myheaders).text

 return liste
bevore I add the line for 1st page, I will run tis, but I geht only the first loading page (in this example /page/2).
I think the problem is in this part
Code:
 s1 = re.findall('(?s)<a href="(.*?medyahaber.info/20.*?)".*?<h.*?>(.*?)</h2', re.findall('</h1>(?s)(.*?nav-links)">', page_data)[0])
 return s1
 

streamwatcher2013

Well-known member
Oct 24, 2013
914
398
63
USA
I did with count=10 (see image attached it shows 99 video in 10 pages >> count=10). If you load 900+ pages it will take forever to load. Try this:

Code:
<item>
<title>[COLOR cyan]Medya haber - TV PROGRAMLARI[/COLOR] (für schnelle Verbindung)</title>
<link>$doregex[main]</link>
<regex>
<name>main</name>
<listrepeat><![CDATA[
 <title>[COLOR cyan] [main.param2][/COLOR]</title>
 <link>$doregex[play]</link>
 <thumbnail>[main.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  mliste=re.findall('(?s)finite-post".+?href="([^"]+).+?title="([^"]+).+?src="([^"]+)',page_data)
  count=10;pn=2;liste=[]
  while pn <= int(count):
     pages='http://www.medyahaber.info/category/tv-programlari/page/'+str(pn)+'/';source=requests.get(pages).content
     liste +=re.findall('(?s)finite-post".+?href="([^"]+).+?title="([^"]+).+?src="([^"]+)',source);pn +=1
  return mliste+liste
]]></expres>
<page>http://www.medyahaber.info/category/tv-programlari/</page>
 </regex>
</item>
 

efradncr

Member
Mar 26, 2018
60
1
8
Podrían ayudarme a corregir este código
Code:
<item>
<title>https://www.youtube.com/channel/UCr6TeVofbyCvtCdxV_niQKQ/videos</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param2]   [makelist.param3]</title>
<link>plugin://plugin.video.youtube/play/?video_id=[makelist.param1]</link>
]]></listrepeat>
<expres>href="\/watch\?v=(.*?)">(.*?)<.*?> -.*?:(.*?)<\/span><\/h3></expres>
<page>https://www.youtube.com/channel/UCr6TeVofbyCvtCdxV_niQKQ/videos</page>
</regex>
</item>
 

myosmc

Member
May 18, 2018
56
1
8
Greetings friends, I have a regex for these channels but this special can not be done in L & sP
Code:
hxxxp://cablegratis.tv/canal-en-vivo/cnn
 

thingy

Member
May 9, 2018
58
0
6
this site has migrated to another server I have tried variants but I can not run it
Code:
hxxps://cdn.jwplayer.com/players/GSibNdRY-f7ztouYb.html
 

kavan

Member
Aug 14, 2016
69
5
8
Hi streamwatcher
is it possible to have a makelist for this page?
(90Episode on 9 pages)

Code:
https://pastebin.com/raw/XjrefimV
Thank you
 

Picapau

Member
Nov 15, 2018
69
9
8
this regex is very simple, we let rest for the complex regex to streamwatcher ;-)
Code:
<item>
<title>http://www.doctv.ir/programs/892343-%D8%A8%DB%8C%D8%B1%D8%A7%D9%87%D9%87-90</title>
<link>$doregex[cristal]</link>
<regex>
<name>cristal</name>
<expres>data-video="(.*?)"</expres>
<page>http://www.doctv.ir/programs/892343-%D8%A8%DB%8C%D8%B1%D8%A7%D9%87%D9%87-90</page>
</regex>
</item>
 
  • Like
Reactions: kavan

gujal

Developer
Dec 26, 2013
526
290
63
Enjoy!
Code:
<item>
<title>بیراهه</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <link>[makelist.param3]</link>
  <thumbnail>http://www.doctv.ir[makelist.param2]</thumbnail>
  <fanart>http://www.doctv.ir[makelist.param4]</fanart>
  <info>[makelist.param5]</info>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import requests
  url = 'http://www.doctv.ir/programs/c/%D8%A8%DB%8C%D8%B1%D8%A7%D9%87%D9%87?format=json'
  headers = {'User-Agent': 'iPad',
             'X-Requested-With':'XMLHttpRequest'}
  items = requests.get(url, headers=headers).json()['items']
  videos = []
  for item in items:
    title = item['title']
    thumb = item['imageMedium']
    fanart = item['imageXLarge']
    info = item['fulltext']
    strurl = item['video']
    videos.append((title, thumb, strurl, fanart, info))
  return videos
]]></expres>
<page></page>
 </regex>
<thumbnail>http://www.doctv.ir/assets/img/logo.png</thumbnail>
</item>
 
  • Like
Reactions: Picapau and kavan

haider

New member
Dec 26, 2013
21
0
1
toronto
<item>
<title>JCC Jafari Youtube Channel Masoomen RegEx **http://jaffari.org/live/jcc-live/**</title>
<link>plugin://plugin.video.youtube/play/?video_id=$doregex[getLiveVideoID]</link>
<regex>
<name>getLiveVideoID</name>
<expres>watch\?v=(.*?)".*?target</expres>
<page>$doregex[getMainPage]&amp;autoplay=1</page>
<referer>http://jaffari.org/live/mic-live/</referer>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getMainPage</name>
<expres>src="(.*?)".*id="</expres>
<page>http://jaffari.org/live/mic-live/</page>
<cookieJar></cookieJar>
</regex>
</item>

can any tell me why this not working in kodi 17.6 but its working kodi 16 . thanks
 

gujal

Developer
Dec 26, 2013
526
290
63
In 17.6, you need to do two things.
  1. You need to install Inputstream Adaptive addon
  2. Inside Youtube addon settings, you have to install Inputstream Helper for live streams
 

vphuc81

New member
Jun 6, 2015
7
0
1
Wow, it really fast and working good.
Thank you so much streamwatcher2013. You are the best.
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5