aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/Validators
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2026-04-19 10:23:34 +0200
committerShadowghost <Ghost_of_Stone@web.de>2026-04-19 10:23:34 +0200
commite71bb7e9047748a0dca48c83c16c7a104545840e (patch)
tree2c07a728044588efbaeb47c073c26659518817bc /Emby.Server.Implementations/Library/Validators
parent5b4882c10224a664359e3ce97e44e403523e8546 (diff)
parent96269ff177f6851041f15d7df365587f1f4a9ce8 (diff)
Merge remote-tracking branch 'upstream/master' into perf-rebased
Diffstat (limited to 'Emby.Server.Implementations/Library/Validators')
-rw-r--r--Emby.Server.Implementations/Library/Validators/ArtistsValidator.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/Validators/ArtistsValidator.cs b/Emby.Server.Implementations/Library/Validators/ArtistsValidator.cs
index 02998cbff7..fa7112eb90 100644
--- a/Emby.Server.Implementations/Library/Validators/ArtistsValidator.cs
+++ b/Emby.Server.Implementations/Library/Validators/ArtistsValidator.cs
@@ -73,8 +73,10 @@ public class ArtistsValidator
// Fall back to GetArtist if not found (creates new item if needed)
item ??= _libraryManager.GetArtist(name);
+ var isNew = !existingArtistIds.Contains(item.Id);
+ var neverRefreshed = item.DateLastRefreshed == default;
- if (!existingArtistIds.Contains(item.Id))
+ if (isNew || neverRefreshed)
{
await item.RefreshMetadata(cancellationToken).ConfigureAwait(false);
refreshed++;