hanklords/flickraw

Media type in Response

Closed this issue · 2 comments

Hello,

First, thank you for this gem which help me a lot. However, I have some videos in my gallery, and I want to use them. The only way I found to know the media type is this one :
flickr.photos.getInfo(:photo_id => photo.id).media

but... it takes a long time when you have a lot of pictures...

I have read in the flickr API documentation that they give the media type in the response.
http://code.flickr.net/2008/05/01/videos-in-the-flickr-api/

I think it should be a great thing to add.

THX in advence ;-)

Hi,

I am not sure how you get the list of photos in your gallery, but for most calls you can pass the :extras => 'media' parameter so it will return the media info for all photos returned by the call.

Thanx very much... I missed that 👍