PluginConfiguration.cs 920 B

1234567891011121314151617181920212223242526272829303132333435
  1. using MediaBrowser.Model.Plugins;
  2. namespace MediaBrowser.Providers.Plugins.StudioImages.Configuration
  3. {
  4. /// <summary>
  5. /// Plugin configuration class for the studio image provider.
  6. /// </summary>
  7. public class PluginConfiguration : BasePluginConfiguration
  8. {
  9. private string _repository = Plugin.DefaultServer;
  10. /// <summary>
  11. /// Gets or sets the studio image repository URL.
  12. /// </summary>
  13. public string RepositoryUrl
  14. {
  15. get
  16. {
  17. if (string.IsNullOrEmpty(_repository))
  18. {
  19. _repository = Plugin.DefaultServer;
  20. }
  21. return _repository;
  22. }
  23. set
  24. {
  25. _repository = string.IsNullOrEmpty(value)
  26. ? Plugin.DefaultServer
  27. : value.TrimEnd('/');
  28. }
  29. }
  30. }
  31. }