summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/frontend.php1
-rw-r--r--scraper/sc.php2
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"