[totem-pl-parser] Fix parsing of RSS feeds being detected as HTML files



commit e973149872b20a899c3b0a2651b19a970d9d3818
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Dec 4 13:11:59 2009 +0000

    Fix parsing of RSS feeds being detected as HTML files

 plparse/totem-pl-parser.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index f5450db..6104c30 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -2308,7 +2308,8 @@ totem_pl_parser_mime_type_from_data (gconstpointer data, int len)
 	if (mime_type != NULL &&
 	    (strcmp (mime_type, "text/plain") == 0 ||
 	     strcmp (mime_type, "application/octet-stream") == 0 ||
-	     strcmp (mime_type, "application/xml") == 0)) {
+	     strcmp (mime_type, "application/xml") == 0 ||
+	     strcmp (mime_type, "text/html") == 0)) {
 		PlaylistIdenCallback func;
 		guint i;
 



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