From: Chocobozzz Date: Mon, 1 Oct 2018 16:40:17 +0000 (+0200) Subject: Don't build redundancy urls with "-1" as fps X-Git-Tag: v1.0.0-rc.1~18 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=d05be4d944e73151cc6cf916c336f63e47feca20;p=github%2FChocobozzz%2FPeerTube.git Don't build redundancy urls with "-1" as fps --- diff --git a/server/lib/activitypub/url.ts b/server/lib/activitypub/url.ts index 2e7c56955..e792be698 100644 --- a/server/lib/activitypub/url.ts +++ b/server/lib/activitypub/url.ts @@ -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}` }