From 558f827fa5d66ba06b48c24a60491ac4e5def1a5 Mon Sep 17 00:00:00 2001 From: M_Viper Date: Mon, 30 Mar 2026 18:42:39 +0000 Subject: [PATCH] Upload via Git Manager GUI - test-live.php --- Minecraft-Modern-Theme/test-live.php | 94 ++++++++++++++-------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/Minecraft-Modern-Theme/test-live.php b/Minecraft-Modern-Theme/test-live.php index d421187..11b9139 100644 --- a/Minecraft-Modern-Theme/test-live.php +++ b/Minecraft-Modern-Theme/test-live.php @@ -1,47 +1,47 @@ - 10, - 'redirection' => 5, - 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36', - 'headers' => array( - 'Accept-Language' => 'en-US,en;q=0.9,de;q=0.8', - ), - )); - - if (is_wp_error($response)) { - echo "ERROR: " . $response->get_error_message() . "\n"; - continue; - } - - $body = wp_remote_retrieve_body($response); - echo "Response size: " . strlen($body) . " bytes\n"; - - if (strpos($body, 'PAmS12qbdzA') !== false) { - echo "✓ Found PAmS12qbdzA\n"; - - $pos = strpos($body, 'PAmS12qbdzA'); - $start = max(0, $pos - 150); - $context = substr($body, $start, 350); - echo "Context:\n" . htmlspecialchars($context) . "\n"; - } else { - echo "✗ PAmS12qbdzA NOT found\n"; - } - - $video_id = mm_video_extract_youtube_live_video_id($body); - if ($video_id) { - echo "✓ Extracted video_id: $video_id\n"; - } else { - echo "✗ NO video_id extracted\n"; - } -} + 10, + 'redirection' => 5, + 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36', + 'headers' => array( + 'Accept-Language' => 'en-US,en;q=0.9,de;q=0.8', + ), + )); + + if (is_wp_error($response)) { + echo "ERROR: " . $response->get_error_message() . "\n"; + continue; + } + + $body = wp_remote_retrieve_body($response); + echo "Response size: " . strlen($body) . " bytes\n"; + + if (strpos($body, 'PAmS12qbdzA') !== false) { + echo "✓ Found PAmS12qbdzA\n"; + + $pos = strpos($body, 'PAmS12qbdzA'); + $start = max(0, $pos - 150); + $context = substr($body, $start, 350); + echo "Context:\n" . htmlspecialchars($context) . "\n"; + } else { + echo "✗ PAmS12qbdzA NOT found\n"; + } + + $video_id = mm_video_extract_youtube_live_video_id($body); + if ($video_id) { + echo "✓ Extracted video_id: $video_id\n"; + } else { + echo "✗ NO video_id extracted\n"; + } +}