Posted by andrew7 on October 4, 2007 at 2:16am
Since the gods of aggregation are all here, and I've exhausted all other options, here goes my question:
In our project, we are dealing with aggregated feeds that have media enclosures in them. Photos, the occasional video, etc. How can one parse these files and use them?
My related post:
http://drupal.org/node/180385
Comments
Short version: I used
Short version: I used FeedAPI, added a couple of hooks to my parser/processor, and then explicitly fetched attributes from the <item> and used them to create the nodes. This included the enclosure tag (using curl to fetch the file), keywords tags (added to taxonomy), etc.
Simon Roberts
Taniwha Solutions
Hi keysar, I know this is a
Hi keysar,
I know this is a late reply, but only recently I got around to do more aggregator work again (FeedAPI 1.0 beta 1 is out now).
I am interested in making downloading enclosures and other file references happen, too.
What's not clear for me is what kind of Drupal ressources you would like to map enclosures to.
Should e. g. a file enclosure be mapped to a particular CCK file field on your node? Files of image types be mapped to an image field? Or do you only want to download files into a directory?
Alex
http://www.twitter.com/lxbarth
Alex: I can't speak for
Alex: I can't speak for keystar7 but I would say there are two different types of ways to handle enclosures:
I'm very interested in the second way and I think your Mapping module will work well for that. Thanks for all your great work on the FeedAPI
Cheers,
Brent
We've been looking at this as well
and have been thinking about two different directions --
http://drupal.org/project/mediafield
http://drupal.org/project/mediafield_display
http://drupal.org/project/audio
http://drupal.org/project/emfield
WRT importing the file, we would want to set that as an option that would allow the site admin to set a size limit for the import -- ie, import any file under X MB, and link to files over X MB -- like the player, this would be configurable by media type, so you (for example) could elect to import jpgs 2 MB or or smaller, import mp3s 10 MB or smaller, and import video files 30 MB or smaller.
I'd love any feedback from folks who have gone down this road about the different options, or other options we haven't considered. We are still researching now, but will start coding within the next 2-3 weeks. Our initial use case is in synching up with a doc repository.
Cheers,
Bill
FunnyMonkey
Tools for Teachers
FunnyMonkey