IPTVSimple PVR-addon with XMLTV EGP
(2014-01-08, 18:15)afedchin Wrote:
(2014-01-08, 18:09)badway Wrote: +1 for the regex support,

Reason is for dynamic URLs, for example where you need to calculate some value
Please, provide an example.

<item>
<title>Test</title>
<link>$doregex[rtmp] playpath=$doregex[path] swfUrl=$doregex[swf] pageUrl=http://castalba.tv swfVfy=true live=true timeout=10</link>

<regex>
<name>rtmp</name>
<expres>'streamer': '([^']*)<expres>
<page>http://castalba.tv/embed.php?cid=19045</page>
<referer> http://canhome1a.blogspot.com/</referer>
</regex>

<regex>
<name>path</name>
<expres>'file': '([^']*)<expres>
<page>http://castalba.tv/embed.php?cid=19045</page>
<referer> http://canhome1a.blogspot.com/</referer>
</regex>

<regex>
<name>swf</name>
<expres>'flashplayer': "([^"]*)<expres>
<page>http://castalba.tv/embed.php?cid=19045</page>
<referer> http://canhome1a.blogspot.com/</referer>
<agent></agent>
</regex>

</item>
we can have something like :

#EXTM3U
"^#EXT-X-STREAM-INF:-1,channel name ,rtmp='streamer': '([^']*) ,path='file': '([^']*) ,swf='flashplayer': "([^"]*)"
$doregex[rtmp] playpath=$doregex[path] swfUrl=$doregex[swf] pageUrl=http://castalba.tv swfVfy=true live=true timeout=10

this is just an non working example but we need the add-on to support the regex expression to get it working

a tutorial on regex
http://www.regular-expressions.info/tutorial.html and/or http://regexone.com/
XBMC Fever..


Messages In This Thread
Problem with HLS - by san77 - 2013-10-31, 17:23
RE: IPTVSimple PVR-addon with XMLTV EGP - by fouad796 - 2014-01-08, 18:55
Channel Logo issues - by cdonnie - 2014-03-28, 09:21
Logout Mark Read Team Forum Stats Members Help
IPTVSimple PVR-addon with XMLTV EGP14