diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2012-12-27 20:29:37 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2012-12-27 20:29:37 +0100 |
| commit | d0599f8ab5c38e14845407dea4eef4d4957f9e28 (patch) | |
| tree | 14d5636e8a4213c06ab4144e5ae32a88f4ddbc8b /src/items.c | |
| parent | dfb9d91c3342d9415a41e98d3a4af7d8c7472c6b (diff) | |
| download | cataract-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.c | 5 |
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 { |
