totem-pl-parser r121 - in trunk: . plparse



Author: hadess
Date: Fri May  9 13:49:17 2008
New Revision: 121
URL: http://svn.gnome.org/viewvc/totem-pl-parser?rev=121&view=rev

Log:
2008-05-09  Bastien Nocera  <hadess hadess net>

	* plparse/totem-pl-parser-podcast.c (totem_pl_parser_is_rss):
	Re-add detection of linefeeds after "<rss" otherwise the spanish
	lesson feed doesn't work anymore



Modified:
   trunk/ChangeLog
   trunk/plparse/totem-pl-parser-podcast.c

Modified: trunk/plparse/totem-pl-parser-podcast.c
==============================================================================
--- trunk/plparse/totem-pl-parser-podcast.c	(original)
+++ trunk/plparse/totem-pl-parser-podcast.c	Fri May  9 13:49:17 2008
@@ -38,6 +38,7 @@
 #include "totem-pl-parser-private.h"
 
 #define RSS_NEEDLE "<rss "
+#define RSS_NEEDLE2 "<rss\n"
 #define ATOM_NEEDLE "<feed "
 #define OPML_NEEDLE "<opml "
 
@@ -52,6 +53,9 @@
 	if (memmem (data, len,
 		    RSS_NEEDLE, strlen (RSS_NEEDLE)) != NULL)
 		return RSS_MIME_TYPE;
+	if (memmem (data, len,
+		    RSS_NEEDLE2, strlen (RSS_NEEDLE2)) != NULL)
+		return RSS_MIME_TYPE;
 
 	return NULL;
 }



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