Closed (fixed)
Project:
FeedAPI
Version:
6.x-1.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 May 2008 at 12:57 UTC
Updated:
7 Jun 2008 at 05:15 UTC
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
Comment #1
mustafau commentedBoth items have the same GUID (1102345).
Comment #2
kade commentedThanks 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 :)
Comment #3
mustafau commentedYou should look at _feedapi_node_unique() function in feedapi_node.module.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.