[totem-pl-parser/wip/hadess/atom-podcast-fixes: 3/4] podcast: Fix parsing "alternate" link
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser/wip/hadess/atom-podcast-fixes: 3/4] podcast: Fix parsing "alternate" link
- Date: Mon, 11 Feb 2019 02:19:59 +0000 (UTC)
commit c2435b7f8ffb2fa3af51d2c021976eb6e5282679
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 11 03:05:20 2019 +0100
podcast: Fix parsing "alternate" link
plparse/totem-pl-parser-podcast.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/plparse/totem-pl-parser-podcast.c b/plparse/totem-pl-parser-podcast.c
index 54b336a..ef968fe 100644
--- a/plparse/totem-pl-parser-podcast.c
+++ b/plparse/totem-pl-parser-podcast.c
@@ -452,6 +452,15 @@ parse_atom_entry (TotemPlParser *parser, xml_node_t *parent)
continue;
/* This isn't really a copyright, but what the hey */
copyright = href;
+ } else if (g_ascii_strcasecmp (rel, "alternate") == 0) {
+ const char *href;
+
+ href = xml_parser_get_property (node, "href");
+ if (href == NULL)
+ continue;
+ if (!totem_pl_parser_is_videosite (href, FALSE))
+ continue;
+ uri = href;
}
} else if (g_ascii_strcasecmp (node->name, "updated") == 0
|| (g_ascii_strcasecmp (node->name, "modified") == 0 && pub_date == NULL)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]