]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/url.ts
change video type
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / url.ts
index 2e7c56955523241ed6856100e16e504225efceff..e792be698ed5607b0551edbc3fb848d0b7092b4b 100644 (file)
@@ -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}`
 }