Embedded Media Import
Embedded Media Field now ships with Embedded Media Import, for importing photosets, playlists, and the like. If you install that module, admins will have the ability to import photosets from Flickr as individual nodes. Just make sure the 'Allow import' checkbox on the content type (which must have a field defined with Embedded Media Field) is checked, proper permissions are given to editors, and look at the settings on the new tab at /admin/content/emfield/import.
When importing (at the new menu item: emimport -- 'Import Media Sets'), select the type you want to import content into. On the next page, paste the URL of the photoset you wish to import, click 'Parse', and you will then see thumbnails of all the items from that set. Uncheck any you wish, override titles/body/tags you wish, and click 'Import'. In a bit (which might take some time, depending on the size of the set), you will have some new nodes, complete with descriptions, titles, and tags (if you set a freetag vocabulary on the settings page).
Currently, the module only supports Flickr, but I hope to support other providers in the future. (YouTube will probably be next.) I've only stress tested it to 100 nodes, so I'd love any reports for anyone importing larger photosets. (Flickr allows up to 500 in a photoset.)
Future enhancements: support for more providers (definitely), allow descriptions to be put into something besides node->body (probably), multiple pages for import (to break up large sets) (slightly possibly). It's currently only in the 5.x version -- not sure I'll do 4.7, since I'm pretty sure it would take more work (with CCK differences between 4.7 & 5).
I'd love feedback & suggestions for the module!
Thanks,
Aaron Winborn
Advomatic, Advocacy Automated, Web Design for Progressive Advocacy, Grassroots Movements, and Really Cool Causes


Hmmm. This sounds like an
Hmmm. This sounds like an ideal CCK field for importing enclosures from RSS or Atom feeds. I ve got the Feed Element Mapper module (http://www.developmentseed.org/blog/2007/oct/30/pick-it-feed-stick-it-no...) sitting in my sandbox - a module that maps feed item elements to any node field - potentially also CCK fields.
So what I would like to do is throw a URL at Embedded Media Import Field and have the field download and store it - would this functionality programmatically accessible?
Josh_k did this for Future Majority...
Josh_K did something this for our Future Majority, though I'm not 100% sure how it works. I definitely think adding feed capabilities would be a good compliment to emfield, and would love to help figure it out (though I am really just a beginner with PHP)!
BTW- your link was the first I ever heard of Development Seed, you guys seem awesome! Tell Tim that Alex UA said "Yo!". I didn't even realize he was a Drupal guy (though I should have put two and two together since I did know that Dodd is on Drupal).
I just gave the media import
I just gave the media import a try with flickr last night and it worked great, but my client needs something that will allow us to use the flickr api to pull in photos based on tags or usernames not an individuals photo set. Has this been worked on? If not, I may step up and try to add a patch but I just wanted to see if this is something someone else has started before I start writing...
Thanks for the great module!
Blake
wouldn't that just work by
wouldn't that just work by subscribing to tag or user feeds?
When I tried that it gave me
When I tried that it gave me an invalid feed error. I'm now trying to see what can be done using feedapi and feedapi mapper, since I'm doing this for both youtube and flickr content, I'm seeing if I can get get the youtube feeds pulled in and mapped properly if I can then just create a new mapper.inc file for flickr to work as well. Will keep posted.
feedapi_mapper_video_cck.inc
I would look at this extremely small mapper.inc file, as it maps to an embed field and is all of one function.
You also might want to reach out to ekes, who made that include file and is doing a lot of work on aggregating rich media. I'm sure he would have some good advice on what you need to do if you can't figure it out on your own.
Alex Urevick-Ackelsberg
ZivTech: Illuminating Technology