[totem-pl-parser/wip/hadess/dont-recurse-videosite: 37/38] podcast: Do not check for videosite links unless requested
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser/wip/hadess/dont-recurse-videosite: 37/38] podcast: Do not check for videosite links unless requested
- Date: Thu, 24 Jun 2021 16:18:20 +0000 (UTC)
commit 81e2dfc7b92857fb0861b9684e024aa18d3db29a
Author: Bastien Nocera <hadess hadess net>
Date: Thu Mar 4 16:45:29 2021 +0100
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 87917d8..2fccb79 100644
--- a/plparse/totem-pl-parser-podcast.c
+++ b/plparse/totem-pl-parser-podcast.c
@@ -273,6 +273,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, totem_pl_parser_is_debugging_enabled
(parser)) != FALSE) {
uri = node->data;
} else if (g_ascii_strcasecmp (node->name, "image") == 0) {
@@ -294,6 +295,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, totem_pl_parser_is_debugging_enabled (parser)) != FALSE)
uri = id;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]