• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Youtube Video Import, Grabbing wrong thumbnail

Mike

XenForo developer
Staff member
#4
I see this being returned by other videos as well. It feels like it might be a YT bug but I think more debugging may be needed.
 

Chris D

XenForo developer
Staff member
#9
There'd be no benefit to that as we already resize and compress the thumbnail down to the correct size. It's best to start off as high resolution as possible, then whatever settings you have for the thumbnail sizes will dictate the eventual resolution and file size of the thumbnail.

With an even smaller thumbnail, XFMG would end up scaling it up to the right size which would look pretty poor.
 

Mike

XenForo developer
Staff member
#11
Due to the API alternative that's in the code appearing to be less consistent with more recent videos, we have just updated the package with a fix to this. The version number listed in the control panel is now 1.0.5a to distinguish that it has been patched.

If you have already upgraded to 1.0.5, you can replace library/XenGallery/Thumbnail/YouTube.php with the version attached to fix it. (Note that this is preferable to the previously posted workaround.)
 

Attachments

Chris D

XenForo developer
Staff member
#12
If you applied the previous workaround (now deleted), then please go to Admin CP > Applications > Gallery Options > Media Site Options ensure the textbox next to the YouTube drop down reads as follows:

XenGallery_Thumbnail_YouTube
 

Chris D

XenForo developer
Staff member
#15
The thumbnail is cached, so for any affected videos you can go to the media, click "Change Media Thubmnail" and click the "Delete" checkbox. That should re-download the thumbnail for you.

We're not running the updated code here yet.