summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-02-11 03:05:20 +0100
committerBastien Nocera <hadess@hadess.net>2019-02-11 03:05:20 +0100
commitc2435b7f8ffb2fa3af51d2c021976eb6e5282679 (patch)
treea17d072344f26a18e08917fc45c277a3684f53f6
parentd0a75b509fef956351fe3f028712df77389b834b (diff)
downloadtotem-pl-parser-c2435b7f8ffb2fa3af51d2c021976eb6e5282679.tar.gz
podcast: Fix parsing "alternate" link
-rw-r--r--plparse/totem-pl-parser-podcast.c9
1 files changed, 9 insertions, 0 deletions
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)) {