aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server.ts b/server.ts
index df56bcd82..dfaa8ad3d 100644
--- a/server.ts
+++ b/server.ts
@@ -103,6 +103,7 @@ import { YoutubeDlUpdateScheduler } from './server/lib/schedulers/youtube-dl-upd
103import { VideosRedundancyScheduler } from './server/lib/schedulers/videos-redundancy-scheduler' 103import { VideosRedundancyScheduler } from './server/lib/schedulers/videos-redundancy-scheduler'
104import { isHTTPSignatureDigestValid } from './server/helpers/peertube-crypto' 104import { isHTTPSignatureDigestValid } from './server/helpers/peertube-crypto'
105import { PeerTubeSocket } from './server/lib/peertube-socket' 105import { PeerTubeSocket } from './server/lib/peertube-socket'
106import { updateStreamingPlaylistsInfohashesIfNeeded } from './server/lib/hls'
106 107
107// ----------- Command line ----------- 108// ----------- Command line -----------
108 109
@@ -233,6 +234,9 @@ async function startApplication () {
233 234
234 PeerTubeSocket.Instance.init(server) 235 PeerTubeSocket.Instance.init(server)
235 236
237 updateStreamingPlaylistsInfohashesIfNeeded()
238 .catch(err => logger.error('Cannot update streaming playlist infohashes.', { err }))
239
236 // Make server listening 240 // Make server listening
237 server.listen(port, hostname, () => { 241 server.listen(port, hostname, () => {
238 logger.info('Server listening on %s:%d', hostname, port) 242 logger.info('Server listening on %s:%d', hostname, port)