Skip to content

Commit

Permalink
get m3u8 from api
Browse files Browse the repository at this point in the history
  • Loading branch information
KiriXen authored May 18, 2024
1 parent f85d38c commit 3d8e73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/player2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down

0 comments on commit 3d8e73b

Please sign in to comment.