mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Fix tests
This commit is contained in:
parent
cf60f7af03
commit
4434e78c56
3 changed files with 17 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue