From 3d8e73b6a82a779be0b04571a162ebef42b9e13f Mon Sep 17 00:00:00 2001 From: KiriXen Date: Sat, 18 May 2024 17:22:52 +0530 Subject: [PATCH] get m3u8 from api --- player/player2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/player2.php b/player/player2.php index 7ab4a3b..a0651ca 100644 --- a/player/player2.php +++ b/player/player2.php @@ -4,7 +4,7 @@ $id = $_GET['id']; // Fetch JSON data from the GoGoAnime API endpoint -$json = file_get_contents("https://gogoanime-api-1.onrender.com/vidcdn/watch/$id"); +$json = file_get_contents("$apiLink/vidcdn/watch/$id"); $video = json_decode($json, true); if (isset($video['sources']) && !empty($video['sources'])) {