Skip to content

Commit

Permalink
Update Kodi_Direct_Link.php
Browse files Browse the repository at this point in the history
  • Loading branch information
SxtBox authored Apr 8, 2020
1 parent 66ac201 commit 67069e7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Kodi/Kodi_Direct_Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
// LINK TO GET M3U
$MAIN_LINK = file_get_contents("https://livestream.com/accounts/22300508/events/6675945","UTF-8");
preg_match_all("/title>(.*\w)</",
$MAIN_LINK,
$MAIN_LINK,
$GET_STREAMS,
PREG_SET_ORDER
);
Expand All @@ -59,22 +59,22 @@
}

$REPLACE_STREAM_TITLE = str_replace(
// REPLACE FROM
// REPLACE FROM
array(" on Livestream"),
// REPLACE TO
// REPLACE TO
array(""),
$STREAM_TITLE
);

preg_match_all('/secure_m3u8_url":"(.*?)"/',
$MAIN_LINK,
$MAIN_LINK,
$streaming_content,
PREG_SET_ORDER
);

//preg_match_all('/.*small_url.*(http.*?170x170.*?)"/',
preg_match_all('/.*original_height":1200,"url":".*(http.*?.*?)"/',
$MAIN_LINK,
$MAIN_LINK,
$thumbnail_regex,
PREG_SET_ORDER
);
Expand Down Expand Up @@ -142,4 +142,4 @@
echo "</item>\n\n";
}
ob_end_flush();
?>
?>

0 comments on commit 67069e7

Please sign in to comment.