summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-02-11 03:03:48 +0100
committerBastien Nocera <hadess@hadess.net>2019-02-11 03:03:48 +0100
commit738e5f78833921d51e538658be523d43550aef0c (patch)
tree4c7d01df029e89cfcf1595d356ba50fa0047a84a
parent5b22c94bc05fc02b53e19b61b3bcc3e3cbdbb910 (diff)
downloadtotem-pl-parser-738e5f78833921d51e538658be523d43550aef0c.tar.gz
podcast: Parse author in Atom
-rw-r--r--plparse/totem-pl-parser-podcast.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/plparse/totem-pl-parser-podcast.c b/plparse/totem-pl-parser-podcast.c
index 08e229f..64b825a 100644
--- a/plparse/totem-pl-parser-podcast.c
+++ b/plparse/totem-pl-parser-podcast.c
@@ -419,7 +419,17 @@ parse_atom_entry (TotemPlParser *parser, xml_node_t *parent)
if (g_ascii_strcasecmp (node->name, "title") == 0) {
title = node->data;
} else if (g_ascii_strcasecmp (node->name, "author") == 0) {
- //FIXME
+ xml_node_t *child;
+
+ for (child = node->child; child != NULL; child = child->next) {
+ if (child->name == NULL)
+ continue;
+
+ if (g_ascii_strcasecmp (child->name, "name") == 0) {
+ author = child->data;
+ break;
+ }
+ }
} else if (g_ascii_strcasecmp (node->name, "link") == 0) {
const char *rel;