2020-02-27 16:43:57 +00:00
|
|
|
|
using MediaBrowser.Model.Plugins;
|
2020-02-22 06:04:52 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Providers.Plugins.MusicBrainz
|
|
|
|
|
{
|
|
|
|
|
public class PluginConfiguration : BasePluginConfiguration
|
|
|
|
|
{
|
2020-02-27 16:43:57 +00:00
|
|
|
|
private string server = Plugin.Instance.DefaultServer;
|
2020-02-22 06:04:52 +00:00
|
|
|
|
|
2020-02-27 16:43:57 +00: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 15:24:03 +00:00
|
|
|
|
|
|
|
|
|
public bool Enable { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool ReplaceArtistName { get; set; }
|
2020-02-22 06:04:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|