1. 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

Discussion in 'Media Gallery Resolved Bugs' started by RoldanLT, May 13, 2015.

  1. RoldanLT

    RoldanLT Well-Known Member

  2. RoldanLT

    RoldanLT Well-Known Member

    I mean using this thumbnail:
    [​IMG]
     
  3. Mike

    Mike XenForo Developer Staff Member

  4. Mike

    Mike XenForo Developer Staff Member

    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.
     
  5. RoldanLT

    RoldanLT Well-Known Member

    And why is that? :/
     
  6. RoldanLT

    RoldanLT Well-Known Member

    Yes, it happens maybe 80% of my youtube videos imported.
     
  7. RoldanLT

    RoldanLT Well-Known Member

  8. RoldanLT

    RoldanLT Well-Known Member

    What other variables I can use on this?
    Like a smaller thumbnail.
     
  9. Chris D

    Chris D XenForo Developer Staff Member

    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.
     
    RoldanLT likes this.
  10. RoldanLT

    RoldanLT Well-Known Member

    Thanks a lot for the workaround :)
     
  11. Mike

    Mike XenForo Developer Staff Member

    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.)
     

    Attached Files:

    Walter, Robru, 51463 and 2 others like this.
  12. Chris D

    Chris D XenForo Developer Staff Member

    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
     
  13. RoldanLT

    RoldanLT Well-Known Member

  14. RoldanLT

    RoldanLT Well-Known Member

    I even updated my Live Forum Site code, but still showing the wrong thumbnail.
     
  15. Chris D

    Chris D XenForo Developer Staff Member

    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.
     
    Helldon and RoldanLT like this.

Share This Page