From: Christian Dywan Date: Sat, 18 Jul 2009 14:16:39 +0000 (+0200) Subject: Read metadata from XBEL elements other than the root folder X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=967ad910ed322cdbc3fd05f9b8231f7f47f29f67;p=midori Read metadata from XBEL elements other than the root folder --- diff --git a/midori/midori-array.c b/midori/midori-array.c index 9364b743..79a82f75 100644 --- a/midori/midori-array.c +++ b/midori/midori-array.c @@ -22,6 +22,10 @@ #include #endif +static void +katze_xbel_parse_info (KatzeItem* item, + xmlNodePtr cur); + static gchar* 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)); g_free (key); } + else if (!xmlStrcmp (cur->name, (const xmlChar*)"info")) + katze_xbel_parse_info (item, cur); cur = cur->next; } return item;