jellyfin/MediaBrowser.Controller/Providers/MetadataRefreshOptions.cs

42 lines
1.3 KiB
C#
Raw Normal View History

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