Is it possible to harvest a media file from a CCK Link Field URL, process it using Media Mover to create a copy, store it locally or on another FTP server, and then attach that file to the original node as a CCK FileField?
I plan to create podcast nodes using FeedAPI/Feed Element Mapper (or the new Feeds module). I'm mapping the mp3/mp4 file URLs to a CCK Link Field. But I need to attach the file to the node as a CCK FileField. This may be a more generic solution to the issue #233494: Harvest media from RSS/Atom feeds (create FeedAPI integration).
On a side note I spotted that D7 Media Browser can handle files from external URLS but it doesn't mention whether it can make a local copy - http://www.24b6.net/2009/11/01/media-browser-round-3-integration-filefield
Comments
Comment #1
arthurf commentedIt should be fairly easy to harvest from a cck link field- you will just need to write a few db queries to find the urls and just make sure to track their uniqueness.
Asper the media module- the storage of of files is up to the stream wrapper- meaning that if you have an external source that should make a local copy, it should provide that functionality.
Comment #2
sjf commentedThanks. I've actually had some success with the filefield mapper patch for FeedAPI Mapper: #319538: Mapper for FileField / ImageField I managed to import several 350MB mp4 files and 50MB mp3 files on the same cron job but it timed out just before the last video file. Very impressive though.
The only reason I considered importing the files and attaching them to a CCK field is so I can use GetID3 to parse the metadata so I can use it in Views. If in D7 GetID3 can be used with external files then I won't need to do this.
Cheers.