2020-06-19 18:24:13 +00:00
|
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
|
|
|
|
|
using MediaBrowser.Model.Plugins;
|
2020-02-22 06:04:52 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Providers.Plugins.MusicBrainz
|
|
|
|
|
{
|
|
|
|
|
public class PluginConfiguration : BasePluginConfiguration
|
|
|
|
|
{
|
2020-03-01 13:48:41 +00:00
|
|
|
|
private string _server = Plugin.DefaultServer;
|
2020-02-22 06:04:52 +00:00
|
|
|
|
|
2020-03-01 13:48:41 +00:00
|
|
|
|
private long _rateLimit = Plugin.DefaultRateLimit;
|
2020-02-27 16:43:57 +00:00
|
|
|
|
|
|
|
|
|
public string Server
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2020-02-29 07:22:45 +00:00
|
|
|
|
return _server;
|
2020-02-27 16:43:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
{
|
2020-02-29 07:22:45 +00:00
|
|
|
|
_server = value.TrimEnd('/');
|
2020-02-27 16:43:57 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public long RateLimit
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2020-02-29 07:22:45 +00:00
|
|
|
|
return _rateLimit;
|
2020-02-27 16:43:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
{
|
2020-03-01 13:48:41 +00:00
|
|
|
|
if (value < Plugin.DefaultRateLimit && _server == Plugin.DefaultServer)
|
2020-02-27 16:43:57 +00:00
|
|
|
|
{
|
2020-03-30 20:16:32 +00:00
|
|
|
|
_rateLimit = Plugin.DefaultRateLimit;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
_rateLimit = value;
|
2020-02-27 16:43:57 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-02-23 15:24:03 +00:00
|
|
|
|
|
|
|
|
|
public bool ReplaceArtistName { get; set; }
|
2020-02-22 06:04:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|