Ver código fonte

well i guess you guys are gonna need to deal with blurry thumbnails cause maxresdefault is not always available either and black bars sucks even more so fuck this

lolcat 2 semanas atrás
pai
commit
0e01969075
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      scraper/yt.php

+ 5 - 1
scraper/yt.php

@@ -666,7 +666,11 @@ class yt{
 					) : null,
 				"thumb" => [
 					"ratio" => "16:9",
-					"url" => "https://i.ytimg.com/vi/" . $video["videoId"] . "/hq720.jpg"
+					"url" =>
+						$video["thumbnail"]
+						["thumbnails"]
+						[0]
+						["url"]
 				],
 				"url" => "https://www.youtube.com/watch?v=" . $video["videoId"]
 			];