diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create-transcoding-job.ts | 2 | ||||
-rwxr-xr-x | scripts/update-host.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts index 7ee0050e3..78eb455aa 100755 --- a/scripts/create-transcoding-job.ts +++ b/scripts/create-transcoding-job.ts | |||
@@ -43,7 +43,7 @@ async function run () { | |||
43 | if (program.generateHls) { | 43 | if (program.generateHls) { |
44 | const resolutionsEnabled = program.resolution | 44 | const resolutionsEnabled = program.resolution |
45 | ? [ program.resolution ] | 45 | ? [ program.resolution ] |
46 | : computeResolutionsToTranscode(videoFileResolution).concat([ videoFileResolution ]) | 46 | : computeResolutionsToTranscode(videoFileResolution, 'vod').concat([ videoFileResolution ]) |
47 | 47 | ||
48 | for (const resolution of resolutionsEnabled) { | 48 | for (const resolution of resolutionsEnabled) { |
49 | dataInput.push({ | 49 | dataInput.push({ |
diff --git a/scripts/update-host.ts b/scripts/update-host.ts index 2efe326a2..d2fb19c76 100755 --- a/scripts/update-host.ts +++ b/scripts/update-host.ts | |||
@@ -130,7 +130,7 @@ async function run () { | |||
130 | 130 | ||
131 | for (const playlist of video.VideoStreamingPlaylists) { | 131 | for (const playlist of video.VideoStreamingPlaylists) { |
132 | playlist.playlistUrl = WEBSERVER.URL + VideoStreamingPlaylistModel.getHlsMasterPlaylistStaticPath(video.uuid) | 132 | playlist.playlistUrl = WEBSERVER.URL + VideoStreamingPlaylistModel.getHlsMasterPlaylistStaticPath(video.uuid) |
133 | playlist.segmentsSha256Url = WEBSERVER.URL + VideoStreamingPlaylistModel.getHlsSha256SegmentsStaticPath(video.uuid) | 133 | playlist.segmentsSha256Url = WEBSERVER.URL + VideoStreamingPlaylistModel.getHlsSha256SegmentsStaticPath(video.uuid, video.isLive) |
134 | 134 | ||
135 | await playlist.save() | 135 | await playlist.save() |
136 | } | 136 | } |