mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-01 21:09:17 -06:00
Fix video format utils
This commit is contained in:
parent
84c6eadc33
commit
cd162f25d2
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user