Help for Regex

hassuni

New member
Dec 27, 2013
4
0
1
Hello all,
can you help me please
it possible to save regex as M3U8 file and save in dropbox to play it in SmartIPTV App,

the session changed every Day.
here is the links hxxp://www.elahmad.com/tv/embed.php?id=egypt_channel1
this code changing (session=8bf2eb11c0bf997c80d8920e9fc363b5e7e98a0b5b536fdac72ac03393e1a78fa299017ce29bf1aa)
thanks alot
 

gujal

Developer
Dec 26, 2013
189
7
18
The XML with embedded python code posted here will only work on the LiveStreamsPro Kodi addon and will not work with anything else
 

tpoupi

New member
Jan 2, 2016
14
0
1
hi guru please, need help.Thank
<item>
<Title>regex hxxp://www.liketvw.com/embed/fox1 </title>
<link>$doregex[tokN]|User-Agent=Mozilla/5.0&amp;Referer=hxxp://www.liketvw.com</link>
<regex><name>tokN</name>
<expres>"(http.*?m3u8.*?)"</expres>
<page>hxxp://www.liketvw.com/embed/fox1</page>
<referer>hxxp://www.liketvw.com</referer>
<agent>Mozilla/5.0 (iPad; CPU OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3</agent>
<accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8</accept>
</regex>
 

streamwatcher2013

Active member
Oct 24, 2013
376
26
28
USA
Try this:

Code:
<item>
<title>regex hxxp://www.liketvw.com/embed/fox1</title>          
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  from urlresolver.plugins.lib import jsunpack   # If you have urlresolver
#  from resolveurl.plugins.lib import jsunpack   # If you have resoleUrl
  source=requests.get('http://www.liketvw.com/embed/fox1',headers={'user-agent':'Mozilla/5.0','referer':'http://www.liketvw.com/'}).content
  source=requests.get(re.findall('id="player"[\w\W]*?src="([^"]+)',source)[0],headers={'user-agent':'Mozilla/5.0','referer':'http://www.liketvw.com/embed/fox1'}).content
  packed=re.findall('(eval.*m3u8.*)',source)[0];gm3u8=jsunpack.unpack(packed)#.replace('\\', '')
  return re.findall('src:\s*[\'"]([^\'"]+)',gm3u8)[0]+'|user-agent=Mozilla/5.0&referer=http://www.liketvw.com/embed/fox1'
]]></expres>
<page></page>
</regex>
</item>
 

Similar threads