Skip to content

Commit

Permalink
video: Fix name of video files with unknown extensions
Browse files Browse the repository at this point in the history
When the extension was unknown, the video file was being generated with two dots in the end (e.g.: 'video..webm'). This also created a side-effect of the system not being able to find the correspondent telemetry logs and leaving them behind when clearing the videos.
  • Loading branch information
rafaellehmkuhl committed Dec 10, 2024
1 parent 8a4a824 commit cbfc9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ export const useVideoStore = defineStore('video', () => {
updateLastProcessingUpdate(hash)

debouncedUpdateFileProgress(info.fileName, 75, `Saving video file.`)
await videoStoringDB.setItem(`${info.fileName}.${extensionContainer || '.webm'}`, durFixedBlob ?? mergedBlob)
await videoStoringDB.setItem(`${info.fileName}.${extensionContainer || 'webm'}`, durFixedBlob ?? mergedBlob)

updateLastProcessingUpdate(hash)

Expand Down

0 comments on commit cbfc9c5

Please sign in to comment.