Help for Regex

Status
Not open for further replies.

efradncr

Member
Mar 26, 2018
60
1
8
Hi guys
you could help me with regex of this site:
Code:
hxxp://sport-stream365.com/football
thanks
Hay un addon funcionando muy bien ------->htxxp://dom.vizavi.pl/kodi/
con --------->repository.cherrytv-1.2.8.zip
----------> S.p.o.r.t365
 

vbprofi

Member
Feb 9, 2016
74
3
8
oder der hie hxxpwww.tvyayinakisi.com/
ich habe den Anfang für einen Kanal gemacht... I hope, someone can complete that code. The second part of regex is not working.
Code:
<item>
<title>$doregex[getCname]</title>
<link>$doregex[program]</link>

<regex>
<name>program</name>
<listrepeat><![CDATA[
<title>[COLOR cyan] [program.param2][program.param1][/COLOR]</title>
<link>ignoreme</link>
<thumbnail>[program.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import re
 return re.findall('two columns time" title="(.*?)".+\n.+?<div.+?ten columns">(.*?)</div',page_data)
]]></expres>
<page>hxxp://www.tvyayinakisi.com/kanal-d-tv</page>
</regex>
<regex>
<name>getCname</name>
<expres><![CDATA[<h1>(.*)</h1>]]></expres>
<page>hxxp://www.tvyayinakisi.com/kanal-d-tv</page>
</regex>

</item>
 

Alba123

New member
Apr 4, 2018
18
0
0
Any Idea how can I play this link on kodi LSpro

Code:
https://upvid.co/embed-gec8pzbech3b.html
 

turko03

Member
Mar 27, 2018
52
1
8
kann jemand helfden um deb code zum starten zu bekommen von vp profi


<item> <title>$doregex[getCname]</title> <link>$doregex[program]</link> <regex> <name>program</name> <listrepeat><![CDATA[ <title>[COLOR cyan] [program.param2][program.param1][/COLOR]</title> <link>ignoreme</link> <thumbnail>[program.param2]</thumbnail> ]]></listrepeat> <expres><![CDATA[#$pyFunction def GetLSProData(page_data,Cookie_Jar,m): import re return re.findall('two columns time" title="(.*?)".+\n.+?<div.+?ten columns">(.*?)</div',page_data) ]]></expres> <page>hxxp://www.tvyayinakisi.com/kanal-d-tv</page> </regex> <regex> <name>getCname</name> <expres><![CDATA[<h1>(.*)</h1>]]></expres> <page>hxxp://www.tvyayinakisi.com/kanal-d-tv</page> </regex> </item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
817
334
63
USA
kann jemand helfden um deb code zum starten zu bekommen von vp profi
Nicht so sicher, was genau du auf dieser Seite willst. Es zeigt nur den Zeitplan ohne abspielbare Streams. Möchten Sie die Zeitplanliste? Jedenfalls funktioniert sein Code nicht

Not so sure exactly what do you want on this site. It shows only the schedule without playable streams. Do you want the schedule list? Anyway his code does not working.

Try this just for schedule. Make sure this line does not change
list=re.findall('"row shadow-upward view">(?s)(.*?)shadow-left',page_data)[0].replace(''','\'')

Code:
<item>
<title>Tv Yayın Akışı Schedule</title>
<link>$doregex[program]</link>
<regex>
<name>program</name>
<listrepeat><![CDATA[
<title>[COLOR cyan] [program.param2][/COLOR]</title>
<link>$doregex[getCname]</link>
<thumbnail>http://www.tvyayinakisi.com/[program.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('class="row.all-channels">(?s)(.*?)class="row',page_data)[0]
  return re.findall('href="(.*?)".title="(.*?)".*?src="(.*?)"',list)
]]></expres>
<page>http://www.tvyayinakisi.com/</page>
</regex>
<regex>
<name>getCname</name>
<listrepeat><![CDATA[
<title> ([getCname.param1])[COLOR cyan] [getCname.param2][/COLOR]</title>
<link>ignore</link>
<thumbnail>http://www.tvyayinakisi.com/[program.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('"row shadow-upward view">(?s)(.*?)shadow-left',page_data)[0].replace(''','\'')
  if 'row date' in list:
     return re.findall('>(\d+:\d+)<.*\n.*>(.*?)<',list)
  elif 'row date' not in list:
     return re.findall('class="date">(.*?)\s-\s(.*?)<',list)
]]></expres>
<page>http://www.tvyayinakisi.com/[program.param1]</page>
</regex>
<thumbnail>http://www.tvyayinakisi.com/images/logo2.png</thumbnail>
</item>


 
Last edited:

cezi1

Member
Aug 1, 2017
30
1
6
Nicht so sicher, was genau du auf dieser Seite willst. Es zeigt nur den Zeitplan ohne abspielbare Streams. Möchten Sie die Zeitplanliste? Jedenfalls funktioniert sein Code nicht

Not so sure exactly what do you want on this site. It shows only the schedule without playable streams. Do you want the schedule list? Anyway his code does not working



Hi, yea I think he wants the schedule regex... do you think that it is possible this

Code:
hxxp://www.digiturk.com.tr/yayin-akisi
 
Last edited:

turko03

Member
Mar 27, 2018
52
1
8
ya wants to see only the schedule so tv program thanks streamwatcher but the code does not work for me?
 

turko03

Member
Mar 27, 2018
52
1
8
ya wants to see only the schedule so tv program thanks streamwatcher but the code does not work for me?
 

streamwatcher2013

Well-known member
Oct 24, 2013
817
334
63
USA
Yes that would be great streamwatcher2013
Try this

Code:
<item>
<title>http://www.digiturk.com.tr/yayin-akisiı Schedule</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR cyan] [makelist.param1][/COLOR]</title>
<link>$doregex[makelist2]</link>
<thumbnail>http://contentlibrary.digiturk.com.tr/Channel/[makelist.param3]/Image/[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[Title":"(.*?)".*?FileName":"(.*?)".*?"Id":(\d+)]]></expres>
<page>http://www.digiturk.com.tr/yayin-akisi/api/kanal/index/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[COLOR cyan] [makelist2.param1][/COLOR]</title>
<link>$doregex[makelist3]</link>
<thumbnail>http://www.tvyayinakisi.com/[program.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('id="results-outer">(?s)(.*)',page_data)[0].replace('Ç','Ç').replace('ü','ü').replace('Ö','Ö')
  return re.findall('<h2>(.*?)</h2>(?s)(.*?)</ul',list)
]]></expres>
<page>http://www.digiturk.com.tr/yayin-akisi/api/kanal/liste/[makelist.param3]</page>
</regex>
<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
<title> ([makelist3.param3])[COLOR cyan] [makelist3.param2][/COLOR]</title>
<link>$doregex[makelist4]</link>
<thumbnail>http://www.tvyayinakisi.com/[program.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[href="./(\w.*?)"[\w\W\s]*?channel-name.*?>(.*?)<[\w\W\s]*?datetime.*?>(\d+:\d+)]]></expres>
<page>[makelist2.param2]</page>
</regex>
<regex>
<name>makelist4</name>
<listrepeat><![CDATA[
<title> ([makelist4.param2])[COLOR cyan] [makelist4.param1][/COLOR]</title>
<link>https://tvrehberi.digiturk.com.tr/memberfeatures/recordProgram.aspx?BroadcastID=[makelist4.param3]&operation=record</link>
<thumbnail>http://www.tvyayinakisi.com/[program.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA["day">(\d.*?)<.*\n.*>(\d+:\d+)[\w\W\s]*?data-broadcastid="(.*?)"]]></expres>
<page>http://www.digiturk.com.tr/yayin-akisi/api/[makelist3.param1]</page>
</regex>
<thumbnail>http://www.digiturk.com.tr/App_Themes/Basic/image/Logo-bein.png</thumbnail>
</item>
 

nipon0007

New member
Apr 2, 2018
11
3
3
I have update LSP to be 2.8.2 the UrlResolver play is fail. must be back to 2.8.1 is working. Please help me checked for UrlResolver play.
Thanks.
 

streamwatcher2013

Well-known member
Oct 24, 2013
817
334
63
USA
I have update LSP to be 2.8.2 the UrlResolver play is fail. must be back to 2.8.1 is working. Please help me checked for UrlResolver play.
Thanks.
change the line in addon.xml file of LSP to correct urlresolver instead of resolveurl

Code:
<import addon="script.module.urlresolver" optional="true" />
 
Status
Not open for further replies.