Don't display remove file icon in some cases

This commit is contained in:
Chocobozzz
2022-09-13 12:00:13 +02:00
parent 9f244885f0
commit 367a9dc699
9 changed files with 37 additions and 23 deletions

View File

@@ -241,16 +241,6 @@ async function uploadRandomVideoOnServers (
return res
}
function getAllFiles (video: VideoDetails) {
const files = video.files
if (video.streamingPlaylists[0]) {
return files.concat(video.streamingPlaylists[0].files)
}
return files
}
// ---------------------------------------------------------------------------
export {
@@ -258,6 +248,5 @@ export {
checkUploadVideoParam,
uploadRandomVideoOnServers,
checkVideoFilesWereRemoved,
saveVideoInServers,
getAllFiles
saveVideoInServers
}