edit-meta: fix location ref

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/563/head
Varun Patil 2023-03-27 22:16:34 -07:00
parent 120757f335
commit 9e7a6a0bd1
2 changed files with 5 additions and 1 deletions

View File

@ -254,8 +254,10 @@ class MigrateGoogleTakeout extends Command
} }
// Special case: if $txf has both GPSLatitude and GPSLongitude, // 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'])) { if (isset($txf['GPSLatitude'], $txf['GPSLongitude'])) {
$txf['GPSLatitudeRef'] = $txf['GPSLatitude'];
$txf['GPSLongitudeRef'] = $txf['GPSLongitude'];
$txf['GPSCoordinates'] = $txf['GPSLatitude'].', '.$txf['GPSLongitude']; $txf['GPSCoordinates'] = $txf['GPSLatitude'].', '.$txf['GPSLongitude'];
} }

View File

@ -210,6 +210,8 @@ export default defineComponent({
return { return {
GPSLatitude: this.lat, GPSLatitude: this.lat,
GPSLongitude: this.lon, GPSLongitude: this.lon,
GPSLatitudeRef: this.lat,
GPSLongitudeRef: this.lon,
GPSCoordinates: `${this.lat.toFixed(6)}, ${this.lon.toFixed(6)}`, GPSCoordinates: `${this.lat.toFixed(6)}, ${this.lon.toFixed(6)}`,
}; };
}, },