[tracker/rss-enclosures] tracker-extract: NB#166080: ignore stuff exiftool adds to Copyright fields
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] tracker-extract: NB#166080: ignore stuff exiftool adds to Copyright fields
- Date: Mon, 3 May 2010 00:46:35 +0000 (UTC)
commit 00934119e4c4988cf61a2949114a6488e39a9425
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]