From 7bfb441a0040c22b6990fad7fc91250b5e11611b Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Mon, 2 May 2022 01:44:43 -0400 Subject: [PATCH] Fixed bug where files couldn't be deleted with archive mode enabled fixes #487 --- backend/db.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/db.js b/backend/db.js index 7cab07d..64d2a64 100644 --- a/backend/db.js +++ b/backend/db.js @@ -497,6 +497,7 @@ exports.deleteFile = async (uid, uuid = null, blacklistMode = false) => { let useYoutubeDLArchive = config_api.getConfigItem('ytdl_use_youtubedl_archive'); if (useYoutubeDLArchive) { + const usersFileFolder = config_api.getConfigItem('ytdl_users_base_path'); const archive_path = uuid ? path.join(usersFileFolder, uuid, 'archives', `archive_${type}.txt`) : path.join('appdata', 'archives', `archive_${type}.txt`); // get ID from JSON