Forum Replies Created

Viewing 1 replies (of 1 total)
  • I just changed in the plugin code the default video thumbnail image resolution, only for the first image of the gallery. It’s an easy patch.

    Just change these lines of code of youtube-channel.php:

    $yt_thumb  = "//img.youtube.com/vi/$yt_id/0.jpg"; // zero for HD thumb
    
    // Enhanced privacy?
    $youtube_domain = $this->youtube_domain( $instance );
    
    switch ( $y ) {
       case 1:
          $vnumclass = 'first';
          break;

    into:

    $yt_thumb_low_res  = "//img.youtube.com/vi/$yt_id/0.jpg"; // zero for normal resolution thumb
    $yt_thumb_high_res  = "//img.youtube.com/vi/$yt_id/maxresdefault.jpg"; // maxresdefault for HD thumb
    $yt_thumb  = $yt_thumb_low_res;
    			
    // Enhanced privacy?			
    $youtube_domain = $this->youtube_domain( $instance );
    switch ( $y ) {
       case 1:					
          $vnumclass = 'first';					
          $yt_thumb  = $yt_thumb_high_res;
          break;

    Done!

    If the plugin maintainer wanted to patch it once for all, I’d be very happy 🙂

Viewing 1 replies (of 1 total)