flickr.photos.search offers media = {photos/videos/all} option, but it's not possible to set the option of which kind of media to fetch in the Flickr module.
This breaks when my Flickr stream contains videos, the video appears as broken image link in the block.
My quick fix for a site that's already live, hoping someone could patch it up properly somewhere higher up the call hierarchy (e.g. Flickr Block admin UI offering the choice of media to be fetched, options as in Flickr API: photos/videos/all).
Obviously, it would also be great to fix video display for blocks.
flickr_block.module:
function _flickr_block_recent($nsid, $show_n, $size) {
$output = '';
if ($photos = flickr_photos_search($nsid, 1, array('per_page' => $show_n, 'media' => 'photos'))) { <---
foreach ($photos['photo'] as $photo) {
$output .= theme('flickr_block_photo', array('photo' => $photo, 'size' => $size));
}
}
return $output;
}
Comments
Comment #0.0
narnua commented+module information
Comment #1
narnua commentedComment #2
dakku commentedsee patch here:
https://drupal.org/node/2023103
Comment #3
lolandese commentedThe issue mentioned in #2 provides a patch to review. I'm tagging this one as a duplicate, even if this thread is older.
Thanks.
Comment #3.0
lolandese commentedwording