totem-pl-parser r122 - in branches/gnome-2-22: . plparse



Author: hadess
Date: Fri May  9 13:51:56 2008
New Revision: 122
URL: http://svn.gnome.org/viewvc/totem-pl-parser?rev=122&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:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/plparse/totem-pl-parser-podcast.c

Modified: branches/gnome-2-22/plparse/totem-pl-parser-podcast.c
==============================================================================
--- branches/gnome-2-22/plparse/totem-pl-parser-podcast.c	(original)
+++ branches/gnome-2-22/plparse/totem-pl-parser-podcast.c	Fri May  9 13:51:56 2008
@@ -42,6 +42,7 @@
 #include "totem-pl-parser-private.h"
 
 #define RSS_NEEDLE "<rss "
+#define RSS_NEEDLE2 "<rss\n"
 #define ATOM_NEEDLE "<feed "
 #define OPML_NEEDLE "<opml "
 
@@ -56,6 +57,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]