diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-01 18:40:17 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-10-01 18:40:17 +0200 |
commit | d05be4d944e73151cc6cf916c336f63e47feca20 (patch) | |
tree | 359719709d2daeec2a0bac2be8493b642146da8a | |
parent | 478796690075a8868bf39a33f3ead80cf0040f42 (diff) | |
download | PeerTube-d05be4d944e73151cc6cf916c336f63e47feca20.tar.gz PeerTube-d05be4d944e73151cc6cf916c336f63e47feca20.tar.zst PeerTube-d05be4d944e73151cc6cf916c336f63e47feca20.zip |
Don't build redundancy urls with "-1" as fps
-rw-r--r-- | server/lib/activitypub/url.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
11 | } | 11 | } |
12 | 12 | ||
13 | function getVideoCacheFileActivityPubUrl (videoFile: VideoFileModel) { | 13 | function getVideoCacheFileActivityPubUrl (videoFile: VideoFileModel) { |
14 | const suffixFPS = videoFile.fps ? '-' + videoFile.fps : '' | 14 | const suffixFPS = videoFile.fps && videoFile.fps !== -1 ? '-' + videoFile.fps : '' |
15 | 15 | ||
16 | return `${CONFIG.WEBSERVER.URL}/redundancy/videos/${videoFile.Video.uuid}/${videoFile.resolution}${suffixFPS}` | 16 | return `${CONFIG.WEBSERVER.URL}/redundancy/videos/${videoFile.Video.uuid}/${videoFile.resolution}${suffixFPS}` |
17 | } | 17 | } |