diff --git a/src/config/langs.ts b/src/config/langs.ts index 7d80611..abf4c74 100644 --- a/src/config/langs.ts +++ b/src/config/langs.ts @@ -5,12 +5,14 @@ export const editedSuffices = [ 'düzenlendi', 'измененный', 'ha editado', + '編集済み', ]; export const photosDirs = [ 'Google Photos', 'Google Fotos', 'Google Fotoğraflar', 'Google Фото', + 'Google フォト', ]; export const untitledDirs = [ 'Untitled', @@ -18,4 +20,5 @@ export const untitledDirs = [ 'Adsız', 'Без названия', 'Sin título', + '無題', ]; diff --git a/src/meta/apply-meta-file.ts b/src/meta/apply-meta-file.ts index d7169ac..07f7bf2 100644 --- a/src/meta/apply-meta-file.ts +++ b/src/meta/apply-meta-file.ts @@ -1,5 +1,5 @@ import { WriteTags } from 'exiftool-vendored'; -import { readFile } from 'fs/promises'; +import { readFile, utimes } from 'fs/promises'; import { MigrationContext } from '../dir/migrate-flat'; import { MediaFile } from '../media/MediaFile'; import { exhaustiveCheck } from '../ts'; @@ -81,6 +81,9 @@ export async function applyMetaFile( '-api', 'largefilesupport=1', ]); + + // Set file modification times to the photo taken timestamp + await utimes(mediaFile.path, timeTaken, timeTaken); } catch (e) { if (e instanceof Error) { const wrongExtMatch = e.message.match(