Skip to content

Commit

Permalink
fix another download bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aza547 committed Aug 21, 2024
1 parent 894b6b3 commit db42adf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- [Issue 512](https://github.com/aza547/wow-recorder/issues/512) - Fix a bug where the manager would repeatedly retry configuration if the user got the password wrong.
- Fixed an issue where you could not download a video if the cloud upload setting was disabled.
- Fix a bug where downloading the same video twice in a row would fail.

## [5.7.2] - 2024-08-04
### Fixed
Expand Down
6 changes: 5 additions & 1 deletion src/main/VideoProcessQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,11 @@ export default class VideoProcessQueue {
),
]);

const metadata = rendererVideoToMetadata(video);
// Spread to force this to be cloned, avoiding modifying the original input,
// which is used again later. This manifested as a bug that prevented us clearing
// the entry from the inProgressDownloads when done, meaning that a repeated
// attempt to download would fail.
const metadata = rendererVideoToMetadata({ ...video });
const videoPath = path.join(storageDir, `${videoName}.mp4`);
await writeMetadataFile(videoPath, metadata);
} catch (error) {
Expand Down

0 comments on commit db42adf

Please sign in to comment.