I am trying to import news from youtube using feeds module, but it does not import images. I also installed feeds image grabber module with the following code modification. It works for other websites, but not youtube.

Fixed with latest dev versions of feeds and image grabber by adding the following to feeds_imagegrabber/libraries/url_to_absolute.inc :

After line 424, at the begining of function encode_url

if (is_array($url)) {
    $url = array_pop($url);
}

Comments

ugintl created an issue. See original summary.

MegaChriz’s picture

Project: Feeds » Feeds Image Grabber
Version: 7.x-2.x-dev » 7.x-1.x-dev

This sounds like an issue for Feeds Image Grabber, not Feeds?

Changing project. Feel free to move it back to Feeds if I did not understand you correctly, but explain in that case why it is a bug in Feeds and, more importantly, how to reproduce it by providing an export of your importer and the Youtube URL that you are trying to import from.

rooby’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

It should work the same as any other, as long as you have an image on the YouTube page to grab.
I just tried with a YouTube feed just now and the module works as expected however when I check the source of the YouTube video page, there is no img tag on the page, which means nothing will be scraped.

So the issue most relevant here is #2938829: Give more control over which markup the image is harvested from, but there is not really a bug here.

Also, the workaround you have used relates to an incompatibility with the latest versions of feeds.
There is a patch at #2244833: Image Grabber doesn't work with latest version of Feeds that resolves the issue now.

rooby’s picture