Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

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

Chocobozzzd05be4d944e7
diff --git a/server/lib/activitypub/url.ts b/server/lib/activitypub/url.ts
index 2e7c569555..e792be698e 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}`
}