Help for Regex

Status
Not open for further replies.

makal

Member
Jul 23, 2014
62
16
8
Need help to regex this stream, very thank
with urlresolve works very well
Code:
<item>
<title>showman</title>
<urlsolve>https://ok.ru/videoembed/605028354562</urlsolve>
<thumbnail>https://s1.rapidrame.com/i/01/00000/koyxk17jp1e1.jpg</thumbnail>
</item>
 

pink09

New member
Mar 22, 2018
11
0
0
with urlresolve works very well
Code:
<item>
<title>showman</title>
<urlsolve>https://ok.ru/videoembed/605028354562</urlsolve>
<thumbnail>https://s1.rapidrame.com/i/01/00000/koyxk17jp1e1.jpg</thumbnail>
</item>
I am using simple kore v2 addons, and this isn't working on my addon, What can I do? please help
 

makal

Member
Jul 23, 2014
62
16
8
I am using simple kore v2 addons, and this isn't working on my addon, What can I do? please help
install the urlresolver script and paste this code into your addons in the addons.xml file
Code:
<import addon="script.module.urlresolver" optional="true"/>
 

gujal

Developer
Dec 26, 2013
471
241
43
Hallo, Kann mir bitte einer helfen?
hxxp://kesintisiz.tv/tv8-canli-izle
danke.
Enjoy!

Code:
<item>
<title>TV 8</title>
<link>$doregex[play]|User-Agent=iPad</link>
<regex>
<name>play</name>
<expres><![CDATA[#$pyFunction
from aadecoder import decode as aadecode
def GetLSProData(page_data,Cookie_Jar,m):
 import re
 etxt = re.findall('</style>.*?<script>([^<]+)',page_data,re.DOTALL)[0]
 page = aadecode(etxt)
 strurl = re.findall("=\s*'([^']+)",page)[0]
 return strurl
]]></expres>
<page>http://kesintisiz.tv/yayin/yayinim.php?yayin=tv8</page>
<referer>http://kesintisiz.tv/tv8-canli-izle</referer>
</regex>
</item>
 

gujal

Developer
Dec 26, 2013
471
241
43
Danke dir gujal, leider hat bei mir nicht funktioniert.
Kodi 17.6 Windows
SPMC 17.0 Android
What version of LivestreamsPro Addon?
Because only LSP ver 2.8.1 had the aadecode library that is required for this particular code to work
 

gujal

Developer
Dec 26, 2013
471
241
43
ich benutze LSP ver 2.8.1
Then can't do much without seeing the debug log. Enable debug logging and then try to play the code in LSP and after it fails exit, take the kodi log and upload it to pastebin.com and post the link here
 

gujal

Developer
Dec 26, 2013
471
241
43
dake für deine hilfe. ich hoffe ist ok. so (SPMC v16.7)
Okay, you have AADecoder, instead of aadecoder.
Try this code, it should work on your system
Code:
<item>
<title>TV 8</title>
<link>$doregex[play]|User-Agent=iPad</link>
<regex>
<name>play</name>
<expres><![CDATA[#$pyFunction
from AADecoder import AADecoder
def GetLSProData(page_data,Cookie_Jar,m):
 import re
 etxt = re.findall('</style>.*?<script>([^<]+)',page_data,re.DOTALL)[0]
 page = AADecoder(etxt).decode()
 strurl = re.findall("=\s*'([^']+)",page)[0]
 return strurl
]]></expres>
<page>http://kesintisiz.tv/yayin/yayinim.php?yayin=tv8</page>
<referer>http://kesintisiz.tv/tv8-canli-izle</referer>
</regex>
</item>
 

turko03

Member
Mar 27, 2018
52
1
8
hi kann mir einer diese seite makelist machen danke hxxp://wagasworld.com/?q=channel/cartoons/die-simpsons
 
Last edited:

turko03

Member
Mar 27, 2018
52
1
8
hi kann mir einer diese seite makelist machen danke hxxp://wagasworld.com/?q=channel/cartoons/die-simpsons
 

cris_manya

Member
Nov 20, 2016
32
0
6
Hello guys!
could you help me with this:
Code:
hxxps://www.subrayado.com.uy/resources/_post/subrayado/get-vivo.php
Thanks in advance
 

makal

Member
Jul 23, 2014
62
16
8
Hello guys!
could you help me with this:
Code:
hxxps://www.subrayado.com.uy/resources/_post/subrayado/get-vivo.php
Thanks in advance
try this
Code:
<item>
<title>text</title>
<link>$doregex[url]</link>
<regex>
<name>url</name>
<expres>(https.*m3u8.*)</expres>    
<page>https://www.subrayado.com.uy/resources/_post/subrayado/get-vivo.php</page>   
<agent>Mozilla/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0</agent>  
<cookieJar></cookieJar>
<thumbnail></thumbnail>
</regex>
</item>
 

cris_manya

Member
Nov 20, 2016
32
0
6
try this
Code:
<item>
<title>text</title>
<link>$doregex[url]</link>
<regex>
<name>url</name>
<expres>(https.*m3u8.*)</expres>    
<page>https://www.subrayado.com.uy/resources/_post/subrayado/get-vivo.php</page>   
<agent>Mozilla/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0</agent>  
<cookieJar></cookieJar>
<thumbnail></thumbnail>
</regex>
</item>
Thank you very much, it works correctly
 

turko03

Member
Mar 27, 2018
52
1
8
hi kann mir einer diese seite makelist machen danke möchte alle channels sehen castamp olayer ist down deswegen ist da ein neuer player
hxxp://wagasworld.com/?q=channel/cartoons/die-simpsons
 

turko03

Member
Mar 27, 2018
52
1
8
hallo kann mir jemanden helfen mit dem code hier als makelist danke im voraus
hxxp://www.matbet2.tv/tr/izle/sky-sport-1
 
Status
Not open for further replies.