Fix check old streams in metadata, download manager worker thread path

This commit is contained in:
Mark Cooper 2021-09-25 10:35:33 -05:00
parent 69cd6aa4d0
commit 03f39d71e3
4 changed files with 21 additions and 4 deletions

View file

@ -65,12 +65,13 @@ class StreamManager {
if (!dirs || !dirs.length) return true
await Promise.all(dirs.map(async (dirname) => {
if (dirname !== 'streams' && dirname !== 'books') {
if (dirname !== 'streams' && dirname !== 'books' && dirname !== 'downloads') {
var fullPath = Path.join(this.MetadataPath, dirname)
Logger.warn(`Removing OLD Orphan Stream ${dirname}`)
return fs.remove(fullPath)
}
}))
return true
} catch (error) {
Logger.debug('No old orphan streams', error)