Read metadata from XBEL elements other than the root folder
This commit is contained in:
parent
dc440e85db
commit
967ad910ed
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,10 @@
|
||||||
#include <libxml/tree.h>
|
#include <libxml/tree.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static void
|
||||||
|
katze_xbel_parse_info (KatzeItem* item,
|
||||||
|
xmlNodePtr cur);
|
||||||
|
|
||||||
static gchar*
|
static gchar*
|
||||||
katze_item_metadata_to_xbel (KatzeItem* item);
|
katze_item_metadata_to_xbel (KatzeItem* item);
|
||||||
|
|
||||||
|
@ -52,6 +56,8 @@ katze_item_from_xmlNodePtr (xmlNodePtr cur)
|
||||||
katze_item_set_text (item, g_strstrip ((gchar*)key));
|
katze_item_set_text (item, g_strstrip ((gchar*)key));
|
||||||
g_free (key);
|
g_free (key);
|
||||||
}
|
}
|
||||||
|
else if (!xmlStrcmp (cur->name, (const xmlChar*)"info"))
|
||||||
|
katze_xbel_parse_info (item, cur);
|
||||||
cur = cur->next;
|
cur = cur->next;
|
||||||
}
|
}
|
||||||
return item;
|
return item;
|
||||||
|
|
Loading…
Reference in a new issue