From 967ad910ed322cdbc3fd05f9b8231f7f47f29f67 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 18 Jul 2009 16:16:39 +0200 Subject: [PATCH] Read metadata from XBEL elements other than the root folder --- midori/midori-array.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.39.5