Fix:Remove invalid playback sessions on server start #868

This commit is contained in:
advplyr 2022-07-29 17:13:46 -05:00
parent 3b4ac3a230
commit 8416f2d6be
3 changed files with 31 additions and 3 deletions

View file

@ -143,6 +143,7 @@ class Server {
await this.checkUserMediaProgress() // Remove invalid user item progress
await this.purgeMetadata() // Remove metadata folders without library item
await this.playbackSessionManager.removeInvalidSessions()
await this.cacheManager.ensureCachePaths()
await this.abMergeManager.ensureDownloadDirPath()
@ -176,7 +177,6 @@ class Server {
const distPath = Path.join(global.appRoot, '/client/dist')
app.use(express.static(distPath))
// Metadata folder static path
app.use('/metadata', this.authMiddleware.bind(this), express.static(global.MetadataPath))