]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't build redundancy urls with "-1" as fps
authorChocobozzz <me@florianbigard.com>
Mon, 1 Oct 2018 16:40:17 +0000 (18:40 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 1 Oct 2018 16:40:17 +0000 (18:40 +0200)
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}`
 }