fix: add back speed to normal downloads

This commit is contained in:
Fredrik Burmester
2024-09-29 12:03:37 +02:00
parent b6c6bac06a
commit 31dbd84bec
3 changed files with 12 additions and 2 deletions

View File

@@ -65,6 +65,7 @@ export const useRemuxHlsToMp4 = (item: BaseItemDto) => {
const fps = item.MediaStreams?.[0]?.RealFrameRate || 25;
const totalFrames = videoLength * fps;
const processedFrames = statistics.getVideoFrameNumber();
const speed = statistics.getSpeed();
const percentage =
totalFrames > 0
@@ -74,6 +75,7 @@ export const useRemuxHlsToMp4 = (item: BaseItemDto) => {
if (!item.Id) throw new Error("Item is undefined");
updateProcess(item.Id, {
progress: percentage,
speed: Math.max(speed, 0),
});
});