Don't build redundancy urls with "-1" as fps
This commit is contained in:
parent
4787966900
commit
d05be4d944
|
@ -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}`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue