mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-26 17:40:30 +01:00
update components
This commit is contained in:
@@ -302,13 +302,6 @@ namespace MediaBrowser.Providers.Manager
|
||||
updateType |= ItemUpdateType.MetadataImport;
|
||||
}
|
||||
|
||||
var inheritedTags = item.GetInheritedTags();
|
||||
if (!inheritedTags.SequenceEqual(item.InheritedTags, StringComparer.Ordinal))
|
||||
{
|
||||
item.InheritedTags = inheritedTags;
|
||||
updateType |= ItemUpdateType.MetadataImport;
|
||||
}
|
||||
|
||||
return updateType;
|
||||
}
|
||||
|
||||
|
||||
@@ -204,12 +204,17 @@ namespace MediaBrowser.Providers.Manager
|
||||
|
||||
//if (!lockedFields.Contains(MetadataFields.DisplayMediaType))
|
||||
{
|
||||
if (replaceData || string.IsNullOrEmpty(target.DisplayMediaType))
|
||||
var targetVideo = target as Video;
|
||||
var sourceVideo = source as Video;
|
||||
if (sourceVideo != null && targetVideo != null)
|
||||
{
|
||||
// Safeguard against incoming data having an emtpy name
|
||||
if (!string.IsNullOrWhiteSpace(source.DisplayMediaType))
|
||||
if (replaceData || string.IsNullOrEmpty(targetVideo.DisplayMediaType))
|
||||
{
|
||||
target.DisplayMediaType = source.DisplayMediaType;
|
||||
// Safeguard against incoming data having an emtpy name
|
||||
if (!string.IsNullOrWhiteSpace(sourceVideo.DisplayMediaType))
|
||||
{
|
||||
targetVideo.DisplayMediaType = sourceVideo.DisplayMediaType;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user