since adding support for high resolution thumbnails, the low resolution thumbnails no longer work.

need to fix this here.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joseph.olstad created an issue. See original summary.

afsolano’s picture

Hi,

Here is one solution for this problem. After try to get the maxresdefault preview in getOriginalThumbnailPath function, if the response is a 404 error, try again but this time with hqdefault preview. In theory this preview (hqdefault) always exists for a video.

Sorry for my english.

emerham’s picture

Status: Needs work » Needs review

Did a quick test on a site, looks like its working great.
Marking for review.

joseph.olstad’s picture

Can we take the current protocol instead of hard coding http? What if site is https ?

emerham’s picture

Why not just always use https?

emerham’s picture

test this on a few sites. should have most traffic to youtube on SSL only, and low res thumbs are working

joseph.olstad’s picture

ok, that way it should work on both http and https sites without complaints.

  • emerham authored 6a8b63f on 7.x-3.x
    Issue #2886546 by emerham, afsolano: low resolution thumbnails
    
joseph.olstad’s picture

Status: Needs review » Fixed

Thanks @emerham ,
fixed in 7.x-3.x dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.