diff options
author | lolcat <will@lolcat.ca> | 2023-09-04 00:44:04 -0400 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2023-09-04 00:44:04 -0400 |
commit | 38b97a26e5e4a9c432081f8823d858e64ad6af68 (patch) | |
tree | e32b9c924377aa0c434d4ee03f0fc13f52442f6c | |
parent | d90d81662a9afaa0b93ac422ef1e885835caf1e3 (diff) |
accidently broke news
-rw-r--r-- | lib/frontend.php | 1 | ||||
-rw-r--r-- | scraper/sc.php | 2 |
2 files changed, 2 insertions, 1 deletions
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" |