aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/server.ts b/server.ts
index e3cddfd33..66dcb3c40 100644
--- a/server.ts
+++ b/server.ts
@@ -205,7 +205,8 @@ app.use('/', staticRouter)
205app.use('/', lazyStaticRouter) 205app.use('/', lazyStaticRouter)
206 206
207// Client files, last valid routes! 207// Client files, last valid routes!
208if (cli.client) app.use('/', clientsRouter) 208const cliOptions = cli.opts()
209if (cliOptions.client) app.use('/', clientsRouter)
209 210
210// ----------- Errors ----------- 211// ----------- Errors -----------
211 212
@@ -277,7 +278,7 @@ async function startApplication () {
277 updateStreamingPlaylistsInfohashesIfNeeded() 278 updateStreamingPlaylistsInfohashesIfNeeded()
278 .catch(err => logger.error('Cannot update streaming playlist infohashes.', { err })) 279 .catch(err => logger.error('Cannot update streaming playlist infohashes.', { err }))
279 280
280 if (cli.plugins) await PluginManager.Instance.registerPluginsAndThemes() 281 if (cliOptions.plugins) await PluginManager.Instance.registerPluginsAndThemes()
281 282
282 LiveManager.Instance.init() 283 LiveManager.Instance.init()
283 if (CONFIG.LIVE.ENABLED) LiveManager.Instance.run() 284 if (CONFIG.LIVE.ENABLED) LiveManager.Instance.run()