Explorar el Código

accidently broke news

lolcat hace 2 años
padre
commit
38b97a26e5
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 0
      lib/frontend.php
  2. 1 1
      scraper/sc.php

+ 1 - 0
lib/frontend.php

@@ -930,6 +930,7 @@ class frontend{
 						"mojeek" => "Mojeek"
 					]
 				];
+				break;
 			
 			case "music":
 				$filters["scraper"] = [

+ 1 - 1
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"