From d05be4d944e73151cc6cf916c336f63e47feca20 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 1 Oct 2018 18:40:17 +0200 Subject: [PATCH] Don't build redundancy urls with "-1" as fps --- server/lib/activitypub/url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}` }