[totem-pl-parser] Fix parsing for itms://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=271121520&ign-ms



commit a1bb145f79f660f25cd93d9cf4b8749dbb1e9fe4
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Apr 29 01:15:43 2009 +0100

    Fix parsing for itms://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=271121520&ign-mscache=1
    
    2009-04-29  Bastien Nocera  <hadess hadess net>
    
    	* plparse/totem-pl-parser-podcast.c (totem_pl_parser_is_itms_feed):
    	Fix parsing for
    	itms://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=271121520&ign-mscache=1
---
 ChangeLog                         |    6 ++++++
 plparse/totem-pl-parser-podcast.c |   13 ++++++++-----
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bc8f995..5e4e5b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2009-04-29  Bastien Nocera  <hadess hadess net>
 
+	* plparse/totem-pl-parser-podcast.c (totem_pl_parser_is_itms_feed):
+	Fix parsing for
+	itms://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=271121520&ign-mscache=1
+
+2009-04-29  Bastien Nocera  <hadess hadess net>
+
 	* plparse/totem-pl-parser-podcast.c (totem_pl_parser_get_feed_uri),
 	(totem_pl_parser_add_itms): Fix warning, and add debug code to
 	itms parsing
diff --git a/plparse/totem-pl-parser-podcast.c b/plparse/totem-pl-parser-podcast.c
index 1f9bf18..2071155 100644
--- a/plparse/totem-pl-parser-podcast.c
+++ b/plparse/totem-pl-parser-podcast.c
@@ -789,11 +789,14 @@ totem_pl_parser_is_itms_feed (GFile *file)
 
 	uri = g_file_get_uri (file);
 
-	if (g_file_has_uri_scheme (file, "itms") != FALSE
-	    && strstr (uri, "phobos.apple.com") != NULL
-	    && strstr (uri, "viewPodcast") != NULL) {
-	    	g_free (uri);
-		return TRUE;
+	if (g_file_has_uri_scheme (file, "itms") != FALSE) {
+		if (strstr (uri, "phobos.apple.com") != NULL ||
+		    strstr (uri, "itunes.apple.com") != NULL) {
+			if (strstr (uri, "viewPodcast") != NULL) {
+				g_free (uri);
+				return TRUE;
+			}
+		}
 	}
 
 	if (strstr (uri, "phobos.apple.com/") != NULL



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