mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-20 04:18:51 -07:00
45 lines
953 B
C#
45 lines
953 B
C#
using MediaBrowser.Model.Plugins;
|
|
|
|
namespace MediaBrowser.Providers.Plugins.MusicBrainz
|
|
{
|
|
public class PluginConfiguration : BasePluginConfiguration
|
|
{
|
|
private string _server = Plugin.DefaultServer;
|
|
|
|
private long _rateLimit = Plugin.DefaultRateLimit;
|
|
|
|
public string Server
|
|
{
|
|
get
|
|
{
|
|
return _server;
|
|
}
|
|
|
|
set
|
|
{
|
|
_server = value.TrimEnd('/');
|
|
}
|
|
}
|
|
|
|
public long RateLimit
|
|
{
|
|
get
|
|
{
|
|
return _rateLimit;
|
|
}
|
|
|
|
set
|
|
{
|
|
if (value < Plugin.DefaultRateLimit && _server == Plugin.DefaultServer)
|
|
{
|
|
RateLimit = Plugin.DefaultRateLimit;
|
|
}
|
|
}
|
|
}
|
|
|
|
public bool Enable { get; set; }
|
|
|
|
public bool ReplaceArtistName { get; set; }
|
|
}
|
|
}
|