Skip to content

Commit

Permalink
Merge branch 'naoya-in-master' + format files
Browse files Browse the repository at this point in the history
  • Loading branch information
garzj committed Jul 6, 2024
2 parents 6a4a556 + afe412b commit 215c04e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/config/langs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ export const editedSuffices = [
'düzenlendi',
'измененный',
'ha editado',
'編集済み',
];
export const photosDirs = [
'Google Photos',
'Google Fotos',
'Google Fotoğraflar',
'Google Фото',
'Google フォト',
];
export const untitledDirs = [
'Untitled',
'Unbenannt',
'Adsız',
'Без названия',
'Sin título',
'無題',
];
5 changes: 4 additions & 1 deletion src/meta/apply-meta-file.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 215c04e

Please sign in to comment.