This project has moved. For the latest updates, please go here.

how to return only photos (not videos) from photoset?

Topics: Developer Forum
Oct 23, 2009 at 7:21 AM

using the following code I was able to retrieve photoset photocollection but how to apply some search filter?

Photoset ps = flickr.PhotosetsGetPhotos(photosetname,PhotoSearchExtras.Media , (int)Session["page"], itemperpage);
foreach (Photo p in ps.PhotoCollection)
  if ( == "video")
//show photo

currently I just skip those p with media=video but that's not very good because the page control is wrong.

also, currently there is no way that I can show video right now, right? because the official API doesn't provide HD video interface. Am I right about this? I'm not so sure.

Oct 24, 2009 at 7:55 PM

Sorry, was missing the optional media filter on this method. I've added it to the source code.

I really must do a proper release as things have changed quite a bit :)


Oct 26, 2009 at 6:07 AM

Thanks man! It works!

Dec 14, 2009 at 11:44 PM

Hi... I downloaded the source code and did not see an overload of PhotosetsGetPhotos with a media filter. Is this still filter still in the code base?

Dec 15, 2009 at 9:02 PM

Yes, its still there. Did you download the source from here: ?

Dec 16, 2009 at 8:45 PM

Nope, I had gotten it from the Downloads page. Got changeset 61005, and we're in business... Thanks!!