Hello
I had a problem with Daily motion thumbnails as soon as i changed some code for the thumbnail url

I have replaced

function emvideo_dailymotion_thumbnail($field, $item, $formatter, $node, $width, $height) {
return 'http://www.dailymotion.com/thumbnail/160x120/video/'. $item['value'];
}

by

function emvideo_dailymotion_thumbnail($field, $item, $formatter, $node, $width, $height) {
return 'http://www.dailymotion.com/thumbnail/160x120/'. $item['value'];
}

in emfield/contrib/emvideo/providers/dailymotion.inc

on line 125

Comments

Alex UA’s picture

Version: 6.x-1.24 » 6.x-2.x-dev
Status: Patch (to be ported) » Postponed (maintainer needs more info)

The thumbnails work as expected for me. Marking as postponed for now- can you give me a url of a video that you're having trouble getting thumbnails for?

Thanks!

Alex UA’s picture

Moving to Media: Video Flotsam module, where this will be fixed (if it still needs to be fixed).

Alex UA’s picture

Project: Embedded Media Field » Media: Video Flotsam
Version: 6.x-2.x-dev » 6.x-1.x-dev
Component: Embedded Video Field » Code
dale’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

The above fix works for me.

Apparently the url that gets stored for the video ends with /video
so emthumb tries to fetch :

http://www.dailymotion.com/thumbnail/160x120/video/video/xfuarw_caputo-s...

I also noticed Dailymotion supports larger thumnailsize these days.

for example this video :
http://www.dailymotion.com/video/xfuarw_caputo-slaat-ploeggenoot-knockou...
has a 160x120 thumbnail at :
http://www.dailymotion.com/thumbnail/160x120/video/xfuarw_caputo-slaat-p...
and a 320x240 thumbnail at :
http://www.dailymotion.com/thumbnail/320x240/video/xfuarw_caputo-slaat-p...

Thanks for the very useful module emfield module and all the providers that come with it!

dale’s picture

Status: Postponed (maintainer needs more info) » Active
dale’s picture

Status: Postponed (maintainer needs more info) » Patch (to be ported)