[totem-pl-parser] plparse: Add debug in itms: link failure case



commit 7ec1a62ed5fed42d1c9b8b53f1233457646843d3
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Oct 23 12:53:11 2015 +0200

    plparse: Add debug in itms: link failure case
    
    When parsing an ITMS link fails, print out the captured XML plist
    in the debug.

 plparse/totem-pl-parser-podcast.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/plparse/totem-pl-parser-podcast.c b/plparse/totem-pl-parser-podcast.c
index a949a20..9fa68ac 100644
--- a/plparse/totem-pl-parser-podcast.c
+++ b/plparse/totem-pl-parser-podcast.c
@@ -726,8 +726,12 @@ totem_pl_parser_get_feed_uri (char *data, gsize len, gboolean debug)
        /* Redirect plist? Find a goto action */
        uri = totem_pl_parser_parse_plist (doc);
 
-       if (debug)
-               g_print ("Found redirect URL: %s\n", uri);
+       if (debug) {
+               if (uri == NULL)
+                       g_print ("Did not find redirect URL in: %.*s\n", (int) len, data);
+               else
+                       g_print ("Found redirect URL: %s\n", uri);
+       }
 
        if (uri == NULL)
                goto out;


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