totem-pl-parser r45 - in trunk: . plparse
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: totem-pl-parser r45 - in trunk: . plparse
- Date: Sat, 26 Jan 2008 20:52:20 +0000 (GMT)
Author: hadess
Date: Sat Jan 26 20:52:19 2008
New Revision: 45
URL: http://svn.gnome.org/viewvc/totem-pl-parser?rev=45&view=rev
Log:
2008-01-26 Bastien Nocera <hadess hadess net>
* plparse/totem-pl-parser.c:
(my_gnome_vfs_get_mime_type_with_data):
If we get text/plain as the mime-type at the end of the function,
check whether it could be an RSS feed, fixes parsing CBC podcasts
(Closes: #511627)
Modified:
trunk/ChangeLog
trunk/plparse/totem-pl-parser.c
Modified: trunk/plparse/totem-pl-parser.c
==============================================================================
--- trunk/plparse/totem-pl-parser.c (original)
+++ trunk/plparse/totem-pl-parser.c Sat Jan 26 20:52:19 2008
@@ -644,6 +644,8 @@
if (mimetype != NULL && strcmp (mimetype, "text/plain") == 0) {
if (totem_pl_parser_is_uri_list (*data, total_bytes_read) != FALSE)
return g_strdup (TEXT_URI_TYPE);
+ else if (totem_pl_parser_is_rss (*data, total_bytes_read) != FALSE)
+ return g_strdup ("application/rss+xml");
}
return g_strdup (mimetype);
@@ -1326,7 +1328,7 @@
PLAYLIST_TYPE ("text/google-video-pointer", totem_pl_parser_add_gvp, NULL, FALSE),
PLAYLIST_TYPE ("audio/x-iriver-pla", totem_pl_parser_add_pla, NULL, FALSE),
PLAYLIST_TYPE ("application/atom+xml", totem_pl_parser_add_atom, NULL, FALSE),
- PLAYLIST_TYPE ("application/rss+xml", totem_pl_parser_add_rss, NULL, FALSE),
+ PLAYLIST_TYPE ("application/rss+xml", totem_pl_parser_add_rss, totem_pl_parser_is_rss, FALSE),
PLAYLIST_TYPE ("text/x-opml+xml", totem_pl_parser_add_opml, NULL, FALSE),
#ifndef TOTEM_PL_PARSER_MINI
PLAYLIST_TYPE ("application/x-desktop", totem_pl_parser_add_desktop, NULL, TRUE),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]