From 9c485195be2fe0431eec8decc8214a6721ad5ad3 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 4 Mar 2021 16:45:29 +0100 Subject: podcast: Do not check for videosite links unless requested We don't need to check whether links in RSS feeds are videosite links unless the application requested that we do, by enabling recursive parsing. Closes: #25 --- plparse/totem-pl-parser-podcast.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plparse/totem-pl-parser-podcast.c b/plparse/totem-pl-parser-podcast.c index 864681b..5f8c8f2 100644 --- a/plparse/totem-pl-parser-podcast.c +++ b/plparse/totem-pl-parser-podcast.c @@ -275,6 +275,7 @@ parse_rss_item (TotemPlParser *parser, xml_node_t *parent) if (tmp != NULL) content_type = tmp; } else if (g_ascii_strcasecmp (node->name, "link") == 0 && + totem_pl_parser_get_recurse (parser) && totem_pl_parser_is_videosite (node->data, FALSE) != FALSE) { uri = node->data; } else if (g_ascii_strcasecmp (node->name, "image") == 0) { @@ -296,6 +297,7 @@ parse_rss_item (TotemPlParser *parser, xml_node_t *parent) if (id != NULL && uri == NULL && + totem_pl_parser_get_recurse (parser) && totem_pl_parser_is_videosite (id, FALSE) != FALSE) uri = id; -- cgit v1.2.1