From e6d4e835dbaaebc272d5059db07c5a3d1b306fad Mon Sep 17 00:00:00 2001 From: Trekky12 Date: Tue, 17 Sep 2024 05:24:39 +0200 Subject: [PATCH] Fix exporting of live photos with cli (#3297) Fix issue #1998 --- cli/pkg/remote_to_disk_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/pkg/remote_to_disk_file.go b/cli/pkg/remote_to_disk_file.go index f4abf3df50..31f71e360e 100644 --- a/cli/pkg/remote_to_disk_file.go +++ b/cli/pkg/remote_to_disk_file.go @@ -169,7 +169,7 @@ func (c *ClICtrl) downloadEntry(ctx context.Context, } fileDiskMetadata.AddFileName(imageFileName) } - if videoPath == "" { + if videoPath != "" { videoExtn := filepath.Ext(videoPath) videoFileName := diskInfo.GenerateUniqueFileName(baseFileName, videoExtn) videoFilePath := filepath.Join(diskInfo.ExportRoot, diskInfo.AlbumMeta.FolderName, videoFileName)