Don't save empty metadata keys to XBEL
This commit is contained in:
parent
afc414e7e3
commit
f492a28764
1 changed files with 3 additions and 2 deletions
|
@ -360,6 +360,7 @@ katze_item_metadata_to_xbel (KatzeItem* item)
|
|||
g_string_append_printf (markup, "%s\"", namespace_uri);
|
||||
i = 0;
|
||||
while ((key = g_list_nth_data (keys, i++)))
|
||||
if (katze_item_get_meta_string (item, key))
|
||||
g_string_append_printf (markup, " %s:%s=\"%s\"", namespace, key,
|
||||
katze_item_get_meta_string (item, key));
|
||||
g_string_append_printf (markup, "/>\n</info>\n");
|
||||
|
|
Loading…
Reference in a new issue