having difficulty getting the following example rss to import into drupal. I have tried to see what is different to actual rss feeds that do work, but cannot seem to see it.

Any suggestions would be greatful.

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>RSS Example</title>
<description>This is an example of an RSS feed</description>
<link>http://www.domain.com/link.htm</link>
<lastBuildDate>Mon, 28 Aug 2006 11:12:55 -0400 </lastBuildDate>
<pubDate>Tue, 29 Aug 2006 09:00:00 -0400</pubDate>
<item>
<title>Item Example</title>
<description>This is an example of an Item</description>
<link>http://www.domain.com/link.htm</link>
<guid isPermaLink="false"> 1102345</guid>
<pubDate>Tue, 29 Aug 2006 09:00:00 -0400</pubDate>
</item>
<item>
<title>Item Example 2</title>
<description>This is an example of an Item 2</description>
<link>http://www.domain.com/link2.htm</link>
<guid isPermaLink="false"> 1102345</guid>
<pubDate>Tue, 29 Aug 2006 09:00:00 -0400</pubDate>
</item>
</channel>
</rss>

Comments

mustafau’s picture

Both items have the same GUID (1102345).

kade’s picture

Thanks for that mustafau.

That solved the example rss above.

The actual rss I am working doesnt have well formed rss and so the url in each is identical (original_url).

I couldnt find where in the module was checking to see if the url is duplicated, so I'm writing my own that hooks into _feedapi_after_parse and adds a number to the end of the url to make them unique ( I dont need the url as I'm hacking the rss feed).

Your tip about the duplicate GUID put me in the right direction, so thankyou :)

mustafau’s picture

Status: Active » Fixed

You should look at _feedapi_node_unique() function in feedapi_node.module.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.