[tracker-miners] tracker-extract: Drop other NMM ontology bits from PDF extractor
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners] tracker-extract: Drop other NMM ontology bits from PDF extractor
- Date: Wed, 15 Aug 2018 21:16:20 +0000 (UTC)
commit 4f2d5ef87b5aa0f0fc8058786ef8389420ddc297
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Aug 15 23:12:29 2018 +0200
tracker-extract: Drop other NMM ontology bits from PDF extractor
Commit dd5f39ab9f fixed nfo:orientation, but the other nmm:* fields
as extracted from XMP data can cause the same problems as the PDF
document is not a nmm:Photo.
Related: tracker#21
src/tracker-extract/tracker-extract-pdf.c | 52 -------------------------------
1 file changed, 52 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-pdf.c b/src/tracker-extract/tracker-extract-pdf.c
index d9dfe229a..a91fe63e9 100644
--- a/src/tracker-extract/tracker-extract-pdf.c
+++ b/src/tracker-extract/tracker-extract-pdf.c
@@ -464,36 +464,6 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
tracker_resource_set_string (metadata, "nie:copyright", xd->rights);
}
- if (xd->white_balance) {
- TrackerResource *white_balance;
-
- white_balance = tracker_resource_new (xd->white_balance);
- tracker_resource_set_relation (metadata, "nmm:whiteBalance", white_balance);
- g_object_unref (white_balance);
- }
-
- if (xd->fnumber) {
- gdouble value;
-
- value = g_strtod (xd->fnumber, NULL);
- tracker_resource_set_double (metadata, "nmm:fnumber", value);
- }
-
- if (xd->flash) {
- TrackerResource *flash;
-
- flash = tracker_resource_new (xd->flash);
- tracker_resource_set_relation (metadata, "nmm:flash", flash);
- g_object_unref (flash);
- }
-
- if (xd->focal_length) {
- gdouble value;
-
- value = g_strtod (xd->focal_length, NULL);
- tracker_resource_set_double (metadata, "nmm:focalLength", value);
- }
-
/* Question: Shouldn't xd->Artist be merged with md.author instead? */
if (xd->artist || xd->contributor) {
@@ -509,32 +479,10 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
g_object_unref (artist);
}
- if (xd->exposure_time) {
- gdouble value;
-
- value = g_strtod (xd->exposure_time, NULL);
- tracker_resource_set_double (metadata, "nmm:exposureTime", value);
- }
-
- if (xd->iso_speed_ratings) {
- gdouble value;
-
- value = g_strtod (xd->iso_speed_ratings, NULL);
- tracker_resource_set_double (metadata, "nmm:isoSpeed", value);
- }
-
if (xd->description) {
tracker_resource_set_string (metadata, "nie:description", xd->description);
}
- if (xd->metering_mode) {
- TrackerResource *metering;
-
- metering = tracker_resource_new (xd->metering_mode);
- tracker_resource_set_relation (metadata, "nmm:meteringMode", metering);
- g_object_unref (metering);
- }
-
if (xd->address || xd->state || xd->country || xd->city ||
xd->gps_altitude || xd->gps_latitude || xd-> gps_longitude) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]