diff options
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) |