VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. 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");
    ?>
    Quote Quote  
  2. PHP Code:
    <?php
    $ch 
    curl_init();

    curl_setopt($chCURLOPT_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($chCURLOPT_RETURNTRANSFERtrue);
    curl_setopt($chCURLOPT_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.";
    }
    ?>
    Quote Quote  
  3. now its working
    Last edited by kayrak; 27th Mar 2025 at 02:58.
    Quote Quote  
  4. allrights ok
    Last edited by kayrak; 27th Mar 2025 at 02:58.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!