summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-03-04 16:45:29 +0100
committerBastien Nocera <hadess@hadess.net>2021-03-04 17:48:56 +0100
commit9c485195be2fe0431eec8decc8214a6721ad5ad3 (patch)
treea112fd78548e3e406a2a593d34e89fea234da654
parentcbe105ec792c5757db672be59e188a715b69ebfa (diff)
downloadtotem-pl-parser-9c485195be2fe0431eec8decc8214a6721ad5ad3.tar.gz
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
-rw-r--r--plparse/totem-pl-parser-podcast.c2
1 files changed, 2 insertions, 0 deletions
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;