Fixed expect type associated to wrong object in Bang scraper.

This commit is contained in:
DebaucheryLibrarian
2026-03-27 03:22:51 +01:00
parent 69d410666d
commit f5da798cd2
2 changed files with 10 additions and 2 deletions

View File

@@ -558,6 +558,10 @@ async function storeImageFile(media, hashDir, hashSubDir, filename, filedir, fil
},
};
} catch (error) {
if (argv.debug) {
console.trace(error);
}
logger.error(`Failed to store ${media.id} from ${media.src} at ${filepath}: ${error.message}`);
await fsPromises.unlink(media.file.path);
@@ -1000,6 +1004,10 @@ async function associateReleaseMedia(releases, type = 'release') {
logger.error(util.inspect(error.entries.slice(0, 2), null, null, { color: true }), `${Math.min(error.entries.length, 2)} of ${error.length}`);
}
if (argv.debug) {
console.trace(error);
}
logger.error(`Failed to store ${type} ${role}: ${error.message} (${error.detail || 'no detail'})`);
}
}, Promise.resolve());