simulot / immich-go

An alternative to the immich-CLI command that doesn't depend on nodejs installation. It tries its best for importing google photos takeout archives.
GNU Affero General Public License v3.0
1.18k stars 35 forks source link

Fix stack command #320

Closed matteolomba closed 1 week ago

matteolomba commented 1 week ago

Issue

I noticed that immich-go 0.17.1 doesn't find stackable photos on my instance of Immich 1.106.4 so I started debugging from the source code and found out that it was adding an extra extension to the image name (for example, image Agc20230714_115348466.dng was being found as Agc20230714_115348466.dng.dng by immich-go in the immich.Asset var thus not recognising it as stackable).

How i fixed it

I fixed it by removing the extra extension as a.OriginalFileName already contains the extension of the file. I also fixed a typo meanwhile.

PR

This PR fixes stack command and should close issues #235 and #240

If anything needs to be changed let me know