[libgrss] Management of <alink> tag as alternative for <link> in RSS handler



commit 4217572663ae00bdbe017f39d6224f27d02631d8
Author: Roberto Guido <bob4mail gmail com>
Date:   Tue May 25 14:17:00 2010 +0200

    Management of <alink> tag as alternative for <link> in RSS handler

 src/feed-rss-handler.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/feed-rss-handler.c b/src/feed-rss-handler.c
index bd018e7..84c2941 100644
--- a/src/feed-rss-handler.c
+++ b/src/feed-rss-handler.c
@@ -201,7 +201,10 @@ parse_channel (FeedRssHandler *parser, FeedChannel *feed, xmlDocPtr doc, xmlNode
 				g_free (tmp);
 			}
 		}
-		else if (!xmlStrcmp (cur->name, BAD_CAST"link")) {
+		/*
+			<alink> has been found at least in Xinhua News Agency RSS feeds
+		*/
+		else if (!xmlStrcmp (cur->name, BAD_CAST"link") || !xmlStrcmp (cur->name, BAD_CAST"alink")) {
  			if (NULL != (tmp = unhtmlize ((gchar*) xmlNodeListGetString (doc, cur->xmlChildrenNode, TRUE)))) {
 				feed_channel_set_homepage (feed, tmp);
 				g_free (tmp);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]