Compare commits

...

4 Commits

Author SHA1 Message Date
DebaucheryLibrarian ff862dbff9 Removed debug log. 2021-02-23 04:10:03 +01:00
DebaucheryLibrarian fae288633c Catching actor association errors so it does not inhibit media association. 2021-02-23 04:09:33 +01:00
DebaucheryLibrarian f44cb8bf4c Merge branch 'master' into experimental 2021-02-23 03:36:56 +01:00
DebaucheryLibrarian c32a5d2930 Added debug log for actor entries. 2021-02-23 03:36:48 +01:00
1 changed files with 45 additions and 39 deletions

View File

@ -889,6 +889,7 @@ async function getOrCreateActors(baseActors, batchId) {
}
async function associateActors(releases, batchId) {
try {
const baseActorsByReleaseId = releases.reduce((acc, release) => {
if (release.actors) {
acc[release.id] = toBaseActors(release.actors, release);
@ -938,6 +939,11 @@ async function associateActors(releases, batchId) {
logger.verbose(`Associated ${releaseActorAssociations.length} actors to ${releases.length} scenes`);
return actors;
} catch (error) {
logger.error(`Failed to associate actors: ${error.message}`);
return [];
}
}
async function fetchActor(actorId) {