Revert "Use the Piped proxy for thumbnails."
This reverts commit ca7e7affd6.
			
			
This commit is contained in:
		
							parent
							
								
									ca7e7affd6
								
							
						
					
					
						commit
						df34af9e45
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -13,7 +13,7 @@ class Af_Youtube_Thumbnail extends Plugin { | ||||||
|   function hook_article_filter($article) { |   function hook_article_filter($article) { | ||||||
|     if(strpos($article["link"], "youtube.com") !== FALSE) { |     if(strpos($article["link"], "youtube.com") !== FALSE) { | ||||||
|       $video_id = str_replace('https://www.youtube.com/watch?v=', '', $article["link"]); |       $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; |     return $article; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue