projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4787966
)
Don't build redundancy urls with "-1" as fps
author
Chocobozzz
<me@florianbigard.com>
Mon, 1 Oct 2018 16:40:17 +0000
(18:40 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Mon, 1 Oct 2018 16:40:17 +0000
(18:40 +0200)
server/lib/activitypub/url.ts
patch
|
blob
|
history
diff --git
a/server/lib/activitypub/url.ts
b/server/lib/activitypub/url.ts
index 2e7c56955523241ed6856100e16e504225efceff..e792be698ed5607b0551edbc3fb848d0b7092b4b 100644
(file)
--- 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}`
}