< Summary - Jellyfin

Information
Class: MediaBrowser.Providers.Plugins.MusicBrainz.Configuration.PluginConfiguration
Assembly: MediaBrowser.Providers
File(s): /srv/git/jellyfin/MediaBrowser.Providers/Plugins/MusicBrainz/Configuration/PluginConfiguration.cs
Line coverage
88%
Covered lines: 8
Uncovered lines: 1
Coverable lines: 9
Total lines: 57
Line coverage: 88.8%
Branch coverage
50%
Covered branches: 2
Total branches: 4
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 5/16/2026 - 12:15:55 AM Line coverage: 44.4% (4/9) Branch coverage: 0% (0/4) Total lines: 5710/29/2026 - 12:17:11 AM Line coverage: 88.8% (8/9) Branch coverage: 50% (2/4) Total lines: 57 5/16/2026 - 12:15:55 AM Line coverage: 44.4% (4/9) Branch coverage: 0% (0/4) Total lines: 5710/29/2026 - 12:17:11 AM Line coverage: 88.8% (8/9) Branch coverage: 50% (2/4) Total lines: 57

Coverage delta

Coverage delta 50 -50

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%11100%
get_Server()100%11100%
set_Server(...)100%11100%
get_RateLimit()100%11100%
set_RateLimit(...)50%4475%

File(s)

/srv/git/jellyfin/MediaBrowser.Providers/Plugins/MusicBrainz/Configuration/PluginConfiguration.cs

#LineLine coverage
 1using MediaBrowser.Model.Plugins;
 2
 3namespace MediaBrowser.Providers.Plugins.MusicBrainz.Configuration;
 4
 5/// <summary>
 6/// MusicBrainz plugin configuration.
 7/// </summary>
 8public class PluginConfiguration : BasePluginConfiguration
 9{
 10    /// <summary>
 11    /// The default server URL.
 12    /// </summary>
 13    public const string DefaultServer = "https://musicbrainz.org";
 14
 15    /// <summary>
 16    /// The default rate limit.
 17    /// </summary>
 18    public const double DefaultRateLimit = 1.0;
 19
 4120    private string _server = DefaultServer;
 21
 4122    private double _rateLimit = DefaultRateLimit;
 23
 24    /// <summary>
 25    /// Gets or sets the server URL.
 26    /// </summary>
 27    public string Server
 28    {
 7329        get => _server;
 30
 131        set => _server = value.TrimEnd('/');
 32    }
 33
 34    /// <summary>
 35    /// Gets or sets the rate limit.
 36    /// </summary>
 37    public double RateLimit
 38    {
 6739        get => _rateLimit;
 40        set
 41        {
 142            if (value < DefaultRateLimit && _server == DefaultServer)
 43            {
 044                _rateLimit = DefaultRateLimit;
 45            }
 46            else
 47            {
 148                _rateLimit = value;
 49            }
 150        }
 51    }
 52
 53    /// <summary>
 54    /// Gets or sets a value indicating whether to replace the artist name.
 55    /// </summary>
 56    public bool ReplaceArtistName { get; set; }
 57}