Active
Project:
Aggregation
Version:
5.x-4.3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2008 at 23:04 UTC
Updated:
12 Apr 2008 at 04:03 UTC
Hi,
(I'm Spanish, sorry about my English)
I'm using aggregation to get feed items into my site, but when the feed has an image it shows it on my site, but loading it from the original weblog.
I want to copy the images automatically to my site to be loaded from my servers (at list the first one). It's is possible as I understand from the aggregation module, I have installed the image module, but I can't get it to work...
How it should be done???
Thanks
Comments
Comment #1
heronog commentedI am having a similar problem, I am aggregating content from another drupal site.
The nodes on the original site have an image attach, and the file shows up correctly in the xml.
The aggregation module in the other site is creating the image node and if I edit the "feed item" node that is created, the local node id for the image is in the right place, but there is no image file, so the "feed item" shows no image at all.
Image module is 5.x-2.x-dev and aggregation is 5.x-4.3
Also when importing feed items from the other drupal site, I see lots of errors like these:
Comment #2
internetdevels commentedsubscribe
Updated:
I've found some code in RSS20.inc, line 93:
$image = array();
if ($news->enclosure) {
if (preg_match('/^image/', $news->enclosure['type'])) {
$image[] = array('url' => "{$news->enclosure['url']}");
}
}
_aggregation_add_item($title, $body, $teaser, $original_author, $feed, $additional_taxonomies, $timestamp, $original_url, $guid, $image, $other);
But $news->enclosure is always ininitialized, so parameter $image is always empty.