From 70be7f7fe7785fd1521eb686385f0a4c2f1c2b6d Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Wed, 3 Sep 2014 15:30:58 -0400 Subject: [PATCH] Higher resolution thumbnails for videos by default Youtube videos: default.jpg --> 0.jpg --- Toolkit/Videos/Video.php | 2 +- Toolkit/Videos/VideosDataGrid.php | 2 +- Toolkit/Videos/templates/webPageDecorator.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Toolkit/Videos/Video.php b/Toolkit/Videos/Video.php index d9ffc58..d38b316 100644 --- a/Toolkit/Videos/Video.php +++ b/Toolkit/Videos/Video.php @@ -359,7 +359,7 @@ class Toolkit_Videos_Video $vidCode = $match[1]; } $thumb = ($vidCode) - ? 'http://img.youtube.com/vi/'.$vidCode.'/default.jpg' + ? 'http://img.youtube.com/vi/'.$vidCode.'/0.jpg' : ''; return $thumb; } diff --git a/Toolkit/Videos/VideosDataGrid.php b/Toolkit/Videos/VideosDataGrid.php index f9c5c93..ecd8e30 100644 --- a/Toolkit/Videos/VideosDataGrid.php +++ b/Toolkit/Videos/VideosDataGrid.php @@ -212,7 +212,7 @@ class Toolkit_Videos_VideosDataGrid $vidCode = $match[1]; } $thumb = ($vidCode) - ? '' + ? '' : ''; return $thumb; } diff --git a/Toolkit/Videos/templates/webPageDecorator.html b/Toolkit/Videos/templates/webPageDecorator.html index 9f8b142..b8b3afa 100644 --- a/Toolkit/Videos/templates/webPageDecorator.html +++ b/Toolkit/Videos/templates/webPageDecorator.html @@ -3,7 +3,7 @@
  • -- 2.17.1