summaryrefslogtreecommitdiff
path: root/src/items.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2012-12-27 20:29:37 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2012-12-27 20:29:37 +0100
commitd0599f8ab5c38e14845407dea4eef4d4957f9e28 (patch)
tree14d5636e8a4213c06ab4144e5ae32a88f4ddbc8b /src/items.c
parentdfb9d91c3342d9415a41e98d3a4af7d8c7472c6b (diff)
downloadcataract-d0599f8ab5c38e14845407dea4eef4d4957f9e28.tar.xz
Support external EXIF metadata
This brings an ability to specify external file to read EXIF/IPTC data from. The motivation was to work around RAW editors randomly stripping some EXIF blocks.
Diffstat (limited to 'src/items.c')
-rw-r--r--src/items.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/items.c b/src/items.c
index 74cfb49..68ae66d 100644
--- a/src/items.c
+++ b/src/items.c
@@ -40,6 +40,7 @@ free_album_item (TIndexItem *item)
g_free (item->thumbnail);
g_free (item->preview);
g_free (item->border_style);
+ g_free (item->metadata_external_exif);
g_free (item);
}
@@ -215,6 +216,10 @@ parse_album_xml (const gchar *filename, TPathInfo *path_info)
g_free (s);
}
+ s = g_strdup_printf ("/gallery/items/*[%d]/metadata/external_exif", i + 1);
+ item->metadata_external_exif = xml_file_get_node_attribute (xml, s, "src");
+ g_free (s);
+
if (item->path || item->preview) {
g_ptr_array_add (index->items, item);
} else {