diff --git a/utils/finder.ts b/utils/finder.ts index 3c69774..4ced6ed 100644 --- a/utils/finder.ts +++ b/utils/finder.ts @@ -115,6 +115,8 @@ export default class finder { let gpsData = this.findGpsCoordinates(data) if (gpsData) { structureForFile.tags.push('has-gps') + + console.log('+++++++++++++++ has gps data', structureForFile.tags) } let isScreenshot = this.findScreenshot(structureForFile.fileNameOriginal) @@ -542,8 +544,11 @@ export default class finder { static findGpsCoordinates(exifData: any) { let result = null; - if (exifData && exifData.GPSDateTime) { - result = exifData.GPSDateTime + console.log('+++++++++++ findGpsCoordinates exifData', exifData) + if (exifData ) { + if( exifData.GPSDateTime || exifData.GPSLatitude || exifData.GPSLongitude){ + result = true + } } return result }