takeout: keep TrackCreateDate
Signed-off-by: Varun Patil <varunpatil@ucla.edu>pull/563/head
parent
642816f4b9
commit
7faa4afb1e
|
@ -245,6 +245,12 @@ class MigrateGoogleTakeout extends Command
|
||||||
$txf = array_filter($txf, function ($value, $key) use ($exif) {
|
$txf = array_filter($txf, function ($value, $key) use ($exif) {
|
||||||
return !isset($exif[$key]);
|
return !isset($exif[$key]);
|
||||||
}, ARRAY_FILTER_USE_BOTH);
|
}, ARRAY_FILTER_USE_BOTH);
|
||||||
|
|
||||||
|
// Videos may not have DateTimeOriginal but have TrackCreateDate,
|
||||||
|
// in that case do not override it
|
||||||
|
if (isset($exif['TrackCreateDate'])) {
|
||||||
|
unset($txf['DateTimeOriginal']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Special case: if $txf has both GPSLatitude and GPSLongitude,
|
// Special case: if $txf has both GPSLatitude and GPSLongitude,
|
||||||
|
|
Loading…
Reference in New Issue