diff options
author | Chocobozzz <me@florianbigard.com> | 2020-03-10 14:49:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-03-10 16:18:29 +0100 |
commit | 7b81edc854902a536083298472bf92bb6726edcf (patch) | |
tree | 822dae6b6d4755ac9afffe2569b74dcb45da5535 /server/models/video/video.ts | |
parent | 8319d6ae72d4da6de51bd3d4b5c68040fc8dc3b4 (diff) | |
download | PeerTube-7b81edc854902a536083298472bf92bb6726edcf.tar.gz PeerTube-7b81edc854902a536083298472bf92bb6726edcf.tar.zst PeerTube-7b81edc854902a536083298472bf92bb6726edcf.zip |
Video file metadata PR cleanup
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r-- | server/models/video/video.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 5e4b7d44c..958a49e65 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -1849,7 +1849,8 @@ export class VideoModel extends Model<VideoModel> { | |||
1849 | 1849 | ||
1850 | getVideoFileMetadataUrl (videoFile: MVideoFile, baseUrlHttp: string) { | 1850 | getVideoFileMetadataUrl (videoFile: MVideoFile, baseUrlHttp: string) { |
1851 | const path = '/api/v1/videos/' | 1851 | const path = '/api/v1/videos/' |
1852 | return videoFile.metadata | 1852 | |
1853 | return this.isOwned() | ||
1853 | ? baseUrlHttp + path + this.uuid + '/metadata/' + videoFile.id | 1854 | ? baseUrlHttp + path + this.uuid + '/metadata/' + videoFile.id |
1854 | : videoFile.metadataUrl | 1855 | : videoFile.metadataUrl |
1855 | } | 1856 | } |