aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-08 11:13:49 +0200
committerChocobozzz <me@florianbigard.com>2019-04-08 11:16:14 +0200
commitae9bbed46dbc8d9870c9feb66bbada484c1c7582 (patch)
tree69a04af65274f9f39cb439384ad58b1fc1058ba0 /server.ts
parent14aed608f540b587b3ab2529d06690815214d232 (diff)
downloadPeerTube-ae9bbed46dbc8d9870c9feb66bbada484c1c7582.tar.gz
PeerTube-ae9bbed46dbc8d9870c9feb66bbada484c1c7582.tar.zst
PeerTube-ae9bbed46dbc8d9870c9feb66bbada484c1c7582.zip
Update P2P media loader peer version
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)