Hey,

I was going to make my own custom "thumbanil logic", which basiclly took the thumbnail for a .flv file from any image with the same file name also attached.

Can't do this coz you don't pass the "item" to the hook from xspf_playlist_thumb_xspf_playlist_item_alter(). I'd also like to choose the image as the thumbnail for itsself.

If an image is used and a thumbnail then perhaps it could be removed from the final list (would also be good but then you'd need to pass in the list?)

just some thoughts. Going to hack it for now.

CommentFileSizeAuthor
#1 xspf_playlist_thumb.module.txt11.31 KBcpill
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cpill’s picture

Hey,
I've made the change and have attached my version for review. Not major but option 4 now means files which have an image with the same base-file-name will get that image as their thumbnail, else the first one i.e. fred.flv will get fred.png as a thumbnail. Also images will use themselves as their own thumbnail (which makes more sense).

check
it
out