Help for Regex

Status
Not open for further replies.

trejo1

New member
Sep 7, 2018
2
0
0
selenium webdriver example

hello forum,
I am new to regex and using LSPro in kodi 17.6 The version I have managed to find is 2.8 does anyone point me to a latest working one.

I am also trying to import selenium . I have installed selenium using pip in win 7 and placed in Lib addon
does anyone know how to use selenium webdriver with Lspro. the openload example is not working.
 

Lacasitos74

Member
Nov 21, 2016
43
1
8
Thanks a lot..
The app i use for do regex catch in a difrent way..
Now i star use this site..
thanks a lot for explain me..
hi gurus...

i cant play this regex.. i put the help i ask but don't run the film..

Code:
<item>
<title>[COLOR lime][B] - [/B][/COLOR] [COLOR white][B][I]space filmes[/I][/B][/COLOR]</title>
<link>$doregex[menu]</link>
<regex>
<name>menu</name>
<listrepeat><![CDATA[
	<SetViewMode>55</SetViewMode>
			<title>[COLOR lime][B] - [/B][/COLOR] [COLOR white][B][I][menu.param2][/I][/B][/COLOR]</title>
			<link>$doregex[filmes]</link>
]]></listrepeat>
<expres><![CDATA[(?s)<li>\s+<a\s+href="https\:\/\/spacefilmes\.(.*?)">(.*?)<\/a><\/li]]></expres>
<page>https://spacefilmes.xyz</page>
</regex>
<regex>
<name>filmes</name>
<listrepeat><![CDATA[
	<SetViewMode>55</SetViewMode>
			<title>[COLOR lime][B] - [/B][/COLOR] [COLOR white][B][I][filmes.param3][/I][/B][/COLOR]</title>
			<link>$doregex[servidor]</link>
			<thumbnail>https://spacefilmes.xyz/[filmes.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)li>.*?href="(.*?)".*?src="https\:\/\/spacefilmes\.xyz\/\/(.*?)".*?alt="(.*?)".*?<\/li]]></expres>
<page>https://spacefilmes.[menu.param1]</page>
</regex>
<regex>
<name>servidor</name>
<listrepeat><![CDATA[
<SetViewMode>55</SetViewMode>
<title>[COLOR lime] - [/COLOR] [COLOR white] Servidor [servidor.param2][/COLOR]</title>
<urlsolve>$doregex[getUrl]</urlsolve>
<thumbnail>https://spacefilmes.xyz/[filmes.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[movie_links.*\n.*\n.*?href="(.*?)".+?(Streamango|Openload)]]></expres>
<page>https://spacefilmes.xyz[filmes.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres>src="([^"]+)</expres>
<page>[servidor.param1]</page>
</regex>
</item>
can anyone help me please...
Thanks a lot
 

streamwatcher2013

Well-known member
Oct 24, 2013
849
352
63
USA
hi gurus...

i cant play this regex.. i put the help i ask but don't run the film..

Code:
<item>
<title>[COLOR lime][B] - [/B][/COLOR] [COLOR white][B][I]space filmes[/I][/B][/COLOR]</title>
<link>https://www.tvaddons.co/forums/$doregex[menu]</link>
<regex>
<name>menu</name>
<listrepeat><=!=[=C=D=A=T=A=[
	<SetViewMode>55</SetViewMode>
			<title>[COLOR lime][B] - [/B][/COLOR] [COLOR white][B][I][menu.param2][/I][/B][/COLOR]</title>
			<link>https://www.tvaddons.co/forums/$doregex[filmes]</link>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[(?s)<li>\s+<a\s+href="https\:\/\/spacefilmes\.(.*?)">(.*?)<\/a><\/li]=]=></expres>
<page>https://spacefilmes.xyz</page>
</regex>
<regex>
<name>filmes</name>
<listrepeat><=!=[=C=D=A=T=A=[
	<SetViewMode>55</SetViewMode>
			<title>[COLOR lime][B] - [/B][/COLOR] [COLOR white][B][I][filmes.param3][/I][/B][/COLOR]</title>
			<link>https://www.tvaddons.co/forums/$doregex[servidor]</link>
			<thumbnail>https://spacefilmes.xyz/[filmes.param2]</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[(?s)li>.*?href="(.*?)".*?src="https\:\/\/spacefilmes\.xyz\/\/(.*?)".*?alt="(.*?)".*?<\/li]=]=></expres>
<page>https://spacefilmes.[menu.param1]</page>
</regex>
<regex>
<name>servidor</name>
<listrepeat><=!=[=C=D=A=T=A=[
<SetViewMode>55</SetViewMode>
<title>[COLOR lime] - [/COLOR] [COLOR white] Servidor [servidor.param2][/COLOR]</title>
<urlsolve>$doregex[getUrl]</urlsolve>
<thumbnail>https://spacefilmes.xyz/[filmes.param2]</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[movie_links.*\n.*\n.*?href="(.*?)".+?(Streamango|Openload)]=]=></expres>
<page>https://spacefilmes.xyz[filmes.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres>src="([^"]+)</expres>
<page>[servidor.param1]</page>
</regex>
</item>
can anyone help me please...
Thanks a lot
Try this. Recommend to use Título de filme

Code:
https://pastebin.com/raw/bzzFTgxt
 

udomrat

New member
Nov 10, 2016
14
4
3
Something wrong

Code:
<item>
<title>[COLOR red]● P2P ●[/COLOR] [COLOR orange]● livesport.ws ●[/COLOR]</title>
<link>$doregex[makelist]</link>
<thumbnail>https://static.livesport.ws/templates/livesport/images/logo.png</thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
    <title>[COLOR cyan]● [makelist.param5][/COLOR] [COLOR red][makelist.param7][/COLOR] [COLOR snow][makelist.param8][/COLOR] [COLOR yellow][makelist.param1][/COLOR]</title>
    <link>$doregex[makelist2]</link>
    <thumbnail>https://static.livesport.ws/templates/livesport/images/logo.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[title="(.*?)" href="(.*?)".*\n.*\n.*\n.*src="(.*?)".*\n.*\n.*id="(.*?)" data-datetime="(.*?) (.*?)" data-dtformat=".*?">(.*?)(?<!OFFLINE)<\/i><\/span>.*\n.*\n.*competition'>(.*?)<]]></expres>
<page>https://livesport.ws/en</page>
<referer>https://livesport.ws/en</referer>
<agent>Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.2.3.4000</agent>
</regex>

<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
    <title>[COLOR lawngreen]● [makelist2.param2][/COLOR][COLOR cyan][makelist2.param1] [makelist2.param4][/COLOR]</title>
    <link>plugin://program.plexus/?url=[makelist2.param3]$doregex[get-name1]&$doregex[mode]</link>
    <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)class=.\"dark-btn.\">.*?(?<!Flash)<.*?class=.\"format.\">(.*?)<.*?<a href=.\"(sop|acestream)(.*?)".*?"speed.\">(.*?)<]]></expres>
<page>https://livesport.ws/engine/modules/sports/sport_refresh.php?from=event&event_id=$doregex[event_id]&tab_id=undefined&post_id=$doregex[post_id]</page>
<referer>https://livesport.ws[makelist.param2]</referer>
<agent>Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.2.3.4000</agent>
</regex>

<regex>
<name>event_id</name>
<expres>event-(.*)</expres>
<page>[makelist.param4]</page>
<referer>https://livesport.ws/en</referer>
</regex>

<regex>
<name>post_id</name>
<expres>([0-9]+)</expres>
<page>[makelist.param2]</page>
<referer>https://livesport.ws/en</referer>
</regex>

<regex>
<name>get-name1</name>
<expres>$pyFunction: '[makelist2.param3]'.replace('\/','/')</expres>
<page></page>
</regex>

<regex>
<name>mode</name>
<expres>$pyFunction: '[makelist2.param2]'.replace("sop","mode=2&name=sopcast").replace("acestream","mode=1&name=acestream")</expres>
<page></page>
</regex>
</item>
 

Rockey

Member
Sep 11, 2018
68
0
6
Need your Help with regex

Hey genius experts... Hope you all doing well, i have been reading the whole Help with regex forums from 1-96 and your helps and efforts to people are really Appreciatable.

I need help with this link: hxxp://dvrrtmp2.giniko.com/xml/tolotv.plist

This is the page where i get a live stream link of a tv channel with 24hrs TV Catchup of it.
My question is how can i have this on my kodi LSP v282?

Looking forward and Thanks in advance
 

Lacasitos74

Member
Nov 21, 2016
43
1
8
hi good people..
can you help me with this regex
Code:
<item>
<title>[COLOR lawngreen][B] - [/B][/COLOR][COLOR white][B] Xtream Codes  [/B][/COLOR][COLOR lime][B][I] >>Free Accounts<< [/I][/B][/COLOR]</title>
<link>$doregex[menu]</link>
<thumbnail>https://http2.mlstatic.com/painel-iptv-xtream-codes-licenca-full-instalaco-gratis-D_NQ_NP_886796-MLB27785228154_072018-F.jpg</thumbnail>
<regex>
<name>menu</name>
<listrepeat><![CDATA[
 <title>[COLOR lawngreen][B] - [/B][/COLOR][COLOR white] [menu.param1][/COLOR]</title>
<link>$doregex[class]</link>
<thumbnail>https://http2.mlstatic.com/painel-iptv-xtream-codes-licenca-full-instalaco-gratis-D_NQ_NP_886796-MLB27785228154_072018-F.jpg</thumbnail>
 ]]></listrepeat>
<expres><![CDATA[at\-above\-post\-cat\-page\s+addthis\_tool"\s+data\-url="http\:\/\/www\.iptvurls\.com\/iptv\-m3u\-playlist\-(.*?)\/"><\/div>\n<p>(.*?)<a]]></expres>
<page>http://www.iptvurls.com/category/iptv-m3u-playlist/</page>
</regex>
<regex>
<name>class</name>
<listrepeat><![CDATA[
	<title>[COLOR lime][B][class.param2][/B][/COLOR]</title>
	<link>$doregex[makelist]</link>
	<thumbnail>https://http2.mlstatic.com/painel-iptv-xtream-codes-licenca-full-instalaco-gratis-D_NQ_NP_886796-MLB27785228154_072018-F.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[(http\:\/\/(.*?)\/get\.php\?username=(.*?)&.*password=(.*?)&.*type=m3u)]]></expres>
<page>[menu.param2]</page>
</regex>   
<regex>
<name>makelist</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import xbmcgui
    dialog = xbmcgui.Dialog()
    dialog.textviewer('Xtream Codes', ' - Server: [class.param2] \n\n\n\n - Username: [class.param3] \n\n [class.param4]')
]]></expres>
<page></page>
<NOTPlayable>True</NOTPlayable>
</regex>
</item>
Thanks a lot
 

streamwatcher2013

Well-known member
Oct 24, 2013
849
352
63
USA
Hey genius experts... Hope you all doing well, i have been reading the whole Help with regex forums from 1-96 and your helps and efforts to people are really Appreciatable.

I need help with this link: hxxp://dvrrtmp2.giniko.com/xml/tolotv.plist

This is the page where i get a live stream link of a tv channel with 24hrs TV Catchup of it.
My question is how can i have this on my kodi LSP v282?

Looking forward and Thanks in advance
Is it the way you want to see it live? Not all the recorded link

Code:
https://pastebin.com/raw/JPGNQwwN
 

streamwatcher2013

Well-known member
Oct 24, 2013
849
352
63
USA
hi good people..
can you help me with this regex
Code:
<item>
<title>[COLOR lawngreen][B] - [/B][/COLOR][COLOR white][B] Xtream Codes  [/B][/COLOR][COLOR lime][B][I] >>Free Accounts<< [/I][/B][/COLOR]</title>
<link>https://www.tvaddons.co/forums/$doregex[menu]</link>
<thumbnail>https://http2.mlstatic.com/painel-iptv-xtream-codes-licenca-full-instalaco-gratis-D_NQ_NP_886796-MLB27785228154_072018-F.jpg</thumbnail>
<regex>
<name>menu</name>
<listrepeat><=!=[=C=D=A=T=A=[
 <title>[COLOR lawngreen][B] - [/B][/COLOR][COLOR white] [menu.param1][/COLOR]</title>
<link>https://www.tvaddons.co/forums/$doregex[class]</link>
<thumbnail>https://http2.mlstatic.com/painel-iptv-xtream-codes-licenca-full-instalaco-gratis-D_NQ_NP_886796-MLB27785228154_072018-F.jpg</thumbnail>
 ]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[at\-above\-post\-cat\-page\s+addthis\_tool"\s+data\-url="http\:\/\/www\.iptvurls\.com\/iptv\-m3u\-playlist\-(.*?)\/"><\/div>\n<p>(.*?)<a]=]=></expres>
<page>http://www.iptvurls.com/category/iptv-m3u-playlist/</page>
</regex>
<regex>
<name>class</name>
<listrepeat><=!=[=C=D=A=T=A=[
	<title>[COLOR lime][B][class.param2][/B][/COLOR]</title>
	<link>https://www.tvaddons.co/forums/$doregex[makelist]</link>
	<thumbnail>https://http2.mlstatic.com/painel-iptv-xtream-codes-licenca-full-instalaco-gratis-D_NQ_NP_886796-MLB27785228154_072018-F.jpg</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[(http\:\/\/(.*?)\/get\.php\?username=(.*?)&.*password=(.*?)&.*type=m3u)]=]=></expres>
<page>[menu.param2]</page>
</regex>   
<regex>
<name>makelist</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import xbmcgui
    dialog = xbmcgui.Dialog()
    dialog.textviewer('Xtream Codes', ' - Server: [class.param2] \n\n\n\n - Username: [class.param3] \n\n [class.param4]')
]=]=></expres>
<page></page>
<NOTPlayable>True</NOTPlayable>
</regex>
</item>
Thanks a lot
Don't waste your time on those public IPTV links
 

Rockey

Member
Sep 11, 2018
68
0
6
code did not work.

GMorning Bro..
Thanks for your effort.. but Unfortunately that code did not work. nothing opened nothing played. only check log for information error. First I wanted to have the whole xml (hxxp://dvrrtmp2.giniko.com/xml) page or directory in kodi. but i think it will be very difficult so to answer your question I want to have the livestream link with the recorded links in kodi, but if that is not possible just the livestream is okay. i use kodi 17.1 and Livestreamspro v2.8.2

thanks
 
Last edited:

streamwatcher2013

Well-known member
Oct 24, 2013
849
352
63
USA
GMorning Bro..
Thanks for your effort.. but Unfortunately that code did not work. nothing opened nothing played. only check log for information error. First I wanted to have the whole xml (hxxp://dvrrtmp2.giniko.com/xml) page or directory in kodi. but i think it will be very difficult so to answer your question I want to have the livestream link with the recorded links in kodi, but if that is not possible just the livestream is okay. i use kodi 17.1 and Livestreamspro v2.8.2

thanks
1/ Save this file to tolo.xml. make sure is .xml extension not the .txt extension.
2/ From LSP addons Configure. add File from Add source and browse to the file you save at step 1.
3/ You may updates the Kodi to the lastest one 17.6

Code:
https://pastebin.com/raw/DjRNp01z
 

Rockey

Member
Sep 11, 2018
68
0
6
hxxp://i66.tinypic.com/14vod9e.jpg

Hello Bro
Please see the photo, for some reasons i get vBulletin Message when i tried to share my screen shot photo here.
Regarding tolo I did all of those but still did not work
 

streamwatcher2013

Well-known member
Oct 24, 2013
849
352
63
USA
hxxp://i66.tinypic.com/14vod9e.jpg

Hello Bro
Please see the photo, for some reasons i get vBulletin Message when i tried to share my screen shot photo here.
Regarding tolo I did all of those but still did not work
You may enable log debug option in LSP Configure and post it over pastebin. From there I may see what is cause the error
 

Rockey

Member
Sep 11, 2018
68
0
6
hxxps://pastebin.com/raw/4CuU64dF

Here is the complete error log for it.
 
Last edited:

streamwatcher2013

Well-known member
Oct 24, 2013
849
352
63
USA
hxxps://pastebin.com/raw/4CuU64dF

Here is the complete error log for it.
It's not complete log, but any way the log show me LSP playing the recorded stream "playlist.m3u8" instead the live stream. And the recorded stream will not allow you to play "Open failed with code 404". I did tested and play all 5 dif. ways for expression on the same result with Kodi 17.3 and 17.6 for this new xml file.

Code:
https://pastebin.com/raw/CLAkQ5yH
 
Last edited:

Rockey

Member
Sep 11, 2018
68
0
6
hxxps://pastebin.com/raw/YReHtCC1

i deleted the old kodi.log before opening new xml source in Lsp. Here is the log for all of them that i clicked... but if you find this annoying dont bother with it anymore. i already appreciate your efforts bro.
i kinda think it needs a whole plugin to be played from.
 

streamwatcher2013

Well-known member
Oct 24, 2013
849
352
63
USA
hxxps://pastebin.com/raw/YReHtCC1

i deleted the old kodi.log before opening new xml source in Lsp. Here is the log for all of them that i clicked... but if you find this annoying dont bother with it anymore. i already appreciate your efforts bro.
i kinda think it needs a whole plugin to be played from.
I don't know how do you running the add-ons. you don't need to delete the log file, it will create a new one every time you open the Kodi. But from your log it shows the stream dif. from my end.

Here is your log shows the live stream in red

Code:
<string>[B][COLOR="#0000FF"]false[/COLOR][/B]</string>
<key>HlsStreamURL</key>
<string>[B][COLOR="#FF0000"]http://nimplus6.giniko.com/tolotv/tolotv.stream/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9OS8xMy8yMDE4IDEyOjU5OjA1IFBNJmhhc2hfdmFsdWU9eVJRRjVra3ZqRExxZzJpaEJRb0JSUT09JnZhbGlkbWludXRlcz0yODgw[/COLOR][/B]</string>
</dict>
And my log shows the live stream link in red and it is dynamic link.

Code:
<string>[B][COLOR="#0000FF"]false[/COLOR][/B]</string>
<key>HlsStreamURL</key>
<string>[B][COLOR="#FF0000"]http://tna1.giniko.com/live/2bfcee8dc34c3f779412d12146f5bd8d/5b99891e/tolotv.m3u8[/COLOR][/B]</string>
</dict>
 
Status
Not open for further replies.