From addc5a14a93547f630f23e5b6a79cffa2e37d71a Mon Sep 17 00:00:00 2001 From: lolcat Date: Sat, 17 Feb 2024 23:22:19 -0500 Subject: boobs --- music.php | 47 ++++++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 19 deletions(-) (limited to 'music.php') diff --git a/music.php b/music.php index 5bc3e5f..0162d4c 100644 --- a/music.php +++ b/music.php @@ -15,10 +15,11 @@ $get = $frontend->parsegetfilters($_GET, $filters); /* Captcha */ -include "lib/captcha_gen.php"; -new captcha($frontend, $get, $filters, "music", true); +include "lib/bot_protection.php"; +new bot_protection($frontend, $get, $filters, "music", true); $payload = [ + "timetaken" => microtime(true), "class" => "", "right-left" => "", "right-right" => "", @@ -36,7 +37,10 @@ try{ $categories = [ "song" => "", "author" => "", - "playlist" => "" + "playlist" => "", + "album" => "", + "podcast" => "", + "user" => "" ]; /* @@ -48,14 +52,26 @@ if(count($results["song"]) !== 0){ $main = "song"; -}elseif(count($results["author"]) !== 0){ +}elseif(count($results["album"]) !== 0){ - $main = "author"; + $main = "album"; }elseif(count($results["playlist"]) !== 0){ $main = "playlist"; +}elseif(count($results["podcast"]) !== 0){ + + $main = "podcast"; + +}elseif(count($results["author"]) !== 0){ + + $main = "author"; + +}elseif(count($results["user"]) !== 0){ + + $main = "user"; + }else{ // No results found! @@ -133,12 +149,15 @@ foreach($categories as $name => $data){ $customhtml = null; if( - $name == "song" && + ( + $name == "song" || + $name == "podcast" + ) && $item["stream"]["endpoint"] !== null ){ $customhtml = - '