Fix video format utils

pull/4317/head
Chocobozzz 2021-07-29 17:18:09 +02:00
parent 84c6eadc33
commit cd162f25d2
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ function videoFilesModelToFormattedJSON (
? video.getTrackerUrls()
: []
return [ ...videoFiles ]
return (videoFiles || [])
.filter(f => !f.isLive())
.sort(sortByResolutionDesc)
.map(videoFile => {
@ -240,7 +240,7 @@ function addVideoFilesInAPAcc (
) {
const trackerUrls = video.getTrackerUrls()
const sortedFiles = [ ...files ]
const sortedFiles = (files || [])
.filter(f => !f.isLive())
.sort(sortByResolutionDesc)