diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -205,7 +205,8 @@ app.use('/', staticRouter) | |||
205 | app.use('/', lazyStaticRouter) | 205 | app.use('/', lazyStaticRouter) |
206 | 206 | ||
207 | // Client files, last valid routes! | 207 | // Client files, last valid routes! |
208 | if (cli.client) app.use('/', clientsRouter) | 208 | const cliOptions = cli.opts() |
209 | if (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() |