TOOLSP
"
WELCOME !

Please ! USE [CODE] tags for your LINKS and CODE.

Favor usar balisas [CODE] para sus vínculos y código.

Merci d'utiliser les balises [CODE] pour vos liens et code.


[code]http://Thank.you[/code]
"
*** Doc. Kodi & PYthon ***
.
.
Python & Modules PY
.
.
.
.
(Video) Cache Kodi
.
.
.
Addons Kodi
.
.
.
Addons Kodi
.
.
*** GITHUB ***
.
.
URLresolver (J.S.) [GIT] +
.
.
.
URLresolver (elD.) [GIT] -
.
.
URLresolver (tvA.) [GIT] -
.
.
.
.
Cloudflare (external) [GIT]
.
.
.
*** Associated ***
.
Pastebin Your list online
.
mediafire Upload Files
.
imgur Upload Pics
lyngsat TV logos collection
transparent .png
.
http://hola.org free? VPN
Hola.apk free? VPN App.
.
hidester- free Proxy
.
webgrabplus EPG - Eng
xmltv EPG - Fr
kazer EPG - Fr
.
.wordreference Traduction
.
mail.com (fast sign-in)
.
.
FRIENDS / PARTNERS

TVaddon's  community

créer un forum


Please check this regex code

Go down

Please check this regex code Empty Please check this regex code

Post by sakarya on Mon 7 Jan - 16:11

hello friends, can someone check this regex please it don t work. thanks

Code:
<item>
<title>[COLOR gold]GERMAN CHANNELS[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR cyan][makelist.param3][/COLOR]</title>
<link>$doregex[play]|User-Agent=iPhone</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>

<expres><![CDATA[<div class="movie.*?">.*?\n.*?<a href="(.*?)">.*?\n.*?<img src="(.*?)".*?alt="(.*?)"]]></expres>
<page>http://www.pro7livestream.com/category/deutsche-tv-live/</page>
</regex>

<regex>
<name>stream</name>
<expres><![CDATA[<p><iframe src="(.*?)"]]></expres>
<page>[makelist.param1]</page>
</regex>

<regex>
<name>play</name>
<expres><![CDATA[source:"(http.*?m3u8.*?)"]]></expres>
<page>$doregex[stream]</page>
</regex>
</item>

sakarya

Messages : 17
Date d'inscription : 2017-06-17

View user profile

Back to top Go down

Please check this regex code Empty Re: Please check this regex code

Post by makal on Tue 8 Jan - 1:38

sakarya wrote:hello friends, can someone check this regex please it don t work. thanks

Code:
<item>
<title>[COLOR gold]GERMAN CHANNELS[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR cyan][makelist.param3][/COLOR]</title>
<link>$doregex[play]|User-Agent=iPhone</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>

<expres><![CDATA[<div class="movie.*?">.*?\n.*?<a href="(.*?)">.*?\n.*?<img src="(.*?)".*?alt="(.*?)"]]></expres>
<page>http://www.pro7livestream.com/category/deutsche-tv-live/</page>
</regex>

<regex>
<name>stream</name>
<expres><![CDATA[<p><iframe src="(.*?)"]]></expres>
<page>[makelist.param1]</page>
</regex>

<regex>
<name>play</name>
<expres><![CDATA[source:"(http.*?m3u8.*?)"]]></expres>
<page>$doregex[stream]</page>
</regex>
</item>

try this
Code:
<item>
<title>[COLOR gold]GERMAN CHANNELS[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR cyan][makelist.param3][/COLOR]</title>
<link>$doregex[play]|User-Agent=iPhone</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>

<expres><![CDATA[<div class="movie.*?">.*?\n.*?<a href="(.*?)">.*?\n.*?<img src="(.*?)".*?alt="(.*?)"]]></expres>
<page>http://www.pro7livestream.com/category/deutsche-tv-live/</page>
</regex>

<regex>
    <name>play</name>
    <expres>$pyFunction: '$doregex[get-url2]' if not '$doregex[get-url2]'=='' else '$doregex[get-url1]'</expres>
    <page></page>
</regex>
<regex>
    <name>get-url2</name>
    <expres>file: [\'"](.*?)[\'"]<expres>
    <page>$doregex[embed]</page>
    <referer>http://www.pro7livestream.com/</referer>
</regex>
<regex>
    <name>get-url1</name>
    <expres>source: [\'"](.*?)[\'"]<expres>
    <page>[makelist.param1]</page>
    <referer>http://www.pro7livestream.com/</referer>
</regex>

<regex>
<name>embed</name>
<expres><![CDATA[iframe src="(.*?)"]]></expres>
<page>[makelist.param1]</page>
</regex>
</item>


Last edited by makal on Tue 8 Jan - 6:53; edited 1 time in total
makal
makal

Messages : 50
Date d'inscription : 2017-06-14

View user profile

Back to top Go down

Please check this regex code Empty Re: Please check this regex code

Post by vbprofi on Tue 8 Jan - 4:53

Try this for working all channels:
Code:

<item>
<title>[COLOR gold]GERMAN CHANNELS[/COLOR]</title>
<link>$doregex[makelist]</link>

<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR cyan][makelist.param3][/COLOR]</title>
<link>$doregex[play]</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>

<expres><![CDATA[<div class="movie.*?">.*?\n.*?<a href="(.*?)">.*?\n.*?<img src="(.*?)".*?alt="(.*?)"]]></expres>
<page>http://www.pro7livestream.com/category/deutsche-tv-live/</page>
</regex>

<regex>
<name>stream</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#vbprofi
 if '<iframe src=' in page_data:
  return re.findall('<p><iframe src="(.*?)"', page_data)[0]
 elif '<iframe src=' not in page_data:
  return page_data
]]></expres>
<page>[makelist.param1]</page>
</regex>

<regex>
<name>play</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#vbprofi
 if 'source:' in page_data:
  return re.findall('[source:|source\: ][\'"](http.*?m3u.*?)[\'"]', page_data)[0]
 elif 'file:' in page_data:
  return re.findall(r'file:.*?[\'"](http.*?m3u.*?)[\'"]', page_data)[0]
]]></expres>
<page>$doregex[stream]</page>
</regex>
</item>

vbprofi

Messages : 90
Date d'inscription : 2017-05-03

View user profile

Back to top Go down

Please check this regex code Empty Re: Please check this regex code

Post by sakarya on Tue 8 Jan - 22:07

thanks the two regexes work fine

sakarya

Messages : 17
Date d'inscription : 2017-06-17

View user profile

Back to top Go down

Please check this regex code Empty Re: Please check this regex code

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum