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


TV5 monde Europe

Go down

TV5 monde Europe Empty TV5 monde Europe

Post by Sylphilds on Mon 29 Apr - 8:19

Hi
can someone can help and make regex for
Code:
http://live.tv5monde.com/europe.html
available in UK only perhaps need proxy

thanks in advance

Sylphilds

Messages : 36
Date d'inscription : 2017-04-17

View user profile

Back to top Go down

TV5 monde Europe Empty Re: TV5 monde Europe

Post by Goldonx on Wed 1 May - 22:52

Here
Code:
<item>
<title>tv5monde</title>
<link>$doregex[url]</link>
<regex>
<name>url</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re,requests
  ua='Mozilla/5.0 (Windows NT 10; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36'
  url=re.findall('"url":"([^"]+)',page_data)[0].replace('\\','')
  return url+'|'+ua
]]></expres>
<page>http://live.tv5monde.com/europe.html</page>
<agent>Mozilla/5.0 (Windows NT 10; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36</agent>
</regex>
</item>

Goldonx

Messages : 41
Date d'inscription : 2018-02-11

View user profile

Back to top Go down

TV5 monde Europe Empty Re: TV5 monde Europe

Post by Sylphilds on Thu 2 May - 8:20

thanks Goldonx ! can you tell me how to add proxy in the code?

Sylphilds

Messages : 36
Date d'inscription : 2017-04-17

View user profile

Back to top Go down

TV5 monde Europe Empty Re: TV5 monde Europe

Post by Goldonx on Thu 2 May - 15:37

In regex you have to add
Code:
<proxy>11.11.11.111:1111</proxy>

or if you have a proxy that requires authentication

Code:
<proxy>user:password@11.11.11.111:1111</proxy>

You have to add proxy in the url stream too in this way:
Code:
$PLAYERPROXY$=11.11.11.111:1111

Code:
<item>
<title>tv5monde</title>
<link>$doregex[url]</link>
<regex>
<name>url</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re,requests
  ua='Mozilla/5.0 (Windows NT 10; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36'
  url=re.findall('"url":"([^"]+)',page_data)[0].replace('\\','')
  return url+'|User-Agent='+ua+'$PLAYERPROXY$=11.11.11.111:1111'
]]></expres>
<page>http://live.tv5monde.com/europe.html</page>
<agent>Mozilla/5.0 (Windows NT 10; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36</agent>
<proxy>11.11.11.111:1111</proxy>
</regex>
</item>

Use the proxy if you have a really good one, otherwise use a vpn that is better


Last edited by Goldonx on Sat 4 May - 10:27; edited 1 time in total

Goldonx

Messages : 41
Date d'inscription : 2018-02-11

View user profile

Back to top Go down

TV5 monde Europe Empty Re: TV5 monde Europe

Post by Sylphilds on Sat 4 May - 4:18

thanks for your help Goldonx

Sylphilds

Messages : 36
Date d'inscription : 2017-04-17

View user profile

Back to top Go down

TV5 monde Europe Empty Re: TV5 monde Europe

Post by gujal on Sun 25 Aug - 1:01

Sometimes you dont need VPN or Proxy and can cheat using X-Forwarded-For header.
TV5Monde is one such case Very Happy
Enjoy!
TV5 monde Europe R0HMwFg
Code:
<item>
<title>TV5Monde Europe</title>
<link>$doregex[url]|User-Agent=iPad&amp;X-Forwarded-For=217.198.96.23</link>
<thumbnail>https://vignette.wikia.nocookie.net/logopedia/images/0/0f/TV5Monde_Europe.png</thumbnail>
<regex>
<name>url</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re
  url=re.findall('"url":"([^"]+)',page_data)[0].replace('\\','')
  return url
]]></expres>
<page>http://live.tv5monde.com/europe.html</page>
<x-forward>217.198.96.23</x-forward>
</regex>
</item>
gujal
gujal

Messages : 54
Date d'inscription : 2018-04-10

View user profile

Back to top Go down

TV5 monde Europe Empty Re: TV5 monde Europe

Post by Sylphilds on Sun 25 Aug - 8:36

Thanks so much great you are an expert

Sylphilds

Messages : 36
Date d'inscription : 2017-04-17

View user profile

Back to top Go down

TV5 monde Europe Empty Re: TV5 monde Europe

Post by Sylphilds on Thu 12 Sep - 7:54

Hi i've got php code but can't play it.



Code:
<?php
header('Content-Type: application/x-mpegURL');
function url($url)
{
 $ch1 = curl_init();
 curl_setopt($ch1, CURLOPT_URL, $url);
 curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);
 curl_setopt($ch1, CURLOPT_SSL_VERIFYPEER, 0);
 curl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, 0);
 curl_setopt($ch1, CURLOPT_FOLLOWLOCATION, 0);
 curl_setopt($ch1, CURLOPT_HEADER, 0);
 $hdrs1[]="User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/".rand(0,1000000)." Firefox/52.0";
 curl_setopt($ch1, CURLOPT_HTTPHEADER, $hdrs1);
 $headers = curl_exec($ch1);
 curl_close($ch1);
 return $headers;
}
$proxy = 'http://www.thediabetictimes.com/images/phppass.php?q='
$url = explode($_SERVER['SCRIPT_NAME'],$_SERVER['REQUEST_URI'])[1];
if(!$url || $url == '/index.m3u8')
{
$headers = url($proxy.'http://live.tv5monde.com/europe.html&hl=2c0');
$y = explode("data-broadcast='",$headers)[1];
$y = explode("'",$y)[0];
$json = json_decode($y,true);
$stream = $json["files"][0]["url"];
$content = url($proxy.$stream.'&hl=2c0');
$content = str_replace('://','://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'].'/',$content);
echo $content;
} else {
 
 echo url($proxy.'http:/'.$url.'&hl=2c0');
}



Somebody can help with including X-forwarded in a new php code as Gujal's regex

thanks in advance

Sylphilds

Messages : 36
Date d'inscription : 2017-04-17

View user profile

Back to top Go down

TV5 monde Europe Empty Re: TV5 monde Europe

Post by jujuuj on Fri 13 Sep - 8:24

peut être que cet exemple t'aidera ?

Code:


            $url = $domain.'/get.php?username='.$line.'&password='.$line.'&type=m3u';
            ini_set('default_socket_timeout', 2);
            $IP = 1.2.3.4;
            $opts = array('http' =>
               array(
                  'header'  =>   "User-Agent:".$useragent."\r\n".
                              "X-Forwarded-For: ".$IP."\r\n".
                              "Connection: Keep-Alive\r\n".
                              "Keep-Alive: 300\r\n"
               )
            );
            $context = stream_context_create($opts);
            $list = file_get_contents($url, false, $context);


@+
jujuuj
jujuuj

Messages : 271
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

TV5 monde Europe Empty Re: TV5 monde Europe

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