mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-19 20:09:03 -07:00
45 lines
965 B
C#
45 lines
965 B
C#
using MediaBrowser.Model.Plugins;
|
|
|
|
namespace MediaBrowser.Providers.Plugins.MusicBrainz
|
|
{
|
|
public class PluginConfiguration : BasePluginConfiguration
|
|
{
|
|
private string server = Plugin.Instance.DefaultServer;
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
|
|
public bool Enable { get; set; }
|
|
|
|
public bool ReplaceArtistName { get; set; }
|
|
}
|
|
}
|