Help for Regex

Status
Not open for further replies.

tungbeng95

Member
Oct 25, 2018
392
16
18
Some helping from everybody

Hi everybody.I'm go forum at first.Can u help me how to use X-forwarded-for= with .php,please?
EX: I do try hxxp://ipv4.api.nos.nl/resolve.php/livestream?url=/live/npo/tvlive/npo1/npo1.isml/npo1.m3u8|X-forwarded-for
but its seems not working...
 
Last edited:

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Hi Streamwatcher, thanks i have just checked there are only a few TV shows on there so no worries. Any chance you could look at helping me regex this site:
hxxps://www.premiershiprugby.com/videos/full-match-video/

many thanks
Try this to see it works. Geo-blocked from my location

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

umonkey

Member
Sep 18, 2012
70
0
6
Try this to see it works. Geo-blocked from my location

Code:
https://pastebin.com/raw/bcCWeGmQ
You my friend are a legend! thanks very much all working very nicely.

Sorry but i do have another request this one is a little more complex hxxp://www.replaymatches.com/ or maybe you know of a addon that already has full match replays?

thanks again
 
Last edited:

umonkey

Member
Sep 18, 2012
70
0
6
I see what you mean. On the "The Meg" the 2nd 720 stream is working and my code only detect the 1st one. we can not tell which one is working or not, unless we prefer to always capture the 2nd stream.

Just changed this following code to get all those streams plus 2nd 720p stream

Code:
<regex>
<name>getUrl</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('[makelist.param1]',headers={'Referer':'http://blaxup.org/movies-list/','User-Agent':'Mozilla/5.0','Accept':'*/*'}).text
  if '3D-tab' in source:
    return re.findall('(?s)aria-labelledby="3D-tab.+?href="(h.+?3D[^"]+)',source)[0]
  elif '4K-tab' in source:
    return re.findall('(?s)aria-labelledby="4K-tab.+?href="(h.+?2160[^"]+)',source)[0]
  elif '1080p-tab' in source:
    return re.findall('(?s)aria-labelledby="1080p-tab.+?href="(h[^"]+)',source)[0]
  else:
    return re.findall('(?s)aria-labelledby="720p-tab.+?"name".+?href="(h.+?720[^"]+)',source)[0]
]=]=></expres>
<page></page>
</regex>


For 4K. Not so sure It's 4K or not :confused: :cool:



Sorry to go back to this one but i'm having some problems with other movies now could you please have a look?

hxxp://blaxup.org/movie/unbreakable-spirit-2018-10-26

this will not play and i can't work out why.

Thanks again.
 

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
You my friend are a legend! thanks very much all working very nicely.

Sorry but i do have another request this one is a little more complex hxxp://www.replaymatches.com/ or maybe you know of a addon that already has full match replays?

thanks again
Try this. I just do the whole home page for all the match from all league. You can change the number in max-results to higher and get more links. Some of them have no games or links

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


 

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Sorry to go back to this one but i'm having some problems with other movies now could you please have a look?

hxxp://blaxup.org/movie/unbreakable-spirit-2018-10-26

this will not play and i can't work out why.

Thanks again.
As I said last time. The source will have either 1 or multiple links. And I can not tell which one is playable. So either we choose link1 or link2 or link 3,.... The 1st code you said link 1 didn't play so we choose link2. Just change this section below. If it plays and it plays. I can't not force them to play.

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

MatheusZ

New member
Oct 26, 2018
1
0
0
Hello, sorry if I'm asking too much but I was needing a regex for the channels of this site only one model
Code:
https://canais.gratis/assistir-discovery-kids-online-24-horas-ao-vivo_8adae7f39.html
if possible
 
Last edited by a moderator:

Beezlo

Member
Mar 17, 2016
33
0
6
Hi can anybody fix this please thanks in Advance.....


Code:
<item><title> SHOW TV</title><link>$doregex[m3u8]|User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0</link><regex><name>m3u8</name>
<expres>iframe.*?src="(.*?)"</expres><page>http://canlitvizle.com/yayinim.php?kanal=show-tv-kesintisiz</page><referer>http://canlitvizle.com</referer></item>
 

umonkey

Member
Sep 18, 2012
70
0
6
Try this. I just do the whole home page for all the match from all league. You can change the number in max-results to higher and get more links. Some of them have no games or links

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


Thanks again streamwatcher but the first and second streams aren't working sorry to be a pain but could you please have a look?

Many thanks again greatly appreciated
 

gujal

Developer
Dec 26, 2013
609
333
63
Thanks again streamwatcher but the first and second streams aren't working sorry to be a pain but could you please have a look?
Many thanks again greatly appreciated
The first and second are not working as the certificate used by the site (weshare) is not trusted by Kodi.
On Windows, You can fix it by adding the following to the end of C:\Program Files\Kodi\system\certs\cacert.pem file
Code:
Let's Encrypt ISRG Root X1
===============================================
-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw
TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh
cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4
WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJu
ZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBY
MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54rVygc
h77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+
0TM8ukj13Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6U
A5/TR5d8mUgjU+g4rk8Kb4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sW
T8KOEUt+zwvo/7V3LvSye0rgTBIlDHCNAymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyH
B5T0Y3HsLuJvW5iB4YlcNHlsdu87kGJ55tukmi8mxdAQ4Q7e2RCOFvu396j3x+UC
B5iPNgiV5+I3lg02dZ77DnKxHZu8A/lJBdiB3QW0KtZB6awBdpUKD9jf1b0SHzUv
KBds0pjBqAlkd25HN7rO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jh5Xos1AnX5iItreGCc=
-----END CERTIFICATE-----

Let’s Encrypt Authority X3
===============================================
-----BEGIN CERTIFICATE-----
MIIFjTCCA3WgAwIBAgIRANOxciY0IzLc9AUoUSrsnGowDQYJKoZIhvcNAQELBQAw
TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh
cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTYxMDA2MTU0MzU1
WhcNMjExMDA2MTU0MzU1WjBKMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNTGV0J3Mg
RW5jcnlwdDEjMCEGA1UEAxMaTGV0J3MgRW5jcnlwdCBBdXRob3JpdHkgWDMwggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCc0wzwWuUuR7dyXTeDs2hjMOrX
NSYZJeG9vjXxcJIvt7hLQQWrqZ41CFjssSrEaIcLo+N15Obzp2JxunmBYB/XkZqf
89B4Z3HIaQ6Vkc/+5pnpYDxIzH7KTXcSJJ1HG1rrueweNwAcnKx7pwXqzkrrvUHl
Npi5y/1tPJZo3yMqQpAMhnRnyH+lmrhSYRQTP2XpgofL2/oOVvaGifOFP5eGr7Dc
Gu9rDZUWfcQroGWymQQ2dYBrrErzG5BJeC+ilk8qICUpBMZ0wNAxzY8xOJUWuqgz
uEPxsR/DMH+ieTETPS02+OP88jNquTkxxa/EjQ0dZBYzqvqEKbbUC8DYfcOTAgMB
AAGjggFnMIIBYzAOBgNVHQ8BAf8EBAMCAYYwEgYDVR0TAQH/BAgwBgEB/wIBADBU
BgNVHSAETTBLMAgGBmeBDAECATA/BgsrBgEEAYLfEwEBATAwMC4GCCsGAQUFBwIB
FiJodHRwOi8vY3BzLnJvb3QteDEubGV0c2VuY3J5cHQub3JnMB0GA1UdDgQWBBSo
SmpjBH3duubRObemRWXv86jsoTAzBgNVHR8ELDAqMCigJqAkhiJodHRwOi8vY3Js
LnJvb3QteDEubGV0c2VuY3J5cHQub3JnMHIGCCsGAQUFBwEBBGYwZDAwBggrBgEF
BQcwAYYkaHR0cDovL29jc3Aucm9vdC14MS5sZXRzZW5jcnlwdC5vcmcvMDAGCCsG
AQUFBzAChiRodHRwOi8vY2VydC5yb290LXgxLmxldHNlbmNyeXB0Lm9yZy8wHwYD
VR0jBBgwFoAUebRZ5nu25eQBc4AIiMgaWPbpm24wDQYJKoZIhvcNAQELBQADggIB
ABnPdSA0LTqmRf/Q1eaM2jLonG4bQdEnqOJQ8nCqxOeTRrToEKtwT++36gTSlBGx
A/5dut82jJQ2jxN8RI8L9QFXrWi4xXnA2EqA10yjHiR6H9cj6MFiOnb5In1eWsRM
UM2v3e9tNsCAgBukPHAg1lQh07rvFKm/Bz9BCjaxorALINUfZ9DD64j2igLIxle2
DPxW8dI/F2loHMjXZjqG8RkqZUdoxtID5+90FgsGIfkMpqgRS05f4zPbCEHqCXl1
eO5HyELTgcVlLXXQDgAWnRzut1hFJeczY1tjQQno6f6s+nMydLN26WuU4s3UYvOu
OsUxRlJu7TSRHqDC3lSE5XggVkzdaPkuKGQbGpny+01/47hfXXNB7HntWNZ6N2Vw
p7G6OfY+YQrZwIaQmhrIqJZuigsrbe3W+gdn5ykE9+Ky0VgVUsfxo52mwFYs1JKY
2PGDuWx8M6DlS6qQkvHaRUo0FMd8TsSlbF0/v965qGFKhSDeQoMpYnwcmQilRh/0
ayLThlHLN81gSkJjVrPI0Y8xCVPB4twb1PFUd2fPM3sA1tJ83sZ5v8vgFv2yofKR
PB0t6JzUA81mSqM3kxl5e+IZwhYAyO0OTg3/fs8HqGTNKd9BqoUwSRBzp06JMg5b
rUCGwbCUDI0mxadJ3Bz4WxR6fyNpBK2yAinWEsikxqEt
-----END CERTIFICATE-----
 

Octimus

New member
Jun 27, 2016
1
0
0
Code:
<item>
  <title>Street Fighter El Puño Del Asesino</title>
  <thumbnail></thumbnail>
  <fanart></fanart>
<genre>Accion,Drama,Aventura</genre>
<info>
Ryu y Ken, quienes viviendo en Japón ignoran que son los últimos herederos del estilo Ansatsuken (Puño del Asesino). Contará el pasado de ambos, el de su maestro Gouken y la historia oscura detrás de Ansatsuken.
</info>  
<link>$doregex[url]</link> 
<regex>
<name>url</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 import requests,re
 url= 'hxxs://docs.google.com/uc?id=1jRcgc985iezdZ3yzyaZ0A5vOXVslgYBI&authuser=0&export=download'
 headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:44.0) Gecko/20100101 Firefox/44.0 Iceweasel/44.0'}
 source0= requests.get(url,headers=headers)
 pageUrl = 'hxxp://docs.google.com' + re.findall('goog-inline-block jfk-button jfk-button-action" href="(.*?)"', source0.text)[0].replace('amp;', '')
 cookies =  source0.cookies.get_dict()
 
 headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:44.0) Gecko/20100101 Firefox/44.0 Iceweasel/44.0','Referer': url}
 source= requests.get(pageUrl, headers=headers, cookies=cookies, allow_redirects=False)
 
 streamUrl = re.findall('HREF="(.*?)"',source.text)[0]
 
 return streamUrl
]]></expres>
<page></page>
<cookieJar></cookieJar>
</item>

hello everyone! just I pass by to see if some guru can fix this regex, as far i know gdrive downloads change the url but i tried many ways to see if I can fix but no success. i hope someone can hel;p with thanks in advance.
 

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Hi can anybody fix this please thanks in Advance.....


Code:
<item><title> SHOW TV</title><link>https://www.tvaddons.co/forums/$doregex[m3u8]|User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0</link><regex><name>m3u8</name>
<expres>iframe.*?src="(.*?)"</expres><page>http://canlitvizle.com/yayinim.php?kanal=show-tv-kesintisiz</page><referer>http://canlitvizle.com</referer></item>
Try this:

Code:
https://pastebin.com/raw/2gK5c4mM
 
Status
Not open for further replies.