Revert "Use the Piped proxy for thumbnails."

This reverts commit ca7e7affd6.
This commit is contained in:
uohlhv 2024-07-20 19:23:21 +08:00
parent ca7e7affd6
commit df34af9e45

View File

@ -13,7 +13,7 @@ class Af_Youtube_Thumbnail extends Plugin {
function hook_article_filter($article) {
if(strpos($article["link"], "youtube.com") !== FALSE) {
$video_id = str_replace('https://www.youtube.com/watch?v=', '', $article["link"]);
$article["content"] = '<img src="https://pipedproxy.yanknil.com/vi/'.$video_id.'/hqdefault.jpg?host=i.ytimg.com" alt="'.$article["title"].'" />';
$article["content"] = '<img src="https://img.youtube.com/vi/'.$video_id.'/hqdefault.jpg" alt="'.$article["title"].'" />';
}
return $article;