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.Providers/Plugins/MusicBrainz/Configuration/PluginConfiguration.cs

49 lines
1.0 KiB

using MediaBrowser.Model.Plugins;
namespace MediaBrowser.Providers.Plugins.MusicBrainz
{
public class PluginConfiguration : BasePluginConfiguration
{
5 years ago
private string _server = Plugin.DefaultServer;
5 years ago
private long _rateLimit = Plugin.DefaultRateLimit;
public string Server
{
get
{
return _server;
}
set
{
_server = value.TrimEnd('/');
}
}
public long RateLimit
{
get
{
return _rateLimit;
}
set
{
5 years ago
if (value < Plugin.DefaultRateLimit && _server == Plugin.DefaultServer)
{
_rateLimit = Plugin.DefaultRateLimit;
}
else
{
_rateLimit = value;
}
}
}
public bool Enable { get; set; }
public bool ReplaceArtistName { get; set; }
}
}