Youtube thumbnail in Views

mattiasdk - September 2, 2009 - 15:11
Project:Video Upload
Version:6.x-1.3
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

I just stubled opon a small problem in the video_upload.theme.inc file, where the small thumbnails are processed for Views.

Apparently it's just a small coding glitch, which can be fixed very easy.

The value "id" in $item is wrong and should be changed to "video_id" in line 125:
$attributes['src'] = VIDEO_UPLOAD_YOUTUBE_THUMB_URL . '/' . $item['id'] . '/1.jpg' . $flag;

Otherwise Views will show the text "Youtube Thumbnail" forever, because the Youtube ID isn't included in the img-link.

Regards,

#1

jhedstrom - September 3, 2009 - 00:08
Status:patch (to be ported)» fixed

Thanks mattiasdk. Committed to dev.

#2

System Message - September 17, 2009 - 00:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.