mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-10-26 14:08:12 +03:00
Merge branch 'release/3.3.0' into develop
This commit is contained in:
commit
9e87894973
@ -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