mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-16 05:51:57 +01:00
fix: add back speed to normal downloads
This commit is contained in:
@@ -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),
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user