jellyfin/MediaBrowser.Providers/Plugins/MusicBrainz/Configuration/PluginConfiguration.cs

45 lines
965 B
C#
Raw Normal View History

2020-02-27 09:43:57 -07:00
using MediaBrowser.Model.Plugins;
2020-02-21 23:04:52 -07:00
namespace MediaBrowser.Providers.Plugins.MusicBrainz
{
public class PluginConfiguration : BasePluginConfiguration
{
2020-02-27 09:43:57 -07:00
private string server = Plugin.Instance.DefaultServer;
2020-02-21 23:04:52 -07:00
2020-02-27 09:43:57 -07:00
private long rateLimit = Plugin.Instance.DefaultRateLimit;
public string Server
{
get
{
return server;
}
set
{
server = value.TrimEnd('/');
}
}
public long RateLimit
{
get
{
return rateLimit;
}
set
{
if (value < 2000u && server == Plugin.Instance.DefaultServer)
{
RateLimit = Plugin.Instance.DefaultRateLimit;
}
}
}
2020-02-23 08:24:03 -07:00
public bool Enable { get; set; }
public bool ReplaceArtistName { get; set; }
2020-02-21 23:04:52 -07:00
}
}