1
0
Fork 0

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

This commit is contained in:
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

View file

@ -11,7 +11,7 @@ function getVideoActivityPubUrl (video: VideoModel) {
} }
function getVideoCacheFileActivityPubUrl (videoFile: VideoFileModel) { 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}` return `${CONFIG.WEBSERVER.URL}/redundancy/videos/${videoFile.Video.uuid}/${videoFile.resolution}${suffixFPS}`
} }