Skip to content

Commit

Permalink
Apply review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowghost committed May 30, 2024
1 parent b7d6bed commit 4746c88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MediaBrowser.Providers/Manager/MetadataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ internal static void MergeBaseItemData(
{
target.Studios = source.Studios;
}
else if (source.Studios.Length >= 0)
else
{
target.Studios = target.Studios.Concat(source.Studios).Distinct().ToArray();
}
Expand All @@ -1035,7 +1035,7 @@ internal static void MergeBaseItemData(
{
target.Tags = source.Tags;
}
else if (source.Tags.Length >= 0)
else
{
target.Tags = target.Tags.Concat(source.Tags).Distinct().ToArray();
}
Expand All @@ -1047,7 +1047,7 @@ internal static void MergeBaseItemData(
{
target.ProductionLocations = source.ProductionLocations;
}
else if (source.ProductionLocations.Length >= 0)
else
{
target.Tags = target.ProductionLocations.Concat(source.ProductionLocations).Distinct().ToArray();
}
Expand Down Expand Up @@ -1077,7 +1077,7 @@ internal static void MergeBaseItemData(
{
target.RemoteTrailers = source.RemoteTrailers;
}
else if (source.CriticRating.HasValue)
else
{
target.RemoteTrailers = target.RemoteTrailers.Concat(source.RemoteTrailers).Distinct().ToArray();
}
Expand Down

0 comments on commit 4746c88

Please sign in to comment.