You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.3 KiB
43 lines
1.3 KiB
using System.Linq;
|
|
using CommonIO;
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
{
|
|
public class MetadataRefreshOptions : ImageRefreshOptions
|
|
{
|
|
/// <summary>
|
|
/// When paired with MetadataRefreshMode=FullRefresh, all existing data will be overwritten with new data from the providers.
|
|
/// </summary>
|
|
public bool ReplaceAllMetadata { get; set; }
|
|
|
|
public bool IsPostRecursiveRefresh { get; set; }
|
|
|
|
public MetadataRefreshMode MetadataRefreshMode { get; set; }
|
|
|
|
public bool ForceSave { get; set; }
|
|
|
|
public MetadataRefreshOptions(IFileSystem fileSystem)
|
|
: this(new DirectoryService(fileSystem))
|
|
{
|
|
}
|
|
|
|
public MetadataRefreshOptions(IDirectoryService directoryService)
|
|
: base(directoryService)
|
|
{
|
|
MetadataRefreshMode = MetadataRefreshMode.Default;
|
|
}
|
|
|
|
public MetadataRefreshOptions(MetadataRefreshOptions copy)
|
|
: base(copy.DirectoryService)
|
|
{
|
|
MetadataRefreshMode = copy.MetadataRefreshMode;
|
|
ForceSave = copy.ForceSave;
|
|
ReplaceAllMetadata = copy.ReplaceAllMetadata;
|
|
|
|
ImageRefreshMode = copy.ImageRefreshMode;
|
|
ReplaceAllImages = copy.ReplaceAllImages;
|
|
ReplaceImages = copy.ReplaceImages.ToList();
|
|
}
|
|
}
|
|
}
|