aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers/Plugins/StudioImages/Configuration/PluginConfiguration.cs
blob: 7e3ec86e8dd00a865d28c53ea6566b6333d209aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using MediaBrowser.Model.Plugins;

namespace MediaBrowser.Providers.Plugins.StudioImages.Configuration
{
    /// <summary>
    /// Plugin configuration class for the studio image provider.
    /// </summary>
    public class PluginConfiguration : BasePluginConfiguration
    {
        private string _repository = Plugin.DefaultServer;

        /// <summary>
        /// Gets or sets the studio image repository URL.
        /// </summary>
        public string RepositoryUrl
        {
            get
            {
                if (string.IsNullOrEmpty(_repository))
                {
                    _repository = Plugin.DefaultServer;
                }

                return _repository;
            }

            set
            {
                _repository = string.IsNullOrEmpty(value)
                    ? Plugin.DefaultServer
                    : value.TrimEnd('/');
            }
        }
    }
}