This is a must! I'm using the Feeds: YouTube parser to map YouTube videos using Feeds. It would be just perfect to map the thumbnail remote URL to a Filefield!

What do you think?

Comments

quicksketch’s picture

I don't really understand this request. What does this have to do with FileField Sources? What functionality are you expecting?

mohammed j. razem’s picture

I'm requesting to map Remote URLs of images to File fields, using FileField Sources module.

Example:
A feed has a "thumbnail image" source: http://i.ytimg.com/vi/A4sNcbomA3s/default.jpg
Using Feeds, this can be mapped to a File field using Remote URL function in FileField sources.

I'm requesting to create a Feeds mapper to map URLs to File fields.

Is that clearer?

quicksketch’s picture

Hmm, well there are a couple of issues that make this issue probably unlikely:

- FileField Sources is just a *widget* on the form field. It doesn't provide an API to retrieve URLs.
- This module doesn't actually keep track of external links at all, it just uses the URL to retrieve the file locally.

I've said in the past that I don't anticipate this module to be used as an API (#775756: Using programmatically), but if you have suggestions (and patches) to make that a reality I'm open to improving the code. I don't think that I'll ever include a Feed Mapper directly in this project though, as I've personally never used Feeds and I wouldn't want to try to keep the implementation working as the module moves forward.

quicksketch’s picture

Status: Active » Closed (won't fix)
2pha’s picture

I was looking for this functionality too.
Did you end up finding a way to do it Mohammed?

2pha’s picture

It seems that image field in Drupal 7 already accepts a url for the image (why filefield sources is just a widget) but there was an error in the feeds module that wouldn't allow a url to be mapped to an imagefield.
After changing the line detailed at:
http://drupal.org/node/1612246
All worked fine.