From 0697991a1060fb69d07eb3c4fa7f027da9940f2e Mon Sep 17 00:00:00 2001 From: simulot Date: Sun, 22 Dec 2024 20:32:02 +0100 Subject: [PATCH] Add .photostructure/ folder from the banned file list Fixes #568 --- adapters/folder/options.go | 1 + adapters/googlePhotos/options.go | 1 + readme.md | 1 + 3 files changed, 3 insertions(+) diff --git a/adapters/folder/options.go b/adapters/folder/options.go index bb4b5a3..f8a9b63 100644 --- a/adapters/folder/options.go +++ b/adapters/folder/options.go @@ -95,6 +95,7 @@ func (o *ImportFolderOptions) AddFromFolderFlags(cmd *cobra.Command, parent *cob `thumbnails/`, // Android photo `.DS_Store/`, // Mac OS custom attributes `._*.*`, // MacOS resource files + `.photostructure/`, // PhotoStructure ) cmd.Flags().StringVar(&o.ImportIntoAlbum, "into-album", "", "Specify an album to import all files into") cmd.Flags().Var(&o.UsePathAsAlbumName, "folder-as-album", "Import all files in albums defined by the folder structure. Can be set to 'FOLDER' to use the folder name as the album name, or 'PATH' to use the full path as the album name") diff --git a/adapters/googlePhotos/options.go b/adapters/googlePhotos/options.go index 16ebaa8..e63f9ed 100644 --- a/adapters/googlePhotos/options.go +++ b/adapters/googlePhotos/options.go @@ -90,6 +90,7 @@ func (o *ImportFlags) AddFromGooglePhotosFlags(cmd *cobra.Command, parent *cobra `thumbnails/`, // Android photo `.DS_Store/`, // Mac OS custom attributes `._*.*`, // MacOS resource files + `.photostructure/`, // PhotoStructure ) cmd.Flags().BoolVar(&o.CreateAlbums, "sync-albums", true, "Automatically create albums in Immich that match the albums in your Google Photos takeout") cmd.Flags().StringVar(&o.ImportFromAlbum, "from-album-name", "", "Only import photos from the specified Google Photos album") diff --git a/readme.md b/readme.md index 6f1237e..d072fdc 100644 --- a/readme.md +++ b/readme.md @@ -522,6 +522,7 @@ The following files are excluded automatically: - `thumbnails/` - `.DS_Store/` - `._*.*` +- `.photostructure/` ## Date range