Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix exporting of live photos with cli (#3297)

Trekky12e6d4e835dbaa
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)