Fixed bug that caused downloads to fail when archiving was enabled

Removed error message on URL input on the home page

Fixed bug that prevented file deletion in multi user mode with archiving enabled
This commit is contained in:
Isaac Grynsztein
2020-05-30 16:20:03 -04:00
parent 80f214fdde
commit b3c8f9e57a
3 changed files with 17 additions and 14 deletions

View File

@@ -430,8 +430,8 @@ exports.deleteUserFile = function(user_uid, file_uid, type, blacklistMode = fals
fs.appendFileSync(blacklistPath, line);
}
} else {
logger.info('Could not find archive file for audio files. Creating...');
fs.closeSync(fs.openSync(archive_path, 'w'));
logger.info(`Could not find archive file for ${type} files. Creating...`);
fs.ensureFileSync(archive_path);
}
}
}