Hi Forum!
I need help for my script, it dosn't work anymore.
Thanks!
PHP Code:
<?php
$site = shell_exec('curl "https://securevideotoken.tmgrup.com.tr/webtv/secure?000000&url=https%3A%2F%2Ftrkvz.daioncdn.net%2Fatv%2Fatv.m3u8%3Fce%3D3%26app%3Dd1ce2d40-5256-4550-b02e-e73c185a314e" -H "Origin: https://www.atv.com.tr" -H "Referer: https://www.atv.com.tr/" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"');
preg_match('/"Url":"(.*?)"/', $site, $icerik);
$baglanti=$icerik[1];
header("Content-type: application/x-mpegURL");
header("Location: $baglanti");
?>
+ Reply to Thread
Results 1 to 4 of 4
-
-
PHP Code:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://securevideotoken.tmgrup.com.tr/webtv/secure?000000&url=https%3A%2F%2Ftrkvz.daioncdn.net%2Fatv%2Fatv.m3u8%3Fce%3D3%26app%3Dd1ce2d40-5256-4550-b02e-e73c185a314e');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Origin: https://www.atv.com.tr',
'Referer: https://www.atv.com.tr/',
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36'
]);
$response = curl_exec($ch);
curl_close($ch);
// Check if curl_exec was successful
if ($response) {
preg_match('/"Url":"(.*?)"/', $response, $icerik);
if (isset($icerik[1])) {
$baglanti = $icerik[1];
header("Content-type: application/x-mpegURL");
header("Location: $baglanti");
} else {
echo "Error: Video URL not found.";
}
} else {
echo "Error: Failed to fetch the video token.";
}
?>
Similar Threads
-
need help with py script
By whs912km in forum Video Streaming DownloadingReplies: 32Last Post: 1st Jan 2025, 03:42 -
need help with script
By swappyison in forum Video Streaming DownloadingReplies: 0Last Post: 28th Aug 2023, 23:38 -
Script Help
By InfinitiX2 in forum Video Streaming DownloadingReplies: 17Last Post: 29th Jul 2023, 17:02 -
script help
By aletaladro in forum Video Streaming DownloadingReplies: 2Last Post: 19th Jul 2023, 12:13 -
Looking for Batch MP4 Normalization Script of existing script
By VideoFanatic in forum Video ConversionReplies: 6Last Post: 31st Jul 2021, 19:50