Fix exporting of live photos with cli (#3297)

Fix issue #1998
This commit is contained in:
Trekky12
2024-09-17 05:24:39 +02:00
committed by GitHub
parent f4995cba56
commit e6d4e835db

View File

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