Don't build redundancy urls with "-1" as fps

pull/1162/merge
Chocobozzz 2018-10-01 18:40:17 +02:00
parent 4787966900
commit d05be4d944
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ function getVideoActivityPubUrl (video: VideoModel) {
}
function getVideoCacheFileActivityPubUrl (videoFile: VideoFileModel) {
const suffixFPS = videoFile.fps ? '-' + videoFile.fps : ''
const suffixFPS = videoFile.fps && videoFile.fps !== -1 ? '-' + videoFile.fps : ''
return `${CONFIG.WEBSERVER.URL}/redundancy/videos/${videoFile.Video.uuid}/${videoFile.resolution}${suffixFPS}`
}