Help for Regex

Status
Not open for further replies.

vbprofi

Member
Feb 9, 2016
87
3
8
hello,
give no ideas?
best regards
Hello experts,
I need an solution for windows, linux and android. If lsp is starting, that will copy the resource_file from home folder to profile folder. this code is working only on windows. please help fix that for other OS:
Code:
addon = xbmcaddon.Addon('plugin.video.live.streamspro.vbprofi')
addon_version = addon.getAddonInfo('version')
profile = xbmc.translatePath(addon.getAddonInfo('profile').decode('utf-8'))
home = xbmc.translatePath(addon.getAddonInfo('path').decode('utf-8'))
### start modification ###
if not os.path.exists(profile):
        os.makedirs(profile)
fo = open(home + '\\resources\\source_file', 'r')
text = fo.read()
fo.close()
fo = open(profile + 'source_file','w')
fo.write(text)
fo.close()
### end modification ###
 

besttest2233

Banned
Jun 7, 2017
26
0
1
someone knows how to make hxxp://www.ustream.tv on kodi work thanks for every one

hxxp://www.ustream.tv/embed

hxxp://www.ustream.tv
 
Last edited by a moderator:

wulf

New member
Jun 9, 2017
27
1
3
Hi! regex for this please if it's possible?


htxxp://torcidatricolor.tv/bobo.php

I cant get this i tray many ways lots regex with Spo*ts De*il and can't take this channel i just know the channel is very good hide by this site
hxxtp://kastream.biz/
 
Last edited:

cris_manya

Member
Nov 20, 2016
39
1
8
Hi,can someone made a make list for this ?

Code:
hxxps://danimados.com/series/bobs-burgers/
Thanks in advance
 

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Hi! regex for this please if it's possible?


htxxp://torcidatricolor.tv/bobo.php

I cant get this i tray many ways lots regex with Spo*ts De*il and can't take this channel i just know the channel is very good hide by this site
hxxtp://kastream.biz/
From the source you will get the link to the next page with this regex:

src="(.*?kastream[^"]+)

Code:
https://regex101.com/r/o8k4Wy/3
Code:
http://kastream.biz/tv.php?file=abertabo&width=100%&height=100%
From the next link page source code you will get this eval(function(p,a,c,k,e,d) with this regex:

eval\(function[\w\W]*?(eval.*)

Code:
https://regex101.com/r/o8k4Wy/1
With these sites you can use unpacked tool to unpack that p,a,c,e,k and get the playable link

Code:
https://www.strictly-software.com/unpacker#unpacker

http://jsbeautifier.org/
The final playable link should be

Code:
player = new Clappr.Player({
    parentId: "#Player",
    source: "//style.kastream.biz:8081/edge/ver8b1f11ec23e0/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9OC8zLzIwMTggMTo0MDoxMSBQTSZoYXNoX3ZhbHVlPVorUWxpcXFiTzFzWjNldVhtUVBFaVE9PSZ2YWxpZG1pbnV0ZXM9MTIw",
    autoPlay: true,
    mute: startMuted(),
And with this regex:

Clappr.Player[\w\W]*?source.+?//([^\'"]+)

Code:
https://regex101.com/r/o8k4Wy/2
You should have the link

Code:
[COLOR="#FF0000"]http://style.kastream.biz:8081/edge/ver8b1f11ec23e0/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9OC8zLzIwMTggMTo0MDoxMSBQTSZoYXNoX3ZhbHVlPVorUWxpcXFiTzFzWjNldVhtUVBFaVE9PSZ2YWxpZG1pbnV0ZXM9MTIw[/COLOR]
Here u go



Code:
<item>
<title>http://torcidatricolor.tv/bobo.php</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  from urlresolver.plugins.lib import jsunpack
  source=requests.get(re.findall('src="(.*?kastream[^&]+)',page_data)[0],headers={'Referer':'http://torcidatricolor.tv/bobo.php'}).text
  return 'http://'+re.findall('Clappr.Player[\w\W]*?source.+?//([^\'"]+)',jsunpack.unpack(re.findall('id="Player"(?s)(.*?)</script',source)[0]).replace('\\',''))[0]+'|User-Agent=iPad'
]]></expres>
<page>http://torcidatricolor.tv/bobo.php</page>
</regex>
</item>
 
Last edited:

wulf

New member
Jun 9, 2017
27
1
3
Post denied. New posts are limited by number of URLs it may contain and checked if it doesn't contain forbidden words.
 

wulf

New member
Jun 9, 2017
27
1
3
thanks I'm going to save all that information for the future when when I have learned more about regex at the moment I can not make this work but thanks
 

wulf

New member
Jun 9, 2017
27
1
3
Is incredible! Now it works perfectly! I just tray now and really work you are a genius men! Now it works perfectly! thank you very much!!!
 

kyleski

New member
Mar 9, 2015
1
0
0
hi there,hope someone could help me regex to this link
hxxps://www.firstonetv.net/Live/Australia/Seven---12

im happy to found this forum again...
 

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
thank to someone to help me please:

hxxp://www.crtv.cm/live-crtv/
Try either one:

Code:
<item>
<title>http://www.crtv.cm/live-crtv/</title>
<link>$doregex[getUrl]</link>
<regex>                                                  
<name>getUrl</name>                                            
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('player:stream" content="([^"]+)',requests.get(re.findall('iframe.src="([^"]+)',page_data)[0],headers={'Referer':'http://www.crtv.cm/live-crtv/'}).text)[0]
]]></expres>
<page>http://www.crtv.cm/live-crtv/</page>
</regex>
</item>


<item>
<title>http://www.crtv.cm/live-crtv/</title>
<link>$doregex[getUrl]</link>
<regex>                                                  
<name>getUrl</name>                                            
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('iframe.src="([^"]+)',page_data)[0]
  link=re.findall('text.javascript".src="([^"]+)',requests.get(url,headers={'Referer':'http://www.crtv.cm/live-crtv/'}).text)[0]
  html='https://'+re.findall('"playlist":."//([^"]+)',requests.get(link,headers={'Referer':url}).text)[0]
  return re.findall('mpegurl","file":"([^"]+)',requests.get(html,headers={'Referer':link}).text)[0]+'|User-Agent=iPad'
]]></expres>
<page>http://www.crtv.cm/live-crtv/</page>
</regex>
</item>
 

izac-rock

New member
May 2, 2018
32
0
0
Hello Friend,
I'm here again needing your salvation :)
you can do regex for this one:

hxxps: //vk.com/video-70090379_169371799

it worked with urlresolver, but it's been over for over a month.
Thank you very much.
 

Teamblue

New member
Sep 23, 2016
12
0
0
hi guys
someone can help me with this

hxxp://www.thenightfilmes.net/escobar-a-traicao/

thans in advance
 

jamers

New member
Jun 29, 2018
26
0
1
streamwatcher2013,


hxxps://pastebin.com/raw/3uGbxvU8

Is to many movie duplications,can you please check,

Thanks for you work.
 
Last edited:
Status
Not open for further replies.