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


Youtube php script

Go down

Youtube php script Empty Youtube php script

Post by beezlo on Mon 14 Jan - 17:07

Hi all,

i need help about this script , they dont works more anybody can meybe this fix.
Thanks in Advance


echo "#EXTINF:-1,TR: SHOW TV \n";
$source = file_get_contents("https://www.youtube.com/watch?v=zKgW374Rd1g");
preg_match('@"hlsvp":"(.*?)"@s',$source,$getm3u);
$getm3u[1] = str_replace("\/","/",$getm3u[1]);
echo $getm3u[1];
echo "\n";

beezlo

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

View user profile

Back to top Go down

Youtube php script Empty Re: Youtube php script

Post by makal on Tue 15 Jan - 12:02

try this
Code:
<?php

$canal = $_GET['v'];
$youtube = file_get_contents('https://www.youtube.com/watch?v='.$canal);
preg_match('/"hlsManifestUrl.":."(.*?)"/', $youtube, $matches);
$url1 = substr($matches[1], 0, -1);
$url1 = str_replace('\/' , "/", $url1);
header ("Location: $url1");
exit ();

?>
Code:
hxxp://your-server/youtube.php?v=zKgW374Rd1g&amp;type=playlist.m3u8
makal
makal

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

View user profile

Back to top Go down

Youtube php script Empty Re: Youtube php script

Post by beezlo on Tue 15 Jan - 22:25

Thank you so much Makal ..... Very Happy Very Happy Very Happy Very Happy

beezlo

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

View user profile

Back to top Go down

Youtube php script Empty Re: Youtube php script

Post by Sylphilds on Mon 21 Jan - 1:29

thanks makal for your appreciated help

can you do it in php for dailymotion too ??

it will be nice

Sylphilds

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

View user profile

Back to top Go down

Youtube php script Empty Re: Youtube php script

Post by tekzen on Sun 3 Mar - 23:11

how can i get the same for dailymotion can you help please

tekzen

Messages : 20
Date d'inscription : 2019-03-03

View user profile

Back to top Go down

Youtube php script Empty Re: Youtube php script

Post by tekzen on Sat 9 Mar - 17:53

hello, can any of you here please help me.
I just want to tap the livestream via php

Thank you for the effort

tekzen

Messages : 20
Date d'inscription : 2019-03-03

View user profile

Back to top Go down

Youtube php script Empty Re: Youtube php script

Post by tekzen on Thu 6 Jun - 23:24

@makal

i can't play youtube streams directly with php
whats wrong?

i want play this stream

https://www.youtube.com/watch?v=9NMCgLjGVRU

http://myserver/youtube.php?v=9NMCgLjGVRU&amp;type=playlist.m3u8

tekzen

Messages : 20
Date d'inscription : 2019-03-03

View user profile

Back to top Go down

Youtube php script Empty Re: Youtube php script

Post by makal on Fri 7 Jun - 1:40

tekzen wrote:@makal

i can't play youtube streams directly with php
whats wrong?

i want play this stream

https://www.youtube.com/watch?v=9NMCgLjGVRU

http://myserver/youtube.php?v=9NMCgLjGVRU&type=playlist.m3u8

Hello
what server are you using? works well for me
makal
makal

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

View user profile

Back to top Go down

Youtube php script Empty Re: Youtube php script

Post by tekzen on Tue 11 Jun - 16:25

000webhost.com

tekzen

Messages : 20
Date d'inscription : 2019-03-03

View user profile

Back to top Go down

Youtube php script Empty Re: Youtube php script

Post by tekzen on Wed 18 Sep - 18:43

makal wrote:try this
Code:
<?php

$canal = $_GET['v'];
$youtube = file_get_contents('https://www.youtube.com/watch?v='.$canal);
preg_match('/"hlsManifestUrl.":."(.*?)"/', $youtube, $matches);
$url1 = substr($matches[1], 0, -1);
$url1 = str_replace('\/' , "/", $url1);
header ("Location: $url1");
exit ();

?>
Code:
hxxp://your-server/youtube.php?v=zKgW374Rd1g&type=playlist.m3u8

how can i play from youtube as user?

example : https://www.youtube.com/user/trttv1/live

tekzen

Messages : 20
Date d'inscription : 2019-03-03

View user profile

Back to top Go down

Youtube php script Empty Re: Youtube php script

Post by makal on Thu 19 Sep - 1:28

tekzen wrote:
makal wrote:try this
Code:
<?php

$canal = $_GET['v'];
$youtube = file_get_contents('https://www.youtube.com/watch?v='.$canal);
preg_match('/"hlsManifestUrl.":."(.*?)"/', $youtube, $matches);
$url1 = substr($matches[1], 0, -1);
$url1 = str_replace('\/' , "/", $url1);
header ("Location: $url1");
exit ();

?>
Code:
hxxp://your-server/youtube.php?v=zKgW374Rd1g&type=playlist.m3u8

how can i play from youtube as user?

example : https://www.youtube.com/user/trttv1/live

if it works but you are making the mistake of putting the name of the channel instead of the v=2BvMn_dIfV4
Code:
hxxp://your-server/youtube.php?v=xxxxxxxxx&type=playlist.m3u8
makal
makal

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

View user profile

Back to top Go down

Youtube php script Empty Re: Youtube php script

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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