2015-03-13 12:37:19 -07:00
|
|
|
|
using System.Linq;
|
2014-01-28 11:37:01 -07:00
|
|
|
|
|
|
|
|
|
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; }
|
|
|
|
|
|
2015-01-28 14:29:02 -07:00
|
|
|
|
public bool IsPostRecursiveRefresh { get; set; }
|
2015-03-10 19:07:07 -07:00
|
|
|
|
|
2014-01-28 11:37:01 -07:00
|
|
|
|
public MetadataRefreshMode MetadataRefreshMode { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool ForceSave { get; set; }
|
2014-07-03 19:22:57 -07:00
|
|
|
|
|
|
|
|
|
public MetadataRefreshOptions()
|
2014-10-25 11:32:58 -07:00
|
|
|
|
: this(new DirectoryService())
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public MetadataRefreshOptions(IDirectoryService directoryService)
|
|
|
|
|
: base(directoryService)
|
2014-07-03 19:22:57 -07:00
|
|
|
|
{
|
|
|
|
|
MetadataRefreshMode = MetadataRefreshMode.Default;
|
|
|
|
|
}
|
2014-08-25 19:30:52 -07:00
|
|
|
|
|
2015-03-10 19:07:07 -07:00
|
|
|
|
public MetadataRefreshOptions(MetadataRefreshOptions copy)
|
2014-10-25 11:32:58 -07:00
|
|
|
|
: base(copy.DirectoryService)
|
2014-08-25 19:30:52 -07:00
|
|
|
|
{
|
|
|
|
|
MetadataRefreshMode = copy.MetadataRefreshMode;
|
|
|
|
|
ForceSave = copy.ForceSave;
|
|
|
|
|
ReplaceAllMetadata = copy.ReplaceAllMetadata;
|
|
|
|
|
|
|
|
|
|
ImageRefreshMode = copy.ImageRefreshMode;
|
|
|
|
|
ReplaceAllImages = copy.ReplaceAllImages;
|
|
|
|
|
ReplaceImages = copy.ReplaceImages.ToList();
|
|
|
|
|
}
|
2014-01-28 11:37:01 -07:00
|
|
|
|
}
|
|
|
|
|
}
|