1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Fix tests

This commit is contained in:
Chocobozzz 2024-02-28 10:00:01 +01:00
parent cf60f7af03
commit 4434e78c56
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 17 additions and 4 deletions

View file

@ -27,7 +27,10 @@ async function buildNewFile (options: {
})
if (await isAudioFile(path, probe)) {
videoFile.fps = 0
videoFile.resolution = VideoResolution.H_NOVIDEO
videoFile.width = 0
videoFile.height = 0
} else {
const dimensions = await getVideoStreamDimensionsInfo(path, probe)
videoFile.fps = await getVideoStreamFPS(path, probe)