Help for Regex

Status
Not open for further replies.

streamwatcher2013

Active member
Oct 24, 2013
464
81
28
USA
do not work

<expres>"player".*? (?:file|source).*? [\'"]([^'"]+)</expres>

<expres>(?:file|source).*? [\'"]([^'"]+)</expres>
Here It is

Code:
<item>
<title>[COLOR green]Al.sunnah[COLOR red][HD][/COLOR]</title>
<link>$doregex[url]</link>
<regex>
<name>url</name>
<expres>"player".*?(?:file|source).*?[\'"]([^'"]+)</expres>
<!--<expres>"player".*?[\'"](h[^'"]+)</expres>-->
<page>http://www.giniko.com/watch.php?id=326</page>
</regex>
</item>

<item>
<title>[COLOR green]Makkah[COLOR red][HD][/COLOR]</title>
<link>$doregex[url]</link>
<regex>
<name>url</name>
<expres>(?:file|source).*?[\'"]([^'"]+)</expres>
<page>http://www.giniko.com/watch.php?id=327</page>
</regex>
</item>
 
Last edited:

HAJAR

Banned
May 27, 2018
19
0
0
middelburg
Here It is

Code:
<item>
<title>[COLOR green]Al.sunnah[COLOR red][HD][/COLOR]</title>
<link>https://www.tvaddons.co/forums/$doregex[url]</link>
<regex>
<name>url</name>
<expres>"player".*?(?:file|source).*?[\'"]([^'"]+)</expres>
<!--<expres>"player".*?[\'"](h[^'"]+)</expres>-->
<page>http://www.giniko.com/watch.php?id=326</page>
</regex>
</item>

<item>
<title>[COLOR green]Makkah[COLOR red][HD][/COLOR]</title>
<link>https://www.tvaddons.co/forums/$doregex[url]</link>
<regex>
<name>url</name>
<expres>(?:file|source).*?[\'"]([^'"]+)</expres>
<page>http://www.giniko.com/watch.php?id=327</page>
</regex>
</item>



thank you very much for you streamwatcher2013 you are best bro :eek:
 

HAJAR

Banned
May 27, 2018
19
0
0
middelburg
someone can make regex for that is live tv thanks for everyone

Code:
http://amozhgary.tv/Live
 
Last edited by a moderator:

HAJAR

Banned
May 27, 2018
19
0
0
middelburg
I would like you to help me but what is code tag where can I find
I have only that
Code:
http://amozhgary.tv/Live
Code:
http://www.ustream.tv/channel/EpqDGDmX8Cn
and thank you for that you want to me help thanks bro streamwatcher2013:eek::eek::eek::eek::eek::eek::eek::eek:
 
Last edited by a moderator:

BymemoLee

Member
Apr 30, 2018
35
0
6
Can you help

Code:
<item>
<title>Show Tv</title>
<link>$doregex[server1]</link>
<regex>
<name>server1</name>
<expres><![CDATA[#$pyFunction
import re,requests 
def GetLSProData(page_data,Cookie_Jar,m,url = 'hxxps://mn-nl.mncdn.com/showtv_nl/smil:showtvnl.smil/playlist.m3u8'):
 headers = {'User-Agent': 'Mozilla/5.0','Referer': 'hxxp://www.showtv.com.tr/canli-yayin'}
 source = requests.get(url, 

headers=headers)
 m3u8 = re.findall('playlist.m3u8.(.*)....*ht_live', source.text)[0]
 return m3u8 + '|User-Agent' + '|Referer'
]]></expres>
<page></page>
<cookieJar></cookieJar>

</regex>
</item>
 

myosmc

Member
May 18, 2018
51
1
6
no need regex
Code:
<item>
<title>dynamo</title>
<link>https://s02.tvcdn.co/live/bein-sport-1.m3u8|User-Agent=Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Mobile Safari/537.36&Referer=https://www.dinamotv14.com/tr/channel/watch/bein-sport-1</link>
</item>
none of these are running to see the FIFAworldcup ...
Code:
https://kkk.dinamotv.com/
 

kabcasa

New member
Apr 28, 2015
20
0
1
At home
Can you help

Code:
<item>
<title>Show Tv</title>
<link>https://www.tvaddons.co/forums/$doregex[server1]</link>
<regex>
<name>server1</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests 
def GetLSProData(page_data,Cookie_Jar,m,url = 'hxxps://mn-nl.mncdn.com/showtv_nl/smil:showtvnl.smil/playlist.m3u8'):
 headers = {'User-Agent': 'Mozilla/5.0','Referer': 'hxxp://www.showtv.com.tr/canli-yayin'}
 source = requests.get(url, 

headers=headers)
 m3u8 = re.findall('playlist.m3u8.(.*)....*ht_live', source.text)[0]
 return m3u8 + '|User-Agent' + '|Referer'
]=]=></expres>
<page></page>
<cookieJar></cookieJar>

</regex>
</item>
try this :
Code:
<item>
<title>Show Tv</title>
<link>$doregex[server1]</link>
<regex>
<name>server1</name>
<expres><![CDATA[#$pyFunction
import re,requests 
def GetLSProData(page_data,Cookie_Jar,m,url = 'http://www.showtv.com.tr/canli-yayin'):
 headers = {'User-Agent': 'Mozilla/5.0','Referer': ''}
 source = requests.get(url,headers=headers)
 m3u8 = re.findall('(?s)ht_stream_m3u8":"(.*?)"', source.text)[0].replace('\\','')
 return m3u8 + '||Referer='+url
]]></expres>
<page></page>
<cookieJar></cookieJar>

</regex>
</item>
 

syntax

Moderator
Staff member
Jun 6, 2017
110
2
18
thanks man but I want regex if you can make me thanks for everyone
it is against the forum rules to post the live links please follow the example kavan give you or change the start of the url from http to hxxp.
 

kavan

Member
Aug 14, 2016
46
2
8
thanks man but I want regex if you can make me thanks for everyone


Try This

Code:
<item>
<title>Amozhgary</title>
<link>rtmpt://e7wfgmi6.mdn.onyxservers.com/livepkgr//AmozhgaryLiveTv swfUrl=http://amozhgary.tv/player/player.swf live=true timeout=15 pageUrl=http://www.toheed.tv/Index.aspx</link>
<thumbnail></thumbnail>
<fanart></fanart>
</item

 
Status
Not open for further replies.