mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-04 01:51:29 +03:00
Merge branch 'master' of https://github.com/Tzahi12345/YoutubeDL-Material into categories
This commit is contained in:
@@ -182,9 +182,9 @@ async function importUnregisteredFiles() {
|
||||
}
|
||||
|
||||
// run through check list and check each file to see if it's missing from the db
|
||||
dirs_to_check.forEach(dir_to_check => {
|
||||
for (const dir_to_check of dirs_to_check) {
|
||||
// recursively get all files in dir's path
|
||||
const files = utils.getDownloadedFilesByType(dir_to_check.basePath, dir_to_check.type);
|
||||
const files = await utils.getDownloadedFilesByType(dir_to_check.basePath, dir_to_check.type);
|
||||
|
||||
files.forEach(file => {
|
||||
// check if file exists in db, if not add it
|
||||
@@ -195,7 +195,7 @@ async function importUnregisteredFiles() {
|
||||
logger.verbose(`Added discovered file to the database: ${file.id}`);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user