From 9e7a6a0bd128e0fb00f5774df2732562964323a4 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 27 Mar 2023 22:16:34 -0700 Subject: [PATCH] edit-meta: fix location ref Signed-off-by: Varun Patil --- lib/Command/MigrateGoogleTakeout.php | 4 +++- src/components/modal/EditLocation.vue | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Command/MigrateGoogleTakeout.php b/lib/Command/MigrateGoogleTakeout.php index 159ef86a..88397e54 100644 --- a/lib/Command/MigrateGoogleTakeout.php +++ b/lib/Command/MigrateGoogleTakeout.php @@ -254,8 +254,10 @@ class MigrateGoogleTakeout extends Command } // Special case: if $txf has both GPSLatitude and GPSLongitude, - // also specify GPSCoordinates, since videos need this + // also specify GPSCoordinates, since videos need this and refs if (isset($txf['GPSLatitude'], $txf['GPSLongitude'])) { + $txf['GPSLatitudeRef'] = $txf['GPSLatitude']; + $txf['GPSLongitudeRef'] = $txf['GPSLongitude']; $txf['GPSCoordinates'] = $txf['GPSLatitude'].', '.$txf['GPSLongitude']; } diff --git a/src/components/modal/EditLocation.vue b/src/components/modal/EditLocation.vue index a136e2da..7630d518 100644 --- a/src/components/modal/EditLocation.vue +++ b/src/components/modal/EditLocation.vue @@ -210,6 +210,8 @@ export default defineComponent({ return { GPSLatitude: this.lat, GPSLongitude: this.lon, + GPSLatitudeRef: this.lat, + GPSLongitudeRef: this.lon, GPSCoordinates: `${this.lat.toFixed(6)}, ${this.lon.toFixed(6)}`, }; },