diff --git a/src/Backends/Jellyfin/Action/Backup.php b/src/Backends/Jellyfin/Action/Backup.php index 737011ab..164db33c 100644 --- a/src/Backends/Jellyfin/Action/Backup.php +++ b/src/Backends/Jellyfin/Action/Backup.php @@ -38,6 +38,7 @@ class Backup extends Import try { $logContext['item'] = [ + 'backend' => $context->backendName, 'id' => ag($item, 'Id'), 'title' => match ($type) { JFC::TYPE_MOVIE => sprintf( @@ -98,7 +99,7 @@ class Backup extends Import $guids = []; - foreach (Guid::fromArray($entity->getGuids(), false)->getAll() as $db => $val) { + foreach (Guid::fromArray($entity->getGuids(), false, $logContext)->getAll() as $db => $val) { $guids[after($db, 'guid_')] = $val; } @@ -107,7 +108,7 @@ class Backup extends Import if ($entity->isEpisode()) { $parents = []; - foreach (Guid::fromArray($entity->getParentGuids(), false)->getAll() as $db => $val) { + foreach (Guid::fromArray($entity->getParentGuids(), false, $logContext)->getAll() as $db => $val) { $parents[after($db, 'guid_')] = $val; } $arr[iState::COLUMN_PARENT] = $parents; diff --git a/src/Backends/Plex/Action/Backup.php b/src/Backends/Plex/Action/Backup.php index 97f99bba..7a679210 100644 --- a/src/Backends/Plex/Action/Backup.php +++ b/src/Backends/Plex/Action/Backup.php @@ -43,6 +43,7 @@ final class Backup extends Import } $logContext['item'] = [ + 'backend' => $context->backendName, 'id' => ag($item, 'ratingKey'), 'title' => match ($type) { PlexClient::TYPE_MOVIE => sprintf( @@ -101,7 +102,7 @@ final class Backup extends Import $guids = []; - foreach (Guid::fromArray($entity->getGuids(), false)->getAll() as $db => $val) { + foreach (Guid::fromArray($entity->getGuids(), false, $logContext)->getAll() as $db => $val) { $guids[after($db, 'guid_')] = $val; } @@ -110,7 +111,7 @@ final class Backup extends Import if ($entity->isEpisode()) { $parents = []; - foreach (Guid::fromArray($entity->getParentGuids(), false)->getAll() as $db => $val) { + foreach (Guid::fromArray($entity->getParentGuids(), false, $logContext)->getAll() as $db => $val) { $parents[after($db, 'guid_')] = $val; } $arr[iState::COLUMN_PARENT] = $parents;