-
-
Notifications
You must be signed in to change notification settings - Fork 186
Description
First of all, thanks a lot for the great software!
Imagine I have the following folder structure, where essentially a file is copied in multiple subfolders (maybe I have a photo in its own album/folder and then in a BestOfYear album).
- folder1
- A
- x.jpg
- B
- x.jpg
- folder2
- x.jpg
If I do immich upload --session-tag --folder-as-album FOLDER --folder-as-tags folder1, I would expect to end up with a single photo (x.jpg) be part of two albums (A and B) and tagged with folder/A, folder/B and the session tag.
Instead, the second time the photo is processed (as part of the same command), it is considered a duplicate and so it ends up being in only one album with only one folder tag and the session tag.
If I then (i.e. x.jpg is now already on the server) do immich upload --session-tag --folder-as-album FOLDER --folder-as-tags folder2, the photo is now added to album folder2 (so it is now in a total of 2 albums) but does not gain any new tags (neither the folder2 tag nor the second session tag).
Is this the intended behavior? I honestly find it confusing and counter-intuitive (although it seems that, at least for session tags, this is intended #810 ). I personally would want to end up (after both commands) in a situation where my photo on the server is part of 3 albums and has 5 tags (3 folder tags and 2 session tags). Or more generally have some command line options to control this behavior (e.g. --on-duplicate {MERGE|OVERWRITE|IGNORE}{TAGS|ALBUMS|BOTH}).
I have some (simple but not fully tested) change in my local fork that does the former (i.e. all albums and tags are uploaded, no config option), but I would be open to making a PR (either for the simple change or the configurable version) if people would find this useful.