[totem-pl-parser/wip/hadess/fix-itms-parsing] podcast: Print itms JSON file in debug



commit 8449d3325042f647f3ed27c267daff05e8b277b3
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Apr 23 13:42:26 2021 +0200

    podcast: Print itms JSON file in debug

 plparse/totem-pl-parser-podcast.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/plparse/totem-pl-parser-podcast.c b/plparse/totem-pl-parser-podcast.c
index cdbeaa2..4fd9b24 100644
--- a/plparse/totem-pl-parser-podcast.c
+++ b/plparse/totem-pl-parser-podcast.c
@@ -766,6 +766,9 @@ totem_pl_parser_parse_json (char *data, gsize len, gboolean debug)
 {
        char *s, *end;
 
+       if (debug)
+               g_print ("About to parse JSON:\n%s", data);
+
        s = g_strstr_len (data, len, "feedUrl\":\"");
        if (s == NULL)
                return NULL;


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