[tracker/crawling-interval] tracker-extract: NB#166080: ignore stuff exiftool adds to Copyright fields
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/crawling-interval] tracker-extract: NB#166080: ignore stuff exiftool adds to Copyright fields
- Date: Tue, 1 Jun 2010 15:19:36 +0000 (UTC)
commit 68433b02b66e4d4d05ae741ad7729921cab0a8ba
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Apr 28 15:26:14 2010 +0200
tracker-extract: NB#166080: ignore stuff exiftool adds to Copyright fields
src/libtracker-extract/tracker-exif.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-exif.c b/src/libtracker-extract/tracker-exif.c
index 704c633..203b94d 100644
--- a/src/libtracker-extract/tracker-exif.c
+++ b/src/libtracker-extract/tracker-exif.c
@@ -380,8 +380,17 @@ parse_exif (const unsigned char *buffer,
data->metering_mode = get_metering_mode (exif, EXIF_TAG_METERING_MODE);
if (!data->white_balance)
data->white_balance = get_white_balance (exif, EXIF_TAG_WHITE_BALANCE);
- if (!data->copyright)
+ if (!data->copyright) {
+ gchar *strip_off;
data->copyright = get_value (exif, EXIF_TAG_COPYRIGHT);
+ /* exiftool catenates this to the string, so we don't need it */
+ if (data->copyright) {
+ strip_off = strstr (data->copyright, " (Photographer) - (Editor)");
+ if (strip_off) {
+ *strip_off = '\0';
+ }
+ }
+ }
if (!data->software)
data->software = get_value (exif, EXIF_TAG_SOFTWARE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]