From 38b97a26e5e4a9c432081f8823d858e64ad6af68 Mon Sep 17 00:00:00 2001 From: lolcat Date: Mon, 4 Sep 2023 00:44:04 -0400 Subject: accidently broke news --- lib/frontend.php | 1 + scraper/sc.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/frontend.php b/lib/frontend.php index 8100257..e15a4a0 100644 --- a/lib/frontend.php +++ b/lib/frontend.php @@ -930,6 +930,7 @@ class frontend{ "mojeek" => "Mojeek" ] ]; + break; case "music": $filters["scraper"] = [ diff --git a/scraper/sc.php b/scraper/sc.php index 88d4dab..f297723 100644 --- a/scraper/sc.php +++ b/scraper/sc.php @@ -260,7 +260,7 @@ class sc{ $out["author"][] = [ "title" => $item["username"], "followers" => $item["followers_count"], - "description" => $item["track_count"] . " songs. " . $this->limitstrlen($item["description"]), + "description" => trim($item["track_count"] . " songs. " . $this->limitstrlen($item["description"])), "thumb" => [ "url" => $item["avatar_url"], "ratio" => "1:1" -- cgit v1.2.3