diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-08 11:13:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-08 11:16:14 +0200 |
commit | ae9bbed46dbc8d9870c9feb66bbada484c1c7582 (patch) | |
tree | 69a04af65274f9f39cb439384ad58b1fc1058ba0 /server.ts | |
parent | 14aed608f540b587b3ab2529d06690815214d232 (diff) | |
download | PeerTube-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.ts | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -103,6 +103,7 @@ import { YoutubeDlUpdateScheduler } from './server/lib/schedulers/youtube-dl-upd | |||
103 | import { VideosRedundancyScheduler } from './server/lib/schedulers/videos-redundancy-scheduler' | 103 | import { VideosRedundancyScheduler } from './server/lib/schedulers/videos-redundancy-scheduler' |
104 | import { isHTTPSignatureDigestValid } from './server/helpers/peertube-crypto' | 104 | import { isHTTPSignatureDigestValid } from './server/helpers/peertube-crypto' |
105 | import { PeerTubeSocket } from './server/lib/peertube-socket' | 105 | import { PeerTubeSocket } from './server/lib/peertube-socket' |
106 | import { 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) |