@ -14,7 +14,7 @@ namespace MediaBrowser.Providers.Manager
public static void MergeBaseItemData < T > (
MetadataResult < T > sourceResult ,
MetadataResult < T > targetResult ,
MetadataField s [ ] lockedFields ,
MetadataField [ ] lockedFields ,
bool replaceData ,
bool mergeMetadataSettings )
where T : BaseItem
@ -31,7 +31,7 @@ namespace MediaBrowser.Providers.Manager
throw new ArgumentNullException ( nameof ( target ) ) ;
}
if ( ! lockedFields . Contains ( MetadataField s . Name ) )
if ( ! lockedFields . Contains ( MetadataField . Name ) )
{
if ( replaceData | | string . IsNullOrEmpty ( target . Name ) )
{
@ -62,7 +62,7 @@ namespace MediaBrowser.Providers.Manager
target . EndDate = source . EndDate ;
}
if ( ! lockedFields . Contains ( MetadataField s . Genres ) )
if ( ! lockedFields . Contains ( MetadataField . Genres ) )
{
if ( replaceData | | target . Genres . Length = = 0 )
{
@ -75,7 +75,7 @@ namespace MediaBrowser.Providers.Manager
target . IndexNumber = source . IndexNumber ;
}
if ( ! lockedFields . Contains ( MetadataField s . OfficialRating ) )
if ( ! lockedFields . Contains ( MetadataField . OfficialRating ) )
{
if ( replaceData | | string . IsNullOrEmpty ( target . OfficialRating ) )
{
@ -93,7 +93,7 @@ namespace MediaBrowser.Providers.Manager
target . Tagline = source . Tagline ;
}
if ( ! lockedFields . Contains ( MetadataField s . Overview ) )
if ( ! lockedFields . Contains ( MetadataField . Overview ) )
{
if ( replaceData | | string . IsNullOrEmpty ( target . Overview ) )
{
@ -106,7 +106,7 @@ namespace MediaBrowser.Providers.Manager
target . ParentIndexNumber = source . ParentIndexNumber ;
}
if ( ! lockedFields . Contains ( MetadataField s . Cast ) )
if ( ! lockedFields . Contains ( MetadataField . Cast ) )
{
if ( replaceData | | targetResult . People = = null | | targetResult . People . Count = = 0 )
{
@ -129,7 +129,7 @@ namespace MediaBrowser.Providers.Manager
target . ProductionYear = source . ProductionYear ;
}
if ( ! lockedFields . Contains ( MetadataField s . Runtime ) )
if ( ! lockedFields . Contains ( MetadataField . Runtime ) )
{
if ( replaceData | | ! target . RunTimeTicks . HasValue )
{
@ -140,7 +140,7 @@ namespace MediaBrowser.Providers.Manager
}
}
if ( ! lockedFields . Contains ( MetadataField s . Studios ) )
if ( ! lockedFields . Contains ( MetadataField . Studios ) )
{
if ( replaceData | | target . Studios . Length = = 0 )
{
@ -148,7 +148,7 @@ namespace MediaBrowser.Providers.Manager
}
}
if ( ! lockedFields . Contains ( MetadataField s . Tags ) )
if ( ! lockedFields . Contains ( MetadataField . Tags ) )
{
if ( replaceData | | target . Tags . Length = = 0 )
{
@ -156,7 +156,7 @@ namespace MediaBrowser.Providers.Manager
}
}
if ( ! lockedFields . Contains ( MetadataField s . ProductionLocations ) )
if ( ! lockedFields . Contains ( MetadataField . ProductionLocations ) )
{
if ( replaceData | | target . ProductionLocations . Length = = 0 )
{