mirror of https://github.com/Chocobozzz/PeerTube
Don't build redundancy urls with "-1" as fps
parent
4787966900
commit
d05be4d944
|
@ -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}`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue