From 2f0a7c5223c07dc6cbf6c59efcf8fee5a890ea2b Mon Sep 17 00:00:00 2001
From: Salvoxia <Salvoxia@blindfish.info>
Date: Fri, 27 Sep 2024 20:31:25 +0200
Subject: [PATCH] Docker Added support for archiving assets Added support for
 finding archived assets

---
 docker/immich_auto_album.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/docker/immich_auto_album.sh b/docker/immich_auto_album.sh
index a37e6bb..b78fdaf 100755
--- a/docker/immich_auto_album.sh
+++ b/docker/immich_auto_album.sh
@@ -114,6 +114,10 @@ if [ ! -z "$FIND_ASSETS_IN_ALBUMS" ]; then
     args="--find-assets-in-albums $args"
 fi
 
+if [ ! -z "$FIND_ARCHIVED_ASSETS" ]; then
+    args="--find-archived-assets $args"
+fi
+
 if [ ! -z "$path_filter_list" ]; then
     args="$path_filter_list $args"
 fi
@@ -122,6 +126,9 @@ if [ ! -z "$SET_ALBUM_THUMBNAIL" ]; then
     args="--set-album-thumbnail \"$SET_ALBUM_THUMBNAIL\" $args"
 fi
 
+if [ ! -z "$ARCHIVE" ]; then
+    args="--archive $args"
+fi
+
 BASEDIR=$(dirname "$0")
-echo $args
 echo $args | xargs python3 -u $BASEDIR/immich_auto_album.py
\ No newline at end of file