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.
jellyfin/MediaBrowser.Controller/Providers/MetadataRefreshOptions.cs

50 lines
1.3 KiB

using System;
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 MetadataRefreshMode MetadataRefreshMode { get; set; }
/// <summary>
/// TODO: deprecate. Keeping this for now, for api compatibility
/// </summary>
[Obsolete]
public bool ForceSave { get; set; }
/// <summary>
/// TODO: deprecate. Keeping this for now, for api compatibility
/// </summary>
[Obsolete]
public bool ResetResolveArgs { get; set; }
}
public class ImageRefreshOptions
{
public MetadataRefreshMode ImageRefreshMode { get; set; }
}
public enum MetadataRefreshMode
{
/// <summary>
/// Providers will be executed based on default rules
/// </summary>
EnsureMetadata,
/// <summary>
/// No providers will be executed
/// </summary>
None,
/// <summary>
/// All providers will be executed to search for new metadata
/// </summary>
FullRefresh
}
}