Pārlūkot izejas kodu

ReSharper Reformat: Properties to expression bodied form.

Erwin de Haan 6 gadi atpakaļ
vecāks
revīzija
a36658f6f0
100 mainītis faili ar 487 papildinājumiem un 2353 dzēšanām
  1. 12 84
      BDInfo/BDInfoSettings.cs
  2. 5 26
      BDInfo/TSStream.cs
  3. 2 14
      BDInfo/TSStreamBuffer.cs
  4. 1 7
      BDInfo/TSStreamClip.cs
  5. 3 21
      Emby.Dlna/Api/DlnaServerService.cs
  6. 1 4
      Emby.Dlna/Didl/StringWriterWithEncoding.cs
  7. 2 14
      Emby.Dlna/DlnaManager.cs
  8. 1 7
      Emby.Dlna/Eventing/EventSubscription.cs
  9. 6 33
      Emby.Dlna/PlayTo/Device.cs
  10. 3 15
      Emby.Dlna/PlayTo/DeviceInfo.cs
  11. 3 18
      Emby.Dlna/PlayTo/PlayToController.cs
  12. 4 16
      Emby.Dlna/PlayTo/TransportCommands.cs
  13. 29 50
      Emby.Drawing.Skia/SkiaEncoder.cs
  14. 39 62
      Emby.Drawing/ImageProcessor.cs
  15. 10 30
      Emby.Drawing/NullImageEncoder.cs
  16. 4 19
      Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
  17. 3 15
      Emby.IsoMounting/IsoMounter/Plugin.cs
  18. 3 8
      Emby.Naming/Common/EpisodeExpression.cs
  19. 1 4
      Emby.Naming/Video/VideoFileInfo.cs
  20. 1 4
      Emby.Photos/PhotoProvider.cs
  21. 3 21
      Emby.Server.Implementations/Data/SqliteItemRepository.cs
  22. 2 15
      Jellyfin.Server/CoreAppHost.cs
  23. 13 62
      Jellyfin.Server/SocketSharp/RequestMono.cs
  24. 1 7
      Jellyfin.Server/SocketSharp/SharpWebSocket.cs
  25. 37 133
      Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs
  26. 11 23
      Jellyfin.Server/SocketSharp/WebSocketSharpResponse.cs
  27. 2 14
      MediaBrowser.Api/BaseApiService.cs
  28. 1 7
      MediaBrowser.Api/LiveTv/ProgressiveFileCopier.cs
  29. 1 4
      MediaBrowser.Api/Playback/BaseStreamingService.cs
  30. 1 4
      MediaBrowser.Api/Playback/Hls/BaseHlsService.cs
  31. 1 4
      MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
  32. 1 7
      MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs
  33. 1 4
      MediaBrowser.Api/Playback/StaticRemoteStreamWriter.cs
  34. 1 7
      MediaBrowser.Api/Playback/StreamRequest.cs
  35. 4 16
      MediaBrowser.Api/Playback/StreamState.cs
  36. 1 4
      MediaBrowser.Api/ScheduledTasks/ScheduledTasksWebSocketListener.cs
  37. 1 4
      MediaBrowser.Api/Session/SessionInfoWebSocketListener.cs
  38. 1 4
      MediaBrowser.Api/System/ActivityLogWebSocketListener.cs
  39. 4 10
      MediaBrowser.Common/Net/HttpRequestOptions.cs
  40. 7 34
      MediaBrowser.Common/Plugins/BasePlugin.cs
  41. 2 11
      MediaBrowser.Controller/Channels/Channel.cs
  42. 4 22
      MediaBrowser.Controller/Entities/AggregateFolder.cs
  43. 8 44
      MediaBrowser.Controller/Entities/Audio/Audio.cs
  44. 8 41
      MediaBrowser.Controller/Entities/Audio/MusicAlbum.cs
  45. 9 57
      MediaBrowser.Controller/Entities/Audio/MusicArtist.cs
  46. 5 32
      MediaBrowser.Controller/Entities/Audio/MusicGenre.cs
  47. 2 14
      MediaBrowser.Controller/Entities/AudioBook.cs
  48. 30 165
      MediaBrowser.Controller/Entities/BaseItem.cs
  49. 3 18
      MediaBrowser.Controller/Entities/BasePluginFolder.cs
  50. 1 7
      MediaBrowser.Controller/Entities/Book.cs
  51. 6 39
      MediaBrowser.Controller/Entities/CollectionFolder.cs
  52. 14 83
      MediaBrowser.Controller/Entities/Folder.cs
  53. 3 12
      MediaBrowser.Controller/Entities/Game.cs
  54. 3 21
      MediaBrowser.Controller/Entities/GameGenre.cs
  55. 4 28
      MediaBrowser.Controller/Entities/GameSystem.cs
  56. 4 28
      MediaBrowser.Controller/Entities/Genre.cs
  57. 4 25
      MediaBrowser.Controller/Entities/Movies/BoxSet.cs
  58. 3 10
      MediaBrowser.Controller/Entities/Movies/Movie.cs
  59. 1 7
      MediaBrowser.Controller/Entities/MusicVideo.cs
  60. 4 28
      MediaBrowser.Controller/Entities/Person.cs
  61. 3 21
      MediaBrowser.Controller/Entities/Photo.cs
  62. 3 21
      MediaBrowser.Controller/Entities/PhotoAlbum.cs
  63. 4 28
      MediaBrowser.Controller/Entities/Studio.cs
  64. 9 57
      MediaBrowser.Controller/Entities/TV/Episode.cs
  65. 6 30
      MediaBrowser.Controller/Entities/TV/Season.cs
  66. 6 37
      MediaBrowser.Controller/Entities/TV/Series.cs
  67. 1 8
      MediaBrowser.Controller/Entities/Trailer.cs
  68. 11 51
      MediaBrowser.Controller/Entities/User.cs
  69. 1 4
      MediaBrowser.Controller/Entities/UserItemData.cs
  70. 4 28
      MediaBrowser.Controller/Entities/UserRootFolder.cs
  71. 4 28
      MediaBrowser.Controller/Entities/UserView.cs
  72. 10 52
      MediaBrowser.Controller/Entities/Video.cs
  73. 3 21
      MediaBrowser.Controller/Entities/Year.cs
  74. 2 14
      MediaBrowser.Controller/Library/ItemResolveArgs.cs
  75. 6 40
      MediaBrowser.Controller/LiveTv/LiveTvChannel.cs
  76. 8 53
      MediaBrowser.Controller/LiveTv/LiveTvProgram.cs
  77. 7 35
      MediaBrowser.Controller/LiveTv/TimerInfo.cs
  78. 10 64
      MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.cs
  79. 1 7
      MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.cs
  80. 1 4
      MediaBrowser.Controller/Net/AuthenticatedAttribute.cs
  81. 1 7
      MediaBrowser.Controller/Net/AuthorizationInfo.cs
  82. 1 7
      MediaBrowser.Controller/Net/BasePeriodicWebSocketListener.cs
  83. 8 56
      MediaBrowser.Controller/Playlists/Playlist.cs
  84. 1 7
      MediaBrowser.Controller/Resolvers/BaseItemResolver.cs
  85. 3 22
      MediaBrowser.LocalMetadata/BaseXmlProvider.cs
  86. 2 12
      MediaBrowser.LocalMetadata/Images/CollectionFolderImageProvider.cs
  87. 2 8
      MediaBrowser.LocalMetadata/Images/EpisodeLocalImageProvider.cs
  88. 2 12
      MediaBrowser.LocalMetadata/Images/InternalMetadataFolderImageProvider.cs
  89. 2 8
      MediaBrowser.LocalMetadata/Images/LocalImageProvider.cs
  90. 2 14
      MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs
  91. 1 5
      MediaBrowser.MediaEncoding/Encoder/AudioEncoder.cs
  92. 2 2
      MediaBrowser.MediaEncoding/Encoder/EncodingJob.cs
  93. 1 4
      MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs
  94. 1 5
      MediaBrowser.MediaEncoding/Encoder/VideoEncoder.cs
  95. 1 4
      MediaBrowser.MediaEncoding/Subtitles/OpenSubtitleDownloader.cs
  96. 1 7
      MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs
  97. 1 4
      MediaBrowser.Model/Dlna/SortCriteria.cs
  98. 5 22
      MediaBrowser.Model/Dlna/StreamInfo.cs
  99. 4 10
      MediaBrowser.Model/Drawing/ImageSize.cs
  100. 1 7
      MediaBrowser.Model/Dto/BaseItemPerson.cs

+ 12 - 84
BDInfo/BDInfoSettings.cs

@@ -3,103 +3,31 @@ namespace BDInfo
 {
 {
     class BDInfoSettings
     class BDInfoSettings
     {
     {
-        public static bool GenerateStreamDiagnostics
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public static bool GenerateStreamDiagnostics => true;
 
 
-        public static bool EnableSSIF
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public static bool EnableSSIF => true;
 
 
-        public static bool AutosaveReport
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public static bool AutosaveReport => false;
 
 
-        public static bool GenerateFrameDataFile
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public static bool GenerateFrameDataFile => false;
 
 
-        public static bool FilterLoopingPlaylists
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public static bool FilterLoopingPlaylists => true;
 
 
-        public static bool FilterShortPlaylists
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public static bool FilterShortPlaylists => false;
 
 
-        public static int FilterShortPlaylistsValue
-        {
-            get
-            {
-                return 0;
-            }
-        }
+        public static int FilterShortPlaylistsValue => 0;
 
 
-        public static bool UseImagePrefix
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public static bool UseImagePrefix => false;
 
 
-        public static string UseImagePrefixValue
-        {
-            get
-            {
-                return null;
-            }
-        }
+        public static string UseImagePrefixValue => null;
 
 
         /// <summary>
         /// <summary>
         /// Setting this to false throws an IComparer error on some discs.
         /// Setting this to false throws an IComparer error on some discs.
         /// </summary>
         /// </summary>
-        public static bool KeepStreamOrder
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public static bool KeepStreamOrder => true;
 
 
-        public static bool GenerateTextSummary
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public static bool GenerateTextSummary => false;
 
 
-        public static string LastPath
-        {
-            get
-            {
-                return string.Empty;
-            }
-        }
+        public static string LastPath => string.Empty;
     }
     }
 }
 }

+ 5 - 26
BDInfo/TSStream.cs

@@ -142,21 +142,12 @@ namespace BDInfo
         public double PacketSeconds = 0;
         public double PacketSeconds = 0;
         public int AngleIndex = 0;
         public int AngleIndex = 0;
 
 
-        public ulong PacketSize
-        {
-            get
-            {
-                return PacketCount * 192;
-            }
-        }
+        public ulong PacketSize => PacketCount * 192;
 
 
         private string _LanguageCode;
         private string _LanguageCode;
         public string LanguageCode
         public string LanguageCode
         {
         {
-            get
-            {
-                return _LanguageCode;
-            }
+            get => _LanguageCode;
             set
             set
             {
             {
                 _LanguageCode = value;
                 _LanguageCode = value;
@@ -398,13 +389,7 @@ namespace BDInfo
             }
             }
         }
         }
 
 
-        public virtual string Description
-        {
-            get
-            {
-                return "";
-            }
-        }
+        public virtual string Description => "";
 
 
         public abstract TSStream Clone();
         public abstract TSStream Clone();
 
 
@@ -444,10 +429,7 @@ namespace BDInfo
         private TSVideoFormat _VideoFormat;
         private TSVideoFormat _VideoFormat;
         public TSVideoFormat VideoFormat
         public TSVideoFormat VideoFormat
         {
         {
-            get
-            {
-                return _VideoFormat;
-            }
+            get => _VideoFormat;
             set
             set
             {
             {
                 _VideoFormat = value;
                 _VideoFormat = value;
@@ -488,10 +470,7 @@ namespace BDInfo
         private TSFrameRate _FrameRate;
         private TSFrameRate _FrameRate;
         public TSFrameRate FrameRate
         public TSFrameRate FrameRate
         {
         {
-            get
-            {
-                return _FrameRate;
-            }
+            get => _FrameRate;
             set
             set
             {
             {
                 _FrameRate = value;
                 _FrameRate = value;

+ 2 - 14
BDInfo/TSStreamBuffer.cs

@@ -37,21 +37,9 @@ namespace BDInfo
             Stream = new MemoryStream(Buffer);
             Stream = new MemoryStream(Buffer);
         }
         }
 
 
-        public long Length
-        {
-            get
-            {
-                return (long)BufferLength;
-            }
-        }
+        public long Length => (long)BufferLength;
 
 
-        public long Position
-        {
-            get
-            {
-                return Stream.Position;
-            }
-        }
+        public long Position => Stream.Position;
 
 
         public void Add(
         public void Add(
             byte[] buffer,
             byte[] buffer,

+ 1 - 7
BDInfo/TSStreamClip.cs

@@ -74,13 +74,7 @@ namespace BDInfo
             }
             }
         }
         }
 
 
-        public ulong PacketSize
-        {
-            get
-            {
-                return PacketCount * 192;
-            }
-        }
+        public ulong PacketSize => PacketCount * 192;
 
 
         public ulong PacketBitRate
         public ulong PacketBitRate
         {
         {

+ 3 - 21
Emby.Dlna/Api/DlnaServerService.cs

@@ -115,29 +115,11 @@ namespace Emby.Dlna.Api
         public IRequest Request { get; set; }
         public IRequest Request { get; set; }
         private IHttpResultFactory _resultFactory;
         private IHttpResultFactory _resultFactory;
 
 
-        private IContentDirectory ContentDirectory
-        {
-            get
-            {
-                return DlnaEntryPoint.Current.ContentDirectory;
-            }
-        }
+        private IContentDirectory ContentDirectory => DlnaEntryPoint.Current.ContentDirectory;
 
 
-        private IConnectionManager ConnectionManager
-        {
-            get
-            {
-                return DlnaEntryPoint.Current.ConnectionManager;
-            }
-        }
+        private IConnectionManager ConnectionManager => DlnaEntryPoint.Current.ConnectionManager;
 
 
-        private IMediaReceiverRegistrar MediaReceiverRegistrar
-        {
-            get
-            {
-                return DlnaEntryPoint.Current.MediaReceiverRegistrar;
-            }
-        }
+        private IMediaReceiverRegistrar MediaReceiverRegistrar => DlnaEntryPoint.Current.MediaReceiverRegistrar;
 
 
         public DlnaServerService(IDlnaManager dlnaManager, IHttpResultFactory httpResultFactory)
         public DlnaServerService(IDlnaManager dlnaManager, IHttpResultFactory httpResultFactory)
         {
         {

+ 1 - 4
Emby.Dlna/Didl/StringWriterWithEncoding.cs

@@ -51,9 +51,6 @@ namespace Emby.Dlna.Didl
             _encoding = encoding;
             _encoding = encoding;
         }
         }
 
 
-        public override Encoding Encoding
-        {
-            get { return (null == _encoding) ? base.Encoding : _encoding; }
-        }
+        public override Encoding Encoding => (null == _encoding) ? base.Encoding : _encoding;
     }
     }
 }
 }

+ 2 - 14
Emby.Dlna/DlnaManager.cs

@@ -261,21 +261,9 @@ namespace Emby.Dlna
             return false;
             return false;
         }
         }
 
 
-        private string UserProfilesPath
-        {
-            get
-            {
-                return Path.Combine(_appPaths.ConfigurationDirectoryPath, "dlna", "user");
-            }
-        }
+        private string UserProfilesPath => Path.Combine(_appPaths.ConfigurationDirectoryPath, "dlna", "user");
 
 
-        private string SystemProfilesPath
-        {
-            get
-            {
-                return Path.Combine(_appPaths.ConfigurationDirectoryPath, "dlna", "system");
-            }
-        }
+        private string SystemProfilesPath => Path.Combine(_appPaths.ConfigurationDirectoryPath, "dlna", "system");
 
 
         private IEnumerable<DeviceProfile> GetProfiles(string path, DeviceProfileType type)
         private IEnumerable<DeviceProfile> GetProfiles(string path, DeviceProfileType type)
         {
         {

+ 1 - 7
Emby.Dlna/Eventing/EventSubscription.cs

@@ -23,12 +23,6 @@ namespace Emby.Dlna.Eventing
             TriggerCount++;
             TriggerCount++;
         }
         }
 
 
-        public bool IsExpired
-        {
-            get
-            {
-                return SubscriptionTime.AddSeconds(TimeoutSeconds) >= DateTime.UtcNow;
-            }
-        }
+        public bool IsExpired => SubscriptionTime.AddSeconds(TimeoutSeconds) >= DateTime.UtcNow;
     }
     }
 }
 }

+ 6 - 33
Emby.Dlna/PlayTo/Device.cs

@@ -35,10 +35,7 @@ namespace Emby.Dlna.PlayTo
                 RefreshVolumeIfNeeded();
                 RefreshVolumeIfNeeded();
                 return _volume;
                 return _volume;
             }
             }
-            set
-            {
-                _volume = value;
-            }
+            set => _volume = value;
         }
         }
 
 
         public TimeSpan? Duration { get; set; }
         public TimeSpan? Duration { get; set; }
@@ -46,41 +43,17 @@ namespace Emby.Dlna.PlayTo
         private TimeSpan _position = TimeSpan.FromSeconds(0);
         private TimeSpan _position = TimeSpan.FromSeconds(0);
         public TimeSpan Position
         public TimeSpan Position
         {
         {
-            get
-            {
-                return _position;
-            }
-            set
-            {
-                _position = value;
-            }
+            get => _position;
+            set => _position = value;
         }
         }
 
 
         public TRANSPORTSTATE TransportState { get; private set; }
         public TRANSPORTSTATE TransportState { get; private set; }
 
 
-        public bool IsPlaying
-        {
-            get
-            {
-                return TransportState == TRANSPORTSTATE.PLAYING;
-            }
-        }
+        public bool IsPlaying => TransportState == TRANSPORTSTATE.PLAYING;
 
 
-        public bool IsPaused
-        {
-            get
-            {
-                return TransportState == TRANSPORTSTATE.PAUSED || TransportState == TRANSPORTSTATE.PAUSED_PLAYBACK;
-            }
-        }
+        public bool IsPaused => TransportState == TRANSPORTSTATE.PAUSED || TransportState == TRANSPORTSTATE.PAUSED_PLAYBACK;
 
 
-        public bool IsStopped
-        {
-            get
-            {
-                return TransportState == TRANSPORTSTATE.STOPPED;
-            }
-        }
+        public bool IsStopped => TransportState == TRANSPORTSTATE.STOPPED;
 
 
         #endregion
         #endregion
 
 

+ 3 - 15
Emby.Dlna/PlayTo/DeviceInfo.cs

@@ -34,26 +34,14 @@ namespace Emby.Dlna.PlayTo
         private string _baseUrl = string.Empty;
         private string _baseUrl = string.Empty;
         public string BaseUrl
         public string BaseUrl
         {
         {
-            get
-            {
-                return _baseUrl;
-            }
-            set
-            {
-                _baseUrl = value;
-            }
+            get => _baseUrl;
+            set => _baseUrl = value;
         }
         }
 
 
         public DeviceIcon Icon { get; set; }
         public DeviceIcon Icon { get; set; }
 
 
         private readonly List<DeviceService> _services = new List<DeviceService>();
         private readonly List<DeviceService> _services = new List<DeviceService>();
-        public List<DeviceService> Services
-        {
-            get
-            {
-                return _services;
-            }
-        }
+        public List<DeviceService> Services => _services;
 
 
         public DeviceIdentification ToDeviceIdentification()
         public DeviceIdentification ToDeviceIdentification()
         {
         {

+ 3 - 18
Emby.Dlna/PlayTo/PlayToController.cs

@@ -44,18 +44,9 @@ namespace Emby.Dlna.PlayTo
         private readonly string _accessToken;
         private readonly string _accessToken;
         private readonly DateTime _creationTime;
         private readonly DateTime _creationTime;
 
 
-        public bool IsSessionActive
-        {
-            get
-            {
-                return !_disposed && _device != null;
-            }
-        }
+        public bool IsSessionActive => !_disposed && _device != null;
 
 
-        public bool SupportsMediaControl
-        {
-            get { return IsSessionActive; }
-        }
+        public bool SupportsMediaControl => IsSessionActive;
 
 
         public PlayToController(SessionInfo session, ISessionManager sessionManager, ILibraryManager libraryManager, ILogger logger, IDlnaManager dlnaManager, IUserManager userManager, IImageProcessor imageProcessor, string serverAddress, string accessToken, IDeviceDiscovery deviceDiscovery, IUserDataManager userDataManager, ILocalizationManager localization, IMediaSourceManager mediaSourceManager, IConfigurationManager config, IMediaEncoder mediaEncoder)
         public PlayToController(SessionInfo session, ISessionManager sessionManager, ILibraryManager libraryManager, ILogger logger, IDlnaManager dlnaManager, IUserManager userManager, IImageProcessor imageProcessor, string serverAddress, string accessToken, IDeviceDiscovery deviceDiscovery, IUserDataManager userDataManager, ILocalizationManager localization, IMediaSourceManager mediaSourceManager, IConfigurationManager config, IMediaEncoder mediaEncoder)
         {
         {
@@ -436,13 +427,7 @@ namespace Emby.Dlna.PlayTo
 
 
         private int _currentPlaylistIndex;
         private int _currentPlaylistIndex;
         private readonly List<PlaylistItem> _playlist = new List<PlaylistItem>();
         private readonly List<PlaylistItem> _playlist = new List<PlaylistItem>();
-        private List<PlaylistItem> Playlist
-        {
-            get
-            {
-                return _playlist;
-            }
-        }
+        private List<PlaylistItem> Playlist => _playlist;
 
 
         private void AddItemFromId(Guid id, List<BaseItem> list)
         private void AddItemFromId(Guid id, List<BaseItem> list)
         {
         {

+ 4 - 16
Emby.Dlna/PlayTo/TransportCommands.cs

@@ -12,27 +12,15 @@ namespace Emby.Dlna.PlayTo
         private List<StateVariable> _stateVariables = new List<StateVariable>();
         private List<StateVariable> _stateVariables = new List<StateVariable>();
         public List<StateVariable> StateVariables
         public List<StateVariable> StateVariables
         {
         {
-            get
-            {
-                return _stateVariables;
-            }
-            set
-            {
-                _stateVariables = value;
-            }
+            get => _stateVariables;
+            set => _stateVariables = value;
         }
         }
 
 
         private List<ServiceAction> _serviceActions = new List<ServiceAction>();
         private List<ServiceAction> _serviceActions = new List<ServiceAction>();
         public List<ServiceAction> ServiceActions
         public List<ServiceAction> ServiceActions
         {
         {
-            get
-            {
-                return _serviceActions;
-            }
-            set
-            {
-                _serviceActions = value;
-            }
+            get => _serviceActions;
+            set => _serviceActions = value;
         }
         }
 
 
         public static TransportCommands Create(XDocument document)
         public static TransportCommands Create(XDocument document)

+ 29 - 50
Emby.Drawing.Skia/SkiaEncoder.cs

@@ -34,46 +34,34 @@ namespace Emby.Drawing.Skia
             LogVersion();
             LogVersion();
         }
         }
 
 
-        public string[] SupportedInputFormats
-        {
-            get
+        public string[] SupportedInputFormats =>
+            new[]
             {
             {
-                // Some common file name extensions for RAW picture files include: .cr2, .crw, .dng, .nef, .orf, .rw2, .pef, .arw, .sr2, .srf, and .tif.
-                return new[]
-                {
-                    "jpeg",
-                    "jpg",
-                    "png",
-
-                    "dng",
-
-                    "webp",
-                    "gif",
-                    "bmp",
-                    "ico",
-                    "astc",
-                    "ktx",
-                    "pkm",
-                    "wbmp",
-
-                    // TODO
-                    // Are all of these supported? https://github.com/google/skia/blob/master/infra/bots/recipes/test.py#L454
-
-                    // working on windows at least
-                    "cr2",
-                    "nef",
-                    "arw"
-                };
-            }
-        }
+                "jpeg",
+                "jpg",
+                "png",
 
 
-        public ImageFormat[] SupportedOutputFormats
-        {
-            get
-            {
-                return new[] { ImageFormat.Webp, ImageFormat.Jpg, ImageFormat.Png };
-            }
-        }
+                "dng",
+
+                "webp",
+                "gif",
+                "bmp",
+                "ico",
+                "astc",
+                "ktx",
+                "pkm",
+                "wbmp",
+
+                // TODO
+                // Are all of these supported? https://github.com/google/skia/blob/master/infra/bots/recipes/test.py#L454
+
+                // working on windows at least
+                "cr2",
+                "nef",
+                "arw"
+            };
+
+        public ImageFormat[] SupportedOutputFormats => new[] { ImageFormat.Webp, ImageFormat.Jpg, ImageFormat.Png };
 
 
         private void LogVersion()
         private void LogVersion()
         {
         {
@@ -666,19 +654,10 @@ namespace Emby.Drawing.Skia
             }
             }
         }
         }
 
 
-        public string Name
-        {
-            get { return "Skia"; }
-        }
+        public string Name => "Skia";
 
 
-        public bool SupportsImageCollageCreation
-        {
-            get { return true; }
-        }
+        public bool SupportsImageCollageCreation => true;
 
 
-        public bool SupportsImageEncoding
-        {
-            get { return true; }
-        }
+        public bool SupportsImageEncoding => true;
     }
     }
 }
 }

+ 39 - 62
Emby.Drawing/ImageProcessor.cs

@@ -74,7 +74,7 @@ namespace Emby.Drawing
 
 
         public IImageEncoder ImageEncoder
         public IImageEncoder ImageEncoder
         {
         {
-            get { return _imageEncoder; }
+            get => _imageEncoder;
             set
             set
             {
             {
                 if (value == null)
                 if (value == null)
@@ -86,67 +86,44 @@ namespace Emby.Drawing
             }
             }
         }
         }
 
 
-        public string[] SupportedInputFormats
-        {
-            get
-            {
-                return new string[]
-                {
-                    "tiff",
-                    "tif",
-                    "jpeg",
-                    "jpg",
-                    "png",
-                    "aiff",
-                    "cr2",
-                    "crw",
-
-                    // Remove until supported
-                    //"nef",
-                    "orf",
-                    "pef",
-                    "arw",
-                    "webp",
-                    "gif",
-                    "bmp",
-                    "erf",
-                    "raf",
-                    "rw2",
-                    "nrw",
-                    "dng",
-                    "ico",
-                    "astc",
-                    "ktx",
-                    "pkm",
-                    "wbmp"
-                };
-            }
-        }
-
-
-        public bool SupportsImageCollageCreation
-        {
-            get
-            {
-                return _imageEncoder.SupportsImageCollageCreation;
-            }
-        }
-
-        private string ResizedImageCachePath
-        {
-            get
-            {
-                return Path.Combine(_appPaths.ImageCachePath, "resized-images");
-            }
-        }
-
-        private string EnhancedImageCachePath
-        {
-            get
-            {
-                return Path.Combine(_appPaths.ImageCachePath, "enhanced-images");
-            }
-        }
+        public string[] SupportedInputFormats =>
+            new string[]
+            {
+                "tiff",
+                "tif",
+                "jpeg",
+                "jpg",
+                "png",
+                "aiff",
+                "cr2",
+                "crw",
+
+                // Remove until supported
+                //"nef",
+                "orf",
+                "pef",
+                "arw",
+                "webp",
+                "gif",
+                "bmp",
+                "erf",
+                "raf",
+                "rw2",
+                "nrw",
+                "dng",
+                "ico",
+                "astc",
+                "ktx",
+                "pkm",
+                "wbmp"
+            };
+
+
+        public bool SupportsImageCollageCreation => _imageEncoder.SupportsImageCollageCreation;
+
+        private string ResizedImageCachePath => Path.Combine(_appPaths.ImageCachePath, "resized-images");
+
+        private string EnhancedImageCachePath => Path.Combine(_appPaths.ImageCachePath, "enhanced-images");
 
 
         public void AddParts(IEnumerable<IImageEnhancer> enhancers)
         public void AddParts(IEnumerable<IImageEnhancer> enhancers)
         {
         {

+ 10 - 30
Emby.Drawing/NullImageEncoder.cs

@@ -6,26 +6,15 @@ namespace Emby.Drawing
 {
 {
     public class NullImageEncoder : IImageEncoder
     public class NullImageEncoder : IImageEncoder
     {
     {
-        public string[] SupportedInputFormats
-        {
-            get
+        public string[] SupportedInputFormats =>
+            new[]
             {
             {
-                return new[]
-                {
-                    "png",
-                    "jpeg",
-                    "jpg"
-                };
-            }
-        }
+                "png",
+                "jpeg",
+                "jpg"
+            };
 
 
-        public ImageFormat[] SupportedOutputFormats
-        {
-            get
-            {
-                return new[] { ImageFormat.Jpg, ImageFormat.Png };
-            }
-        }
+        public ImageFormat[] SupportedOutputFormats => new[] { ImageFormat.Jpg, ImageFormat.Png };
 
 
         public void CropWhiteSpace(string inputPath, string outputPath)
         public void CropWhiteSpace(string inputPath, string outputPath)
         {
         {
@@ -42,20 +31,11 @@ namespace Emby.Drawing
             throw new NotImplementedException();
             throw new NotImplementedException();
         }
         }
 
 
-        public string Name
-        {
-            get { return "Null Image Encoder"; }
-        }
+        public string Name => "Null Image Encoder";
 
 
-        public bool SupportsImageCollageCreation
-        {
-            get { return false; }
-        }
+        public bool SupportsImageCollageCreation => false;
 
 
-        public bool SupportsImageEncoding
-        {
-            get { return false; }
-        }
+        public bool SupportsImageEncoding => false;
 
 
         public ImageSize GetImageSize(string path)
         public ImageSize GetImageSize(string path)
         {
         {

+ 4 - 19
Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs

@@ -13,7 +13,7 @@ namespace IsoMounter
     public class LinuxIsoManager : IIsoMounter
     public class LinuxIsoManager : IIsoMounter
     {
     {
         [DllImport("libc", SetLastError = true)]
         [DllImport("libc", SetLastError = true)]
-        public static extern uint getuid();
+        static extern uint getuid();
 
 
         #region Private Fields
         #region Private Fields
 
 
@@ -102,26 +102,11 @@ namespace IsoMounter
 
 
         #region Interface Implementation for IIsoMounter
         #region Interface Implementation for IIsoMounter
 
 
-        public bool IsInstalled
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public bool IsInstalled => true;
 
 
-        public string Name
-        {
-            get { return "LinuxMount"; }
-        }
+        public string Name => "LinuxMount";
 
 
-        public bool RequiresInstallation
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public bool RequiresInstallation => false;
 
 
         public bool CanMount(string path)
         public bool CanMount(string path)
         {
         {

+ 3 - 15
Emby.IsoMounting/IsoMounter/Plugin.cs

@@ -13,30 +13,18 @@ namespace IsoMounter
         }
         }
 
 
         private Guid _id = new Guid("4682DD4C-A675-4F1B-8E7C-79ADF137A8F8");
         private Guid _id = new Guid("4682DD4C-A675-4F1B-8E7C-79ADF137A8F8");
-        public override Guid Id
-        {
-            get { return _id; }
-        }
+        public override Guid Id => _id;
 
 
         /// <summary>
         /// <summary>
         /// Gets the name of the plugin
         /// Gets the name of the plugin
         /// </summary>
         /// </summary>
         /// <value>The name.</value>
         /// <value>The name.</value>
-        public override string Name
-        {
-            get { return "Iso Mounter"; }
-        }
+        public override string Name => "Iso Mounter";
 
 
         /// <summary>
         /// <summary>
         /// Gets the description.
         /// Gets the description.
         /// </summary>
         /// </summary>
         /// <value>The description.</value>
         /// <value>The description.</value>
-        public override string Description
-        {
-            get
-            {
-                return "Mount and stream ISO contents";
-            }
-        }
+        public override string Description => "Mount and stream ISO contents";
     }
     }
 }
 }

+ 3 - 8
Emby.Naming/Common/EpisodeExpression.cs

@@ -6,7 +6,8 @@ namespace Emby.Naming.Common
     public class EpisodeExpression
     public class EpisodeExpression
     {
     {
         private string _expression;
         private string _expression;
-        public string Expression { get { return _expression; } set { _expression = value; _regex = null; } }
+        public string Expression { get => _expression;
+            set { _expression = value; _regex = null; } }
 
 
         public bool IsByDate { get; set; }
         public bool IsByDate { get; set; }
         public bool IsOptimistic { get; set; }
         public bool IsOptimistic { get; set; }
@@ -16,13 +17,7 @@ namespace Emby.Naming.Common
         public string[] DateTimeFormats { get; set; }
         public string[] DateTimeFormats { get; set; }
 
 
         private Regex _regex;
         private Regex _regex;
-        public Regex Regex
-        {
-            get
-            {
-                return _regex ?? (_regex = new Regex(Expression, RegexOptions.IgnoreCase | RegexOptions.Compiled));
-            }
-        }
+        public Regex Regex => _regex ?? (_regex = new Regex(Expression, RegexOptions.IgnoreCase | RegexOptions.Compiled));
 
 
         public EpisodeExpression(string expression, bool byDate)
         public EpisodeExpression(string expression, bool byDate)
         {
         {

+ 1 - 4
Emby.Naming/Video/VideoFileInfo.cs

@@ -65,10 +65,7 @@ namespace Emby.Naming.Video
         /// Gets the file name without extension.
         /// Gets the file name without extension.
         /// </summary>
         /// </summary>
         /// <value>The file name without extension.</value>
         /// <value>The file name without extension.</value>
-        public string FileNameWithoutExtension
-        {
-            get { return !IsDirectory ? System.IO.Path.GetFileNameWithoutExtension(Path) : System.IO.Path.GetFileName(Path); }
-        }
+        public string FileNameWithoutExtension => !IsDirectory ? System.IO.Path.GetFileNameWithoutExtension(Path) : System.IO.Path.GetFileName(Path);
 
 
         public override string ToString()
         public override string ToString()
         {
         {

+ 1 - 4
Emby.Photos/PhotoProvider.cs

@@ -199,9 +199,6 @@ namespace Emby.Photos
             return Task.FromResult(result);
             return Task.FromResult(result);
         }
         }
 
 
-        public string Name
-        {
-            get { return "Embedded Information"; }
-        }
+        public string Name => "Embedded Information";
     }
     }
 }
 }

+ 3 - 21
Emby.Server.Implementations/Data/SqliteItemRepository.cs

@@ -45,13 +45,7 @@ namespace Emby.Server.Implementations.Data
         /// Gets the name of the repository
         /// Gets the name of the repository
         /// </summary>
         /// </summary>
         /// <value>The name.</value>
         /// <value>The name.</value>
-        public string Name
-        {
-            get
-            {
-                return "SQLite";
-            }
-        }
+        public string Name => "SQLite";
 
 
         /// <summary>
         /// <summary>
         /// Gets the json serializer.
         /// Gets the json serializer.
@@ -97,21 +91,9 @@ namespace Emby.Server.Implementations.Data
 
 
         private const string ChaptersTableName = "Chapters2";
         private const string ChaptersTableName = "Chapters2";
 
 
-        protected override int? CacheSize
-        {
-            get
-            {
-                return 20000;
-            }
-        }
+        protected override int? CacheSize => 20000;
 
 
-        protected override bool EnableTempStoreMemory
-        {
-            get
-            {
-                return true;
-            }
-        }
+        protected override bool EnableTempStoreMemory => true;
 
 
         /// <summary>
         /// <summary>
         /// Opens the connection to the database
         /// Opens the connection to the database

+ 2 - 15
Jellyfin.Server/CoreAppHost.cs

@@ -16,14 +16,7 @@ namespace Jellyfin.Server
         {
         {
         }
         }
 
 
-        public override bool CanSelfRestart
-        {
-            get
-            {
-                // A restart script must be provided
-                return StartupOptions.ContainsOption("-restartpath");
-            }
-        }
+        public override bool CanSelfRestart => StartupOptions.ContainsOption("-restartpath");
 
 
         protected override void RestartInternal() => Program.Restart();
         protected override void RestartInternal() => Program.Restart();
 
 
@@ -32,13 +25,7 @@ namespace Jellyfin.Server
 
 
         protected override void ShutdownInternal() => Program.Shutdown();
         protected override void ShutdownInternal() => Program.Shutdown();
 
 
-        protected override bool SupportsDualModeSockets
-        {
-            get
-            {
-                return true;
-            }
-        }
+        protected override bool SupportsDualModeSockets => true;
 
 
         protected override IHttpListener CreateHttpListener()
         protected override IHttpListener CreateHttpListener()
             => new WebSocketSharpListener(
             => new WebSocketSharpListener(

+ 13 - 62
Jellyfin.Server/SocketSharp/RequestMono.cs

@@ -113,21 +113,9 @@ namespace Jellyfin.SocketSharp
             return form;
             return form;
         }
         }
 
 
-        public string Accept
-        {
-            get
-            {
-                return string.IsNullOrEmpty(request.Headers["Accept"]) ? null : request.Headers["Accept"];
-            }
-        }
+        public string Accept => string.IsNullOrEmpty(request.Headers["Accept"]) ? null : request.Headers["Accept"];
 
 
-        public string Authorization
-        {
-            get
-            {
-                return string.IsNullOrEmpty(request.Headers["Authorization"]) ? null : request.Headers["Authorization"];
-            }
-        }
+        public string Authorization => string.IsNullOrEmpty(request.Headers["Authorization"]) ? null : request.Headers["Authorization"];
 
 
         protected bool validate_cookies, validate_query_string, validate_form;
         protected bool validate_cookies, validate_query_string, validate_form;
         protected bool checked_cookies, checked_query_string, checked_form;
         protected bool checked_cookies, checked_query_string, checked_form;
@@ -410,30 +398,17 @@ namespace Jellyfin.SocketSharp
                     throw new NotSupportedException();
                     throw new NotSupportedException();
                 }
                 }
 
 
-                public override bool CanRead
-                {
-                    get { return true; }
-                }
-                public override bool CanSeek
-                {
-                    get { return true; }
-                }
-                public override bool CanWrite
-                {
-                    get { return false; }
-                }
+                public override bool CanRead => true;
 
 
-                public override long Length
-                {
-                    get { return end - offset; }
-                }
+                public override bool CanSeek => true;
+
+                public override bool CanWrite => false;
+
+                public override long Length => end - offset;
 
 
                 public override long Position
                 public override long Position
                 {
                 {
-                    get
-                    {
-                        return position - offset;
-                    }
+                    get => position - offset;
                     set
                     set
                     {
                     {
                         if (value > Length)
                         if (value > Length)
@@ -451,37 +426,13 @@ namespace Jellyfin.SocketSharp
                 this.stream = new ReadSubStream(base_stream, offset, length);
                 this.stream = new ReadSubStream(base_stream, offset, length);
             }
             }
 
 
-            public string ContentType
-            {
-                get
-                {
-                    return content_type;
-                }
-            }
+            public string ContentType => content_type;
 
 
-            public int ContentLength
-            {
-                get
-                {
-                    return (int)stream.Length;
-                }
-            }
+            public int ContentLength => (int)stream.Length;
 
 
-            public string FileName
-            {
-                get
-                {
-                    return name;
-                }
-            }
+            public string FileName => name;
 
 
-            public Stream InputStream
-            {
-                get
-                {
-                    return stream;
-                }
-            }
+            public Stream InputStream => stream;
         }
         }
 
 
         class Helpers
         class Helpers

+ 1 - 7
Jellyfin.Server/SocketSharp/SharpWebSocket.cs

@@ -85,13 +85,7 @@ namespace Jellyfin.SocketSharp
         /// Gets or sets the state.
         /// Gets or sets the state.
         /// </summary>
         /// </summary>
         /// <value>The state.</value>
         /// <value>The state.</value>
-        public WebSocketState State
-        {
-            get
-            {
-                return WebSocket.ReadyState;
-            }
-        }
+        public WebSocketState State => WebSocket.ReadyState;
 
 
         /// <summary>
         /// <summary>
         /// Sends the async.
         /// Sends the async.

+ 37 - 133
Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs

@@ -39,88 +39,38 @@ namespace Jellyfin.SocketSharp
             return string.IsNullOrEmpty(endHostUrl) ? null : endHostUrl.TrimEnd('/');
             return string.IsNullOrEmpty(endHostUrl) ? null : endHostUrl.TrimEnd('/');
         }
         }
 
 
-        public HttpListenerRequest HttpRequest
-        {
-            get { return request; }
-        }
+        public HttpListenerRequest HttpRequest => request;
 
 
-        public object OriginalRequest
-        {
-            get { return request; }
-        }
+        public object OriginalRequest => request;
 
 
-        public IResponse Response
-        {
-            get { return response; }
-        }
+        public IResponse Response => response;
 
 
-        public IHttpResponse HttpResponse
-        {
-            get { return response; }
-        }
+        public IHttpResponse HttpResponse => response;
 
 
         public string OperationName { get; set; }
         public string OperationName { get; set; }
 
 
         public object Dto { get; set; }
         public object Dto { get; set; }
 
 
-        public string RawUrl
-        {
-            get { return request.RawUrl; }
-        }
+        public string RawUrl => request.RawUrl;
 
 
-        public string AbsoluteUri
-        {
-            get { return request.Url.AbsoluteUri.TrimEnd('/'); }
-        }
+        public string AbsoluteUri => request.Url.AbsoluteUri.TrimEnd('/');
 
 
-        public string UserHostAddress
-        {
-            get { return request.UserHostAddress; }
-        }
+        public string UserHostAddress => request.UserHostAddress;
 
 
-        public string XForwardedFor
-        {
-            get
-            {
-                return string.IsNullOrEmpty(request.Headers["X-Forwarded-For"]) ? null : request.Headers["X-Forwarded-For"];
-            }
-        }
+        public string XForwardedFor => string.IsNullOrEmpty(request.Headers["X-Forwarded-For"]) ? null : request.Headers["X-Forwarded-For"];
 
 
-        public int? XForwardedPort
-        {
-            get
-            {
-                return string.IsNullOrEmpty(request.Headers["X-Forwarded-Port"]) ? (int?)null : int.Parse(request.Headers["X-Forwarded-Port"]);
-            }
-        }
+        public int? XForwardedPort => string.IsNullOrEmpty(request.Headers["X-Forwarded-Port"]) ? (int?)null : int.Parse(request.Headers["X-Forwarded-Port"]);
 
 
-        public string XForwardedProtocol
-        {
-            get
-            {
-                return string.IsNullOrEmpty(request.Headers["X-Forwarded-Proto"]) ? null : request.Headers["X-Forwarded-Proto"];
-            }
-        }
+        public string XForwardedProtocol => string.IsNullOrEmpty(request.Headers["X-Forwarded-Proto"]) ? null : request.Headers["X-Forwarded-Proto"];
 
 
-        public string XRealIp
-        {
-            get
-            {
-                return string.IsNullOrEmpty(request.Headers["X-Real-IP"]) ? null : request.Headers["X-Real-IP"];
-            }
-        }
+        public string XRealIp => string.IsNullOrEmpty(request.Headers["X-Real-IP"]) ? null : request.Headers["X-Real-IP"];
 
 
         private string remoteIp;
         private string remoteIp;
-        public string RemoteIp
-        {
-            get
-            {
-                return remoteIp ??
-                    (remoteIp = (CheckBadChars(XForwardedFor)) ??
-                                (NormalizeIp(CheckBadChars(XRealIp)) ??
-                                (request.RemoteEndPoint != null ? NormalizeIp(request.RemoteEndPoint.Address.ToString()) : null)));
-            }
-        }
+        public string RemoteIp =>
+            remoteIp ??
+            (remoteIp = (CheckBadChars(XForwardedFor)) ??
+                        (NormalizeIp(CheckBadChars(XRealIp)) ??
+                         (request.RemoteEndPoint != null ? NormalizeIp(request.RemoteEndPoint.Address.ToString()) : null)));
 
 
         private static readonly char[] HttpTrimCharacters = new char[] { (char)0x09, (char)0xA, (char)0xB, (char)0xC, (char)0xD, (char)0x20 };
         private static readonly char[] HttpTrimCharacters = new char[] { (char)0x09, (char)0xA, (char)0xB, (char)0xC, (char)0xD, (char)0x20 };
 
 
@@ -215,34 +165,20 @@ namespace Jellyfin.SocketSharp
             return ip;
             return ip;
         }
         }
 
 
-        public bool IsSecureConnection
-        {
-            get { return request.IsSecureConnection || XForwardedProtocol == "https"; }
-        }
+        public bool IsSecureConnection => request.IsSecureConnection || XForwardedProtocol == "https";
 
 
-        public string[] AcceptTypes
-        {
-            get { return request.AcceptTypes; }
-        }
+        public string[] AcceptTypes => request.AcceptTypes;
 
 
         private Dictionary<string, object> items;
         private Dictionary<string, object> items;
-        public Dictionary<string, object> Items
-        {
-            get { return items ?? (items = new Dictionary<string, object>()); }
-        }
+        public Dictionary<string, object> Items => items ?? (items = new Dictionary<string, object>());
 
 
         private string responseContentType;
         private string responseContentType;
         public string ResponseContentType
         public string ResponseContentType
         {
         {
-            get
-            {
-                return responseContentType
-                    ?? (responseContentType = GetResponseContentType(this));
-            }
-            set
-            {
-                this.responseContentType = value;
-            }
+            get =>
+                responseContentType
+                ?? (responseContentType = GetResponseContentType(this));
+            set => this.responseContentType = value;
         }
         }
 
 
         public const string FormUrlEncoded = "application/x-www-form-urlencoded";
         public const string FormUrlEncoded = "application/x-www-form-urlencoded";
@@ -434,58 +370,32 @@ namespace Jellyfin.SocketSharp
             }
             }
         }
         }
 
 
-        public string UserAgent
-        {
-            get { return request.UserAgent; }
-        }
+        public string UserAgent => request.UserAgent;
 
 
-        public QueryParamCollection Headers
-        {
-            get { return request.Headers; }
-        }
+        public QueryParamCollection Headers => request.Headers;
 
 
         private QueryParamCollection queryString;
         private QueryParamCollection queryString;
-        public QueryParamCollection QueryString
-        {
-            get { return queryString ?? (queryString = MyHttpUtility.ParseQueryString(request.Url.Query)); }
-        }
+        public QueryParamCollection QueryString => queryString ?? (queryString = MyHttpUtility.ParseQueryString(request.Url.Query));
 
 
-        public bool IsLocal
-        {
-            get { return request.IsLocal; }
-        }
+        public bool IsLocal => request.IsLocal;
 
 
         private string httpMethod;
         private string httpMethod;
-        public string HttpMethod
-        {
-            get
-            {
-                return httpMethod
-                    ?? (httpMethod = request.HttpMethod);
-            }
-        }
+        public string HttpMethod =>
+            httpMethod
+            ?? (httpMethod = request.HttpMethod);
 
 
-        public string Verb
-        {
-            get { return HttpMethod; }
-        }
+        public string Verb => HttpMethod;
 
 
-        public string ContentType
-        {
-            get { return request.ContentType; }
-        }
+        public string ContentType => request.ContentType;
 
 
         public Encoding contentEncoding;
         public Encoding contentEncoding;
         public Encoding ContentEncoding
         public Encoding ContentEncoding
         {
         {
-            get { return contentEncoding ?? request.ContentEncoding; }
-            set { contentEncoding = value; }
+            get => contentEncoding ?? request.ContentEncoding;
+            set => contentEncoding = value;
         }
         }
 
 
-        public Uri UrlReferrer
-        {
-            get { return request.UrlReferrer; }
-        }
+        public Uri UrlReferrer => request.UrlReferrer;
 
 
         public static Encoding GetEncoding(string contentTypeHeader)
         public static Encoding GetEncoding(string contentTypeHeader)
         {
         {
@@ -501,15 +411,9 @@ namespace Jellyfin.SocketSharp
             }
             }
         }
         }
 
 
-        public Stream InputStream
-        {
-            get { return request.InputStream; }
-        }
+        public Stream InputStream => request.InputStream;
 
 
-        public long ContentLength
-        {
-            get { return request.ContentLength64; }
-        }
+        public long ContentLength => request.ContentLength64;
 
 
         private IHttpFile[] httpFiles;
         private IHttpFile[] httpFiles;
         public IHttpFile[] Files
         public IHttpFile[] Files

+ 11 - 23
Jellyfin.Server/SocketSharp/WebSocketSharpResponse.cs

@@ -31,27 +31,24 @@ namespace Jellyfin.SocketSharp
 
 
         public IRequest Request { get; private set; }
         public IRequest Request { get; private set; }
         public Dictionary<string, object> Items { get; private set; }
         public Dictionary<string, object> Items { get; private set; }
-        public object OriginalResponse
-        {
-            get { return _response; }
-        }
+        public object OriginalResponse => _response;
 
 
         public int StatusCode
         public int StatusCode
         {
         {
-            get { return this._response.StatusCode; }
-            set { this._response.StatusCode = value; }
+            get => this._response.StatusCode;
+            set => this._response.StatusCode = value;
         }
         }
 
 
         public string StatusDescription
         public string StatusDescription
         {
         {
-            get { return this._response.StatusDescription; }
-            set { this._response.StatusDescription = value; }
+            get => this._response.StatusDescription;
+            set => this._response.StatusDescription = value;
         }
         }
 
 
         public string ContentType
         public string ContentType
         {
         {
-            get { return _response.ContentType; }
-            set { _response.ContentType = value; }
+            get => _response.ContentType;
+            set => _response.ContentType = value;
         }
         }
 
 
         //public ICookies Cookies { get; set; }
         //public ICookies Cookies { get; set; }
@@ -67,13 +64,7 @@ namespace Jellyfin.SocketSharp
             _response.AddHeader(name, value);
             _response.AddHeader(name, value);
         }
         }
 
 
-        public QueryParamCollection Headers
-        {
-            get
-            {
-                return _response.Headers;
-            }
-        }
+        public QueryParamCollection Headers => _response.Headers;
 
 
         public string GetHeader(string name)
         public string GetHeader(string name)
         {
         {
@@ -85,10 +76,7 @@ namespace Jellyfin.SocketSharp
             _response.Redirect(url);
             _response.Redirect(url);
         }
         }
 
 
-        public Stream OutputStream
-        {
-            get { return _response.OutputStream; }
-        }
+        public Stream OutputStream => _response.OutputStream;
 
 
         public void Close()
         public void Close()
         {
         {
@@ -179,8 +167,8 @@ namespace Jellyfin.SocketSharp
 
 
         public bool SendChunked
         public bool SendChunked
         {
         {
-            get { return _response.SendChunked; }
-            set { _response.SendChunked = value; }
+            get => _response.SendChunked;
+            set => _response.SendChunked = value;
         }
         }
 
 
         public bool KeepAlive { get; set; }
         public bool KeepAlive { get; set; }

+ 2 - 14
MediaBrowser.Api/BaseApiService.cs

@@ -22,25 +22,13 @@ namespace MediaBrowser.Api
         /// Gets or sets the logger.
         /// Gets or sets the logger.
         /// </summary>
         /// </summary>
         /// <value>The logger.</value>
         /// <value>The logger.</value>
-        public ILogger Logger
-        {
-            get
-            {
-                return ApiEntryPoint.Instance.Logger;
-            }
-        }
+        public ILogger Logger => ApiEntryPoint.Instance.Logger;
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets the HTTP result factory.
         /// Gets or sets the HTTP result factory.
         /// </summary>
         /// </summary>
         /// <value>The HTTP result factory.</value>
         /// <value>The HTTP result factory.</value>
-        public IHttpResultFactory ResultFactory
-        {
-            get
-            {
-                return ApiEntryPoint.Instance.ResultFactory;
-            }
-        }
+        public IHttpResultFactory ResultFactory => ApiEntryPoint.Instance.ResultFactory;
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets the request context.
         /// Gets or sets the request context.

+ 1 - 7
MediaBrowser.Api/LiveTv/ProgressiveFileCopier.cs

@@ -45,13 +45,7 @@ namespace MediaBrowser.Api.LiveTv
             _streamHelper = streamHelper;
             _streamHelper = streamHelper;
         }
         }
 
 
-        public IDictionary<string, string> Headers
-        {
-            get
-            {
-                return _outputHeaders;
-            }
-        }
+        public IDictionary<string, string> Headers => _outputHeaders;
 
 
         private Stream GetInputStream(bool allowAsyncFileRead)
         private Stream GetInputStream(bool allowAsyncFileRead)
         {
         {

+ 1 - 4
MediaBrowser.Api/Playback/BaseStreamingService.cs

@@ -141,10 +141,7 @@ namespace MediaBrowser.Api.Playback
             return Path.Combine(folder, dataHash + (outputFileExtension ?? string.Empty).ToLower());
             return Path.Combine(folder, dataHash + (outputFileExtension ?? string.Empty).ToLower());
         }
         }
 
 
-        protected virtual bool EnableOutputInSubFolder
-        {
-            get { return false; }
-        }
+        protected virtual bool EnableOutputInSubFolder => false;
 
 
         protected readonly CultureInfo UsCulture = new CultureInfo("en-US");
         protected readonly CultureInfo UsCulture = new CultureInfo("en-US");
 
 

+ 1 - 4
MediaBrowser.Api/Playback/Hls/BaseHlsService.cs

@@ -52,10 +52,7 @@ namespace MediaBrowser.Api.Playback.Hls
         /// Gets the type of the transcoding job.
         /// Gets the type of the transcoding job.
         /// </summary>
         /// </summary>
         /// <value>The type of the transcoding job.</value>
         /// <value>The type of the transcoding job.</value>
-        protected override TranscodingJobType TranscodingJobType
-        {
-            get { return TranscodingJobType.Hls; }
-        }
+        protected override TranscodingJobType TranscodingJobType => TranscodingJobType.Hls;
 
 
         /// <summary>
         /// <summary>
         /// Processes the request.
         /// Processes the request.

+ 1 - 4
MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs

@@ -102,10 +102,7 @@ namespace MediaBrowser.Api.Playback.Progressive
         /// Gets the type of the transcoding job.
         /// Gets the type of the transcoding job.
         /// </summary>
         /// </summary>
         /// <value>The type of the transcoding job.</value>
         /// <value>The type of the transcoding job.</value>
-        protected override TranscodingJobType TranscodingJobType
-        {
-            get { return TranscodingJobType.Progressive; }
-        }
+        protected override TranscodingJobType TranscodingJobType => TranscodingJobType.Progressive;
 
 
         /// <summary>
         /// <summary>
         /// Processes the request.
         /// Processes the request.

+ 1 - 7
MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs

@@ -50,13 +50,7 @@ namespace MediaBrowser.Api.Playback.Progressive
             _environment = environment;
             _environment = environment;
         }
         }
 
 
-        public IDictionary<string, string> Headers
-        {
-            get
-            {
-                return _outputHeaders;
-            }
-        }
+        public IDictionary<string, string> Headers => _outputHeaders;
 
 
         private Stream GetInputStream(bool allowAsyncFileRead)
         private Stream GetInputStream(bool allowAsyncFileRead)
         {
         {

+ 1 - 4
MediaBrowser.Api/Playback/StaticRemoteStreamWriter.cs

@@ -31,10 +31,7 @@ namespace MediaBrowser.Api.Playback
         /// Gets the options.
         /// Gets the options.
         /// </summary>
         /// </summary>
         /// <value>The options.</value>
         /// <value>The options.</value>
-        public IDictionary<string, string> Headers
-        {
-            get { return _options; }
-        }
+        public IDictionary<string, string> Headers => _options;
 
 
         public async Task WriteToAsync(Stream responseStream, CancellationToken cancellationToken)
         public async Task WriteToAsync(Stream responseStream, CancellationToken cancellationToken)
         {
         {

+ 1 - 7
MediaBrowser.Api/Playback/StreamRequest.cs

@@ -50,13 +50,7 @@ namespace MediaBrowser.Api.Playback
         /// Gets a value indicating whether this instance has fixed resolution.
         /// Gets a value indicating whether this instance has fixed resolution.
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance has fixed resolution; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance has fixed resolution; otherwise, <c>false</c>.</value>
-        public bool HasFixedResolution
-        {
-            get
-            {
-                return Width.HasValue || Height.HasValue;
-            }
-        }
+        public bool HasFixedResolution => Width.HasValue || Height.HasValue;
 
 
         public bool EnableSubtitlesInManifest { get; set; }
         public bool EnableSubtitlesInManifest { get; set; }
     }
     }

+ 4 - 16
MediaBrowser.Api/Playback/StreamState.cs

@@ -17,7 +17,7 @@ namespace MediaBrowser.Api.Playback
 
 
         public StreamRequest Request
         public StreamRequest Request
         {
         {
-            get { return (StreamRequest)BaseRequest; }
+            get => (StreamRequest)BaseRequest;
             set
             set
             {
             {
                 BaseRequest = value;
                 BaseRequest = value;
@@ -28,10 +28,7 @@ namespace MediaBrowser.Api.Playback
 
 
         public TranscodingThrottler TranscodingThrottler { get; set; }
         public TranscodingThrottler TranscodingThrottler { get; set; }
 
 
-        public VideoStreamRequest VideoRequest
-        {
-            get { return Request as VideoStreamRequest; }
-        }
+        public VideoStreamRequest VideoRequest => Request as VideoStreamRequest;
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets the log file stream.
         /// Gets or sets the log file stream.
@@ -42,10 +39,7 @@ namespace MediaBrowser.Api.Playback
 
 
         public string WaitForPath { get; set; }
         public string WaitForPath { get; set; }
 
 
-        public bool IsOutputVideo
-        {
-            get { return Request is VideoStreamRequest; }
-        }
+        public bool IsOutputVideo => Request is VideoStreamRequest;
 
 
         public int SegmentLength
         public int SegmentLength
         {
         {
@@ -98,13 +92,7 @@ namespace MediaBrowser.Api.Playback
             }
             }
         }
         }
 
 
-        public int HlsListSize
-        {
-            get
-            {
-                return 0;
-            }
-        }
+        public int HlsListSize => 0;
 
 
         public string UserAgent { get; set; }
         public string UserAgent { get; set; }
 
 

+ 1 - 4
MediaBrowser.Api/ScheduledTasks/ScheduledTasksWebSocketListener.cs

@@ -24,10 +24,7 @@ namespace MediaBrowser.Api.ScheduledTasks
         /// Gets the name.
         /// Gets the name.
         /// </summary>
         /// </summary>
         /// <value>The name.</value>
         /// <value>The name.</value>
-        protected override string Name
-        {
-            get { return "ScheduledTasksInfo"; }
-        }
+        protected override string Name => "ScheduledTasksInfo";
 
 
         /// <summary>
         /// <summary>
         /// Initializes a new instance of the <see cref="ScheduledTasksWebSocketListener" /> class.
         /// Initializes a new instance of the <see cref="ScheduledTasksWebSocketListener" /> class.

+ 1 - 4
MediaBrowser.Api/Session/SessionInfoWebSocketListener.cs

@@ -17,10 +17,7 @@ namespace MediaBrowser.Api.Session
         /// Gets the name.
         /// Gets the name.
         /// </summary>
         /// </summary>
         /// <value>The name.</value>
         /// <value>The name.</value>
-        protected override string Name
-        {
-            get { return "Sessions"; }
-        }
+        protected override string Name => "Sessions";
 
 
         /// <summary>
         /// <summary>
         /// The _kernel
         /// The _kernel

+ 1 - 4
MediaBrowser.Api/System/ActivityLogWebSocketListener.cs

@@ -17,10 +17,7 @@ namespace MediaBrowser.Api.System
         /// Gets the name.
         /// Gets the name.
         /// </summary>
         /// </summary>
         /// <value>The name.</value>
         /// <value>The name.</value>
-        protected override string Name
-        {
-            get { return "ActivityLogEntry"; }
-        }
+        protected override string Name => "ActivityLogEntry";
 
 
         /// <summary>
         /// <summary>
         /// The _kernel
         /// The _kernel

+ 4 - 10
MediaBrowser.Common/Net/HttpRequestOptions.cs

@@ -24,11 +24,8 @@ namespace MediaBrowser.Common.Net
         /// <value>The accept header.</value>
         /// <value>The accept header.</value>
         public string AcceptHeader
         public string AcceptHeader
         {
         {
-            get { return GetHeaderValue("Accept"); }
-            set
-            {
-                RequestHeaders["Accept"] = value;
-            }
+            get => GetHeaderValue("Accept");
+            set => RequestHeaders["Accept"] = value;
         }
         }
         /// <summary>
         /// <summary>
         /// Gets or sets the cancellation token.
         /// Gets or sets the cancellation token.
@@ -48,11 +45,8 @@ namespace MediaBrowser.Common.Net
         /// <value>The user agent.</value>
         /// <value>The user agent.</value>
         public string UserAgent
         public string UserAgent
         {
         {
-            get { return GetHeaderValue("User-Agent"); }
-            set
-            {
-                RequestHeaders["User-Agent"] = value;
-            }
+            get => GetHeaderValue("User-Agent");
+            set => RequestHeaders["User-Agent"] = value;
         }
         }
 
 
         /// <summary>
         /// <summary>

+ 7 - 34
MediaBrowser.Common/Plugins/BasePlugin.cs

@@ -18,10 +18,7 @@ namespace MediaBrowser.Common.Plugins
         /// Gets the description.
         /// Gets the description.
         /// </summary>
         /// </summary>
         /// <value>The description.</value>
         /// <value>The description.</value>
-        public virtual string Description
-        {
-            get { return string.Empty; }
-        }
+        public virtual string Description => string.Empty;
 
 
         /// <summary>
         /// <summary>
         /// Gets the unique id.
         /// Gets the unique id.
@@ -108,10 +105,7 @@ namespace MediaBrowser.Common.Plugins
         /// Gets the type of configuration this plugin uses
         /// Gets the type of configuration this plugin uses
         /// </summary>
         /// </summary>
         /// <value>The type of the configuration.</value>
         /// <value>The type of the configuration.</value>
-        public Type ConfigurationType
-        {
-            get { return typeof(TConfigurationType); }
-        }
+        public Type ConfigurationType => typeof(TConfigurationType);
 
 
         private Action<string> _directoryCreateFn;
         private Action<string> _directoryCreateFn;
         public void SetStartupInfo(Action<string> directoryCreateFn)
         public void SetStartupInfo(Action<string> directoryCreateFn)
@@ -124,13 +118,7 @@ namespace MediaBrowser.Common.Plugins
         /// Gets the name the assembly file
         /// Gets the name the assembly file
         /// </summary>
         /// </summary>
         /// <value>The name of the assembly file.</value>
         /// <value>The name of the assembly file.</value>
-        protected string AssemblyFileName
-        {
-            get
-            {
-                return Path.GetFileName(AssemblyFilePath);
-            }
-        }
+        protected string AssemblyFileName => Path.GetFileName(AssemblyFilePath);
 
 
         /// <summary>
         /// <summary>
         /// The _configuration sync lock
         /// The _configuration sync lock
@@ -161,10 +149,7 @@ namespace MediaBrowser.Common.Plugins
                 }
                 }
                 return _configuration;
                 return _configuration;
             }
             }
-            protected set
-            {
-                _configuration = value;
-            }
+            protected set => _configuration = value;
         }
         }
 
 
         private TConfigurationType LoadConfiguration()
         private TConfigurationType LoadConfiguration()
@@ -185,22 +170,13 @@ namespace MediaBrowser.Common.Plugins
         /// Gets the name of the configuration file. Subclasses should override
         /// Gets the name of the configuration file. Subclasses should override
         /// </summary>
         /// </summary>
         /// <value>The name of the configuration file.</value>
         /// <value>The name of the configuration file.</value>
-        public virtual string ConfigurationFileName
-        {
-            get { return Path.ChangeExtension(AssemblyFileName, ".xml"); }
-        }
+        public virtual string ConfigurationFileName => Path.ChangeExtension(AssemblyFileName, ".xml");
 
 
         /// <summary>
         /// <summary>
         /// Gets the full path to the configuration file
         /// Gets the full path to the configuration file
         /// </summary>
         /// </summary>
         /// <value>The configuration file path.</value>
         /// <value>The configuration file path.</value>
-        public string ConfigurationFilePath
-        {
-            get
-            {
-                return Path.Combine(ApplicationPaths.PluginConfigurationsPath, ConfigurationFileName);
-            }
-        }
+        public string ConfigurationFilePath => Path.Combine(ApplicationPaths.PluginConfigurationsPath, ConfigurationFileName);
 
 
         /// <summary>
         /// <summary>
         /// Initializes a new instance of the <see cref="BasePlugin{TConfigurationType}" /> class.
         /// Initializes a new instance of the <see cref="BasePlugin{TConfigurationType}" /> class.
@@ -253,10 +229,7 @@ namespace MediaBrowser.Common.Plugins
         /// Gets the plugin's configuration
         /// Gets the plugin's configuration
         /// </summary>
         /// </summary>
         /// <value>The configuration.</value>
         /// <value>The configuration.</value>
-        BasePluginConfiguration IHasPluginConfiguration.Configuration
-        {
-            get { return Configuration; }
-        }
+        BasePluginConfiguration IHasPluginConfiguration.Configuration => Configuration;
 
 
         public override PluginInfo GetPluginInfo()
         public override PluginInfo GetPluginInfo()
         {
         {

+ 2 - 11
MediaBrowser.Controller/Channels/Channel.cs

@@ -31,19 +31,10 @@ namespace MediaBrowser.Controller.Channels
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsInheritedParentImages => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override SourceType SourceType
-        {
-            get { return SourceType.Channel; }
-        }
+        public override SourceType SourceType => SourceType.Channel;
 
 
         protected override QueryResult<BaseItem> GetItemsInternal(InternalItemsQuery query)
         protected override QueryResult<BaseItem> GetItemsInternal(InternalItemsQuery query)
         {
         {

+ 4 - 22
MediaBrowser.Controller/Entities/AggregateFolder.cs

@@ -24,10 +24,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool IsPhysicalRoot
-        {
-            get { return true; }
-        }
+        public override bool IsPhysicalRoot => true;
 
 
         public override bool CanDelete()
         public override bool CanDelete()
         {
         {
@@ -35,13 +32,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPlayedStatus
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPlayedStatus => false;
 
 
         /// <summary>
         /// <summary>
         /// The _virtual children
         /// The _virtual children
@@ -52,19 +43,10 @@ namespace MediaBrowser.Controller.Entities
         /// Gets the virtual children.
         /// Gets the virtual children.
         /// </summary>
         /// </summary>
         /// <value>The virtual children.</value>
         /// <value>The virtual children.</value>
-        public ConcurrentBag<BaseItem> VirtualChildren
-        {
-            get { return _virtualChildren; }
-        }
+        public ConcurrentBag<BaseItem> VirtualChildren => _virtualChildren;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string[] PhysicalLocations
-        {
-            get
-            {
-                return PhysicalLocationsList;
-            }
-        }
+        public override string[] PhysicalLocations => PhysicalLocationsList;
 
 
         public string[] PhysicalLocationsList { get; set; }
         public string[] PhysicalLocationsList { get; set; }
 
 

+ 8 - 44
MediaBrowser.Controller/Entities/Audio/Audio.cs

@@ -41,49 +41,22 @@ namespace MediaBrowser.Controller.Entities.Audio
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPlayedStatus
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool SupportsPlayedStatus => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get { return false; }
-        }
+        public override bool SupportsPeople => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAddingToPlaylist
-        {
-            get { return true; }
-        }
+        public override bool SupportsAddingToPlaylist => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get { return true; }
-        }
+        public override bool SupportsInheritedParentImages => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        protected override bool SupportsOwnedItems
-        {
-            get
-            {
-                return false;
-            }
-        }
+        protected override bool SupportsOwnedItems => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override Folder LatestItemsIndexContainer
-        {
-            get
-            {
-                return AlbumEntity;
-            }
-        }
+        public override Folder LatestItemsIndexContainer => AlbumEntity;
 
 
         public override bool CanDownload()
         public override bool CanDownload()
         {
         {
@@ -115,23 +88,14 @@ namespace MediaBrowser.Controller.Entities.Audio
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public MusicAlbum AlbumEntity
-        {
-            get { return FindParent<MusicAlbum>(); }
-        }
+        public MusicAlbum AlbumEntity => FindParent<MusicAlbum>();
 
 
         /// <summary>
         /// <summary>
         /// Gets the type of the media.
         /// Gets the type of the media.
         /// </summary>
         /// </summary>
         /// <value>The type of the media.</value>
         /// <value>The type of the media.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string MediaType
-        {
-            get
-            {
-                return Model.Entities.MediaType.Audio;
-            }
-        }
+        public override string MediaType => Model.Entities.MediaType.Audio;
 
 
         /// <summary>
         /// <summary>
         /// Creates the name of the sort.
         /// Creates the name of the sort.

+ 8 - 41
MediaBrowser.Controller/Entities/Audio/MusicAlbum.cs

@@ -28,22 +28,13 @@ namespace MediaBrowser.Controller.Entities.Audio
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAddingToPlaylist
-        {
-            get { return true; }
-        }
+        public override bool SupportsAddingToPlaylist => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get { return true; }
-        }
+        public override bool SupportsInheritedParentImages => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public MusicArtist MusicArtist
-        {
-            get { return GetMusicArtist(new DtoOptions(true)); }
-        }
+        public MusicArtist MusicArtist => GetMusicArtist(new DtoOptions(true));
 
 
         public MusicArtist GetMusicArtist(DtoOptions options)
         public MusicArtist GetMusicArtist(DtoOptions options)
         {
         {
@@ -66,22 +57,10 @@ namespace MediaBrowser.Controller.Entities.Audio
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPlayedStatus
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPlayedStatus => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsCumulativeRunTimeTicks
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool SupportsCumulativeRunTimeTicks => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
         public string[] AllArtists
         public string[] AllArtists
@@ -107,29 +86,17 @@ namespace MediaBrowser.Controller.Entities.Audio
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public string AlbumArtist
-        {
-            get { return AlbumArtists.Length == 0 ? null : AlbumArtists[0]; }
-        }
+        public string AlbumArtist => AlbumArtists.Length == 0 ? null : AlbumArtists[0];
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get { return false; }
-        }
+        public override bool SupportsPeople => false;
 
 
         /// <summary>
         /// <summary>
         /// Gets the tracks.
         /// Gets the tracks.
         /// </summary>
         /// </summary>
         /// <value>The tracks.</value>
         /// <value>The tracks.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public IEnumerable<BaseItem> Tracks
-        {
-            get
-            {
-                return GetRecursiveChildren(i => i is Audio);
-            }
-        }
+        public IEnumerable<BaseItem> Tracks => GetRecursiveChildren(i => i is Audio);
 
 
         protected override IEnumerable<BaseItem> GetEligibleChildrenForRecursiveChildren(User user)
         protected override IEnumerable<BaseItem> GetEligibleChildrenForRecursiveChildren(User user)
         {
         {

+ 9 - 57
MediaBrowser.Controller/Entities/Audio/MusicArtist.cs

@@ -19,61 +19,25 @@ namespace MediaBrowser.Controller.Entities.Audio
     public class MusicArtist : Folder, IItemByName, IHasMusicGenres, IHasDualAccess, IHasLookupInfo<ArtistInfo>
     public class MusicArtist : Folder, IItemByName, IHasMusicGenres, IHasDualAccess, IHasLookupInfo<ArtistInfo>
     {
     {
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsAccessedByName
-        {
-            get { return ParentId.Equals(Guid.Empty); }
-        }
+        public bool IsAccessedByName => ParentId.Equals(Guid.Empty);
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool IsFolder
-        {
-            get
-            {
-                return !IsAccessedByName;
-            }
-        }
+        public override bool IsFolder => !IsAccessedByName;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsInheritedParentImages => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsCumulativeRunTimeTicks
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool SupportsCumulativeRunTimeTicks => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool IsDisplayedAsFolder
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool IsDisplayedAsFolder => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAddingToPlaylist
-        {
-            get { return true; }
-        }
+        public override bool SupportsAddingToPlaylist => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPlayedStatus
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPlayedStatus => false;
 
 
         public override double GetDefaultPrimaryImageAspectRatio()
         public override double GetDefaultPrimaryImageAspectRatio()
         {
         {
@@ -154,13 +118,7 @@ namespace MediaBrowser.Controller.Entities.Audio
         /// </summary>
         /// </summary>
         /// <value>The containing folder path.</value>
         /// <value>The containing folder path.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string ContainingFolderPath
-        {
-            get
-            {
-                return Path;
-            }
-        }
+        public override string ContainingFolderPath => Path;
 
 
         /// <summary>
         /// <summary>
         /// Gets the user data key.
         /// Gets the user data key.
@@ -207,13 +165,7 @@ namespace MediaBrowser.Controller.Entities.Audio
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPeople => false;
 
 
         public static string GetPath(string name)
         public static string GetPath(string name)
         {
         {

+ 5 - 32
MediaBrowser.Controller/Entities/Audio/MusicGenre.cs

@@ -24,28 +24,13 @@ namespace MediaBrowser.Controller.Entities.Audio
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAddingToPlaylist
-        {
-            get { return true; }
-        }
+        public override bool SupportsAddingToPlaylist => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAncestors
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsAncestors => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool IsDisplayedAsFolder
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool IsDisplayedAsFolder => true;
 
 
         /// <summary>
         /// <summary>
         /// Returns the folder containing the item.
         /// Returns the folder containing the item.
@@ -53,13 +38,7 @@ namespace MediaBrowser.Controller.Entities.Audio
         /// </summary>
         /// </summary>
         /// <value>The containing folder path.</value>
         /// <value>The containing folder path.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string ContainingFolderPath
-        {
-            get
-            {
-                return Path;
-            }
-        }
+        public override string ContainingFolderPath => Path;
 
 
         public override double GetDefaultPrimaryImageAspectRatio()
         public override double GetDefaultPrimaryImageAspectRatio()
         {
         {
@@ -77,13 +56,7 @@ namespace MediaBrowser.Controller.Entities.Audio
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPeople => false;
 
 
         public IList<BaseItem> GetTaggedItems(InternalItemsQuery query)
         public IList<BaseItem> GetTaggedItems(InternalItemsQuery query)
         {
         {

+ 2 - 14
MediaBrowser.Controller/Entities/AudioBook.cs

@@ -8,22 +8,10 @@ namespace MediaBrowser.Controller.Entities
     public class AudioBook : Audio.Audio, IHasSeries, IHasLookupInfo<SongInfo>
     public class AudioBook : Audio.Audio, IHasSeries, IHasLookupInfo<SongInfo>
     {
     {
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPositionTicksResume
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool SupportsPositionTicksResume => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPlayedStatus
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool SupportsPlayedStatus => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
         public string SeriesPresentationUniqueKey { get; set; }
         public string SeriesPresentationUniqueKey { get; set; }

+ 30 - 165
MediaBrowser.Controller/Entities/BaseItem.cs

@@ -108,19 +108,10 @@ namespace MediaBrowser.Controller.Entities
         public Guid ChannelId { get; set; }
         public Guid ChannelId { get; set; }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool SupportsAddingToPlaylist
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public virtual bool SupportsAddingToPlaylist => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool AlwaysScanInternalMetadataPath
-        {
-            get { return false; }
-        }
+        public virtual bool AlwaysScanInternalMetadataPath => false;
 
 
         /// <summary>
         /// <summary>
         /// Gets a value indicating whether this instance is in mixed folder.
         /// Gets a value indicating whether this instance is in mixed folder.
@@ -130,31 +121,13 @@ namespace MediaBrowser.Controller.Entities
         public bool IsInMixedFolder { get; set; }
         public bool IsInMixedFolder { get; set; }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool SupportsPlayedStatus
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public virtual bool SupportsPlayedStatus => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool SupportsPositionTicksResume
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public virtual bool SupportsPositionTicksResume => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool SupportsRemoteImageDownloading
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public virtual bool SupportsRemoteImageDownloading => true;
 
 
         private string _name;
         private string _name;
         /// <summary>
         /// <summary>
@@ -164,10 +137,7 @@ namespace MediaBrowser.Controller.Entities
         [IgnoreDataMember]
         [IgnoreDataMember]
         public virtual string Name
         public virtual string Name
         {
         {
-            get
-            {
-                return _name;
-            }
+            get => _name;
             set
             set
             {
             {
                 _name = value;
                 _name = value;
@@ -178,10 +148,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsUnaired
-        {
-            get { return PremiereDate.HasValue && PremiereDate.Value.ToLocalTime().Date >= DateTime.Now.Date; }
-        }
+        public bool IsUnaired => PremiereDate.HasValue && PremiereDate.Value.ToLocalTime().Date >= DateTime.Now.Date;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
         public int? TotalBitrate { get; set; }
         public int? TotalBitrate { get; set; }
@@ -189,13 +156,7 @@ namespace MediaBrowser.Controller.Entities
         public ExtraType? ExtraType { get; set; }
         public ExtraType? ExtraType { get; set; }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsThemeMedia
-        {
-            get
-            {
-                return ExtraType.HasValue && (ExtraType.Value == Model.Entities.ExtraType.ThemeSong || ExtraType.Value == Model.Entities.ExtraType.ThemeVideo);
-            }
-        }
+        public bool IsThemeMedia => ExtraType.HasValue && (ExtraType.Value == Model.Entities.ExtraType.ThemeSong || ExtraType.Value == Model.Entities.ExtraType.ThemeVideo);
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
         public string OriginalTitle { get; set; }
         public string OriginalTitle { get; set; }
@@ -295,13 +256,7 @@ namespace MediaBrowser.Controller.Entities
         public string ExternalEtag { get; set; }
         public string ExternalEtag { get; set; }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool IsHidden
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public virtual bool IsHidden => false;
 
 
         public BaseItem GetOwner()
         public BaseItem GetOwner()
         {
         {
@@ -362,22 +317,10 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsFileProtocol
-        {
-            get
-            {
-                return IsPathProtocol(MediaProtocol.File);
-            }
-        }
+        public bool IsFileProtocol => IsPathProtocol(MediaProtocol.File);
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool HasPathProtocol
-        {
-            get
-            {
-                return PathProtocol.HasValue;
-            }
-        }
+        public bool HasPathProtocol => PathProtocol.HasValue;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
         public virtual bool SupportsLocalMetadata
         public virtual bool SupportsLocalMetadata
@@ -408,13 +351,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool EnableAlphaNumericSorting
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public virtual bool EnableAlphaNumericSorting => true;
 
 
         private List<Tuple<StringBuilder, bool>> GetSortChunks(string s1)
         private List<Tuple<StringBuilder, bool>> GetSortChunks(string s1)
         {
         {
@@ -455,10 +392,7 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The primary image path.</value>
         /// <value>The primary image path.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public string PrimaryImagePath
-        {
-            get { return this.GetImagePath(ImageType.Primary); }
-        }
+        public string PrimaryImagePath => this.GetImagePath(ImageType.Primary);
 
 
         public bool IsMetadataFetcherEnabled(LibraryOptions libraryOptions, string name)
         public bool IsMetadataFetcherEnabled(LibraryOptions libraryOptions, string name)
         {
         {
@@ -637,13 +571,7 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The type of the media.</value>
         /// <value>The type of the media.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual string MediaType
-        {
-            get
-            {
-                return null;
-            }
-        }
+        public virtual string MediaType => null;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
         public virtual string[] PhysicalLocations
         public virtual string[] PhysicalLocations
@@ -667,7 +595,7 @@ namespace MediaBrowser.Controller.Entities
         [IgnoreDataMember]
         [IgnoreDataMember]
         public string ForcedSortName
         public string ForcedSortName
         {
         {
-            get { return _forcedSortName; }
+            get => _forcedSortName;
             set { _forcedSortName = value; _sortName = null; }
             set { _forcedSortName = value; _sortName = null; }
         }
         }
 
 
@@ -695,10 +623,7 @@ namespace MediaBrowser.Controller.Entities
                 }
                 }
                 return _sortName;
                 return _sortName;
             }
             }
-            set
-            {
-                _sortName = value;
-            }
+            set => _sortName = value;
         }
         }
 
 
         public string GetInternalMetadataPath()
         public string GetInternalMetadataPath()
@@ -816,7 +741,7 @@ namespace MediaBrowser.Controller.Entities
         [IgnoreDataMember]
         [IgnoreDataMember]
         public Folder Parent
         public Folder Parent
         {
         {
-            get { return GetParent() as Folder; }
+            get => GetParent() as Folder;
             set
             set
             {
             {
 
 
@@ -1007,10 +932,7 @@ namespace MediaBrowser.Controller.Entities
         public int? ParentIndexNumber { get; set; }
         public int? ParentIndexNumber { get; set; }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool HasLocalAlternateVersions
-        {
-            get { return false; }
-        }
+        public virtual bool HasLocalAlternateVersions => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
         public string OfficialRatingForComparison
         public string OfficialRatingForComparison
@@ -1426,22 +1348,13 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        protected virtual bool SupportsOwnedItems
-        {
-            get { return !ParentId.Equals(Guid.Empty) && IsFileProtocol; }
-        }
+        protected virtual bool SupportsOwnedItems => !ParentId.Equals(Guid.Empty) && IsFileProtocol;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool SupportsPeople
-        {
-            get { return false; }
-        }
+        public virtual bool SupportsPeople => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool SupportsThemeMedia
-        {
-            get { return false; }
-        }
+        public virtual bool SupportsThemeMedia => false;
 
 
         /// <summary>
         /// <summary>
         /// Refreshes owned items such as trailers, theme videos, special features, etc.
         /// Refreshes owned items such as trailers, theme videos, special features, etc.
@@ -1602,10 +1515,7 @@ namespace MediaBrowser.Controller.Entities
         public Dictionary<string, string> ProviderIds { get; set; }
         public Dictionary<string, string> ProviderIds { get; set; }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual Folder LatestItemsIndexContainer
-        {
-            get { return null; }
-        }
+        public virtual Folder LatestItemsIndexContainer => null;
 
 
         public virtual double GetDefaultPrimaryImageAspectRatio()
         public virtual double GetDefaultPrimaryImageAspectRatio()
         {
         {
@@ -1923,10 +1833,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool SupportsInheritedParentImages
-        {
-            get { return false; }
-        }
+        public virtual bool SupportsInheritedParentImages => false;
 
 
         protected bool IsVisibleStandaloneInternal(User user, bool checkFolders)
         protected bool IsVisibleStandaloneInternal(User user, bool checkFolders)
         {
         {
@@ -1969,22 +1876,10 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool IsFolder
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public virtual bool IsFolder => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool IsDisplayedAsFolder
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public virtual bool IsDisplayedAsFolder => false;
 
 
         public virtual string GetClientTypeName()
         public virtual string GetClientTypeName()
         {
         {
@@ -2070,13 +1965,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool EnableRememberingTrackSelections
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public virtual bool EnableRememberingTrackSelections => true;
 
 
         /// <summary>
         /// <summary>
         /// Adds a studio to the item
         /// Adds a studio to the item
@@ -2813,22 +2702,10 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool SupportsAncestors
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public virtual bool SupportsAncestors => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool StopRefreshIfLocalMetadataFound
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public virtual bool StopRefreshIfLocalMetadataFound => true;
 
 
         public virtual IEnumerable<Guid> GetIdsForAncestorQuery()
         public virtual IEnumerable<Guid> GetIdsForAncestorQuery()
         {
         {
@@ -2915,13 +2792,7 @@ namespace MediaBrowser.Controller.Entities
             return GetExtras();
             return GetExtras();
         }
         }
 
 
-        public virtual bool IsHD
-        {
-            get
-            {
-                return Height >= 720;
-            }
-        }
+        public virtual bool IsHD => Height >= 720;
         public bool IsShortcut { get; set; }
         public bool IsShortcut { get; set; }
         public string ShortcutPath { get; set; }
         public string ShortcutPath { get; set; }
         public int Width { get; set; }
         public int Width { get; set; }
@@ -2933,12 +2804,6 @@ namespace MediaBrowser.Controller.Entities
         }
         }
         // what does this do?
         // what does this do?
         public static ExtraType[] DisplayExtraTypes = new[] { Model.Entities.ExtraType.ThemeSong, Model.Entities.ExtraType.ThemeVideo };
         public static ExtraType[] DisplayExtraTypes = new[] { Model.Entities.ExtraType.ThemeSong, Model.Entities.ExtraType.ThemeVideo };
-        public virtual bool SupportsExternalTransfer
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public virtual bool SupportsExternalTransfer => false;
     }
     }
 }
 }

+ 3 - 18
MediaBrowser.Controller/Entities/BasePluginFolder.cs

@@ -10,10 +10,7 @@ namespace MediaBrowser.Controller.Entities
     public abstract class BasePluginFolder : Folder, ICollectionFolder
     public abstract class BasePluginFolder : Folder, ICollectionFolder
     {
     {
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual string CollectionType
-        {
-            get { return null; }
-        }
+        public virtual string CollectionType => null;
 
 
         public override bool CanDelete()
         public override bool CanDelete()
         {
         {
@@ -26,22 +23,10 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsInheritedParentImages => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPeople => false;
 
 
         //public override double? GetDefaultPrimaryImageAspectRatio()
         //public override double? GetDefaultPrimaryImageAspectRatio()
         //{
         //{

+ 1 - 7
MediaBrowser.Controller/Entities/Book.cs

@@ -9,13 +9,7 @@ namespace MediaBrowser.Controller.Entities
     public class Book : BaseItem, IHasLookupInfo<BookInfo>, IHasSeries
     public class Book : BaseItem, IHasLookupInfo<BookInfo>, IHasSeries
     {
     {
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string MediaType
-        {
-            get
-            {
-                return Model.Entities.MediaType.Book;
-            }
-        }
+        public override string MediaType => Model.Entities.MediaType.Book;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
         public string SeriesPresentationUniqueKey { get; set; }
         public string SeriesPresentationUniqueKey { get; set; }

+ 6 - 39
MediaBrowser.Controller/Entities/CollectionFolder.cs

@@ -34,22 +34,10 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPlayedStatus
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPlayedStatus => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsInheritedParentImages => false;
 
 
         public override bool CanDelete()
         public override bool CanDelete()
         {
         {
@@ -158,22 +146,10 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The display prefs id.</value>
         /// <value>The display prefs id.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override Guid DisplayPreferencesId
-        {
-            get
-            {
-                return Id;
-            }
-        }
+        public override Guid DisplayPreferencesId => Id;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string[] PhysicalLocations
-        {
-            get
-            {
-                return PhysicalLocationsList;
-            }
-        }
+        public override string[] PhysicalLocations => PhysicalLocationsList;
 
 
         public override bool IsSaveLocalMetadataEnabled()
         public override bool IsSaveLocalMetadataEnabled()
         {
         {
@@ -337,10 +313,7 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The actual children.</value>
         /// <value>The actual children.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override IEnumerable<BaseItem> Children
-        {
-            get { return GetActualChildren(); }
-        }
+        public override IEnumerable<BaseItem> Children => GetActualChildren();
 
 
         public IEnumerable<BaseItem> GetActualChildren()
         public IEnumerable<BaseItem> GetActualChildren()
         {
         {
@@ -386,12 +359,6 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPeople => false;
     }
     }
 }
 }

+ 14 - 83
MediaBrowser.Controller/Entities/Folder.cs

@@ -47,80 +47,35 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsThemeMedia
-        {
-            get { return true; }
-        }
+        public override bool SupportsThemeMedia => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool IsPreSorted
-        {
-            get { return false; }
-        }
+        public virtual bool IsPreSorted => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool IsPhysicalRoot
-        {
-            get { return false; }
-        }
+        public virtual bool IsPhysicalRoot => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool SupportsInheritedParentImages => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPlayedStatus
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool SupportsPlayedStatus => true;
 
 
         /// <summary>
         /// <summary>
         /// Gets a value indicating whether this instance is folder.
         /// Gets a value indicating whether this instance is folder.
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool IsFolder
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool IsFolder => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool IsDisplayedAsFolder
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool IsDisplayedAsFolder => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool SupportsCumulativeRunTimeTicks
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public virtual bool SupportsCumulativeRunTimeTicks => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual bool SupportsDateLastMediaAdded
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public virtual bool SupportsDateLastMediaAdded => false;
 
 
         public override bool CanDelete()
         public override bool CanDelete()
         {
         {
@@ -172,10 +127,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        protected virtual bool SupportsShortcutChildren
-        {
-            get { return false; }
-        }
+        protected virtual bool SupportsShortcutChildren => false;
 
 
         /// <summary>
         /// <summary>
         /// Adds the child.
         /// Adds the child.
@@ -210,23 +162,14 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The actual children.</value>
         /// <value>The actual children.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public virtual IEnumerable<BaseItem> Children
-        {
-            get
-            {
-                return LoadChildren();
-            }
-        }
+        public virtual IEnumerable<BaseItem> Children => LoadChildren();
 
 
         /// <summary>
         /// <summary>
         /// thread-safe access to all recursive children of this folder - without regard to user
         /// thread-safe access to all recursive children of this folder - without regard to user
         /// </summary>
         /// </summary>
         /// <value>The recursive children.</value>
         /// <value>The recursive children.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public IEnumerable<BaseItem> RecursiveChildren
-        {
-            get { return GetRecursiveChildren(); }
-        }
+        public IEnumerable<BaseItem> RecursiveChildren => GetRecursiveChildren();
 
 
         public override bool IsVisible(User user)
         public override bool IsVisible(User user)
         {
         {
@@ -1421,13 +1364,7 @@ namespace MediaBrowser.Controller.Entities
             return list;
             return list;
         }
         }
 
 
-        protected virtual bool FilterLinkedChildrenPerUser
-        {
-            get
-            {
-                return false;
-            }
-        }
+        protected virtual bool FilterLinkedChildrenPerUser => false;
 
 
         public bool ContainsLinkedChildByItemId(Guid itemId)
         public bool ContainsLinkedChildByItemId(Guid itemId)
         {
         {
@@ -1524,13 +1461,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        protected override bool SupportsOwnedItems
-        {
-            get
-            {
-                return base.SupportsOwnedItems || SupportsShortcutChildren;
-            }
-        }
+        protected override bool SupportsOwnedItems => base.SupportsOwnedItems || SupportsShortcutChildren;
 
 
         protected override async Task<bool> RefreshedOwnedItems(MetadataRefreshOptions options, List<FileSystemMetadata> fileSystemChildren, CancellationToken cancellationToken)
         protected override async Task<bool> RefreshedOwnedItems(MetadataRefreshOptions options, List<FileSystemMetadata> fileSystemChildren, CancellationToken cancellationToken)
         {
         {

+ 3 - 12
MediaBrowser.Controller/Entities/Game.cs

@@ -27,26 +27,17 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsThemeMedia
-        {
-            get { return true; }
-        }
+        public override bool SupportsThemeMedia => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get { return false; }
-        }
+        public override bool SupportsPeople => false;
 
 
         /// <summary>
         /// <summary>
         /// Gets the type of the media.
         /// Gets the type of the media.
         /// </summary>
         /// </summary>
         /// <value>The type of the media.</value>
         /// <value>The type of the media.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string MediaType
-        {
-            get { return Model.Entities.MediaType.Game; }
-        }
+        public override string MediaType => Model.Entities.MediaType.Game;
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets the players supported.
         /// Gets or sets the players supported.

+ 3 - 21
MediaBrowser.Controller/Entities/GameGenre.cs

@@ -32,22 +32,10 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The containing folder path.</value>
         /// <value>The containing folder path.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string ContainingFolderPath
-        {
-            get
-            {
-                return Path;
-            }
-        }
+        public override string ContainingFolderPath => Path;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAncestors
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsAncestors => false;
 
 
         public override bool IsSaveLocalMetadataEnabled()
         public override bool IsSaveLocalMetadataEnabled()
         {
         {
@@ -68,13 +56,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPeople => false;
 
 
         public static string GetPath(string name)
         public static string GetPath(string name)
         {
         {

+ 4 - 28
MediaBrowser.Controller/Entities/GameSystem.cs

@@ -18,31 +18,13 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The display prefs id.</value>
         /// <value>The display prefs id.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override Guid DisplayPreferencesId
-        {
-            get
-            {
-                return Id;
-            }
-        }
+        public override Guid DisplayPreferencesId => Id;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPlayedStatus
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPlayedStatus => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsInheritedParentImages => false;
 
 
         public override double GetDefaultPrimaryImageAspectRatio()
         public override double GetDefaultPrimaryImageAspectRatio()
         {
         {
@@ -90,12 +72,6 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPeople => false;
     }
     }
 }
 }

+ 4 - 28
MediaBrowser.Controller/Entities/Genre.cs

@@ -35,31 +35,13 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The containing folder path.</value>
         /// <value>The containing folder path.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string ContainingFolderPath
-        {
-            get
-            {
-                return Path;
-            }
-        }
+        public override string ContainingFolderPath => Path;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool IsDisplayedAsFolder
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool IsDisplayedAsFolder => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAncestors
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsAncestors => false;
 
 
         public override bool IsSaveLocalMetadataEnabled()
         public override bool IsSaveLocalMetadataEnabled()
         {
         {
@@ -80,13 +62,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPeople => false;
 
 
         public static string GetPath(string name)
         public static string GetPath(string name)
         {
         {

+ 4 - 25
MediaBrowser.Controller/Entities/Movies/BoxSet.cs

@@ -25,28 +25,13 @@ namespace MediaBrowser.Controller.Entities.Movies
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        protected override bool FilterLinkedChildrenPerUser
-        {
-            get
-            {
-                return true;
-            }
-        }
+        protected override bool FilterLinkedChildrenPerUser => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsInheritedParentImages => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get { return true; }
-        }
+        public override bool SupportsPeople => true;
 
 
         public Guid[] LocalTrailerIds { get; set; }
         public Guid[] LocalTrailerIds { get; set; }
         public Guid[] RemoteTrailerIds { get; set; }
         public Guid[] RemoteTrailerIds { get; set; }
@@ -110,13 +95,7 @@ namespace MediaBrowser.Controller.Entities.Movies
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool IsPreSorted
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool IsPreSorted => true;
 
 
         public override bool IsAuthorizedToDelete(User user, List<Folder> allCollectionFolders)
         public override bool IsAuthorizedToDelete(User user, List<Folder> allCollectionFolders)
         {
         {

+ 3 - 10
MediaBrowser.Controller/Entities/Movies/Movie.cs

@@ -39,8 +39,8 @@ namespace MediaBrowser.Controller.Entities.Movies
         [IgnoreDataMember]
         [IgnoreDataMember]
         public string CollectionName
         public string CollectionName
         {
         {
-            get { return TmdbCollectionName; }
-            set { TmdbCollectionName = value; }
+            get => TmdbCollectionName;
+            set => TmdbCollectionName = value;
         }
         }
 
 
         public override double GetDefaultPrimaryImageAspectRatio()
         public override double GetDefaultPrimaryImageAspectRatio()
@@ -184,13 +184,6 @@ namespace MediaBrowser.Controller.Entities.Movies
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool StopRefreshIfLocalMetadataFound
-        {
-            get
-            {
-                // Need people id's from internet metadata
-                return false;
-            }
-        }
+        public override bool StopRefreshIfLocalMetadataFound => false;
     }
     }
 }
 }

+ 1 - 7
MediaBrowser.Controller/Entities/MusicVideo.cs

@@ -17,13 +17,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public string[] AllArtists
-        {
-            get
-            {
-                return Artists;
-            }
-        }
+        public string[] AllArtists => Artists;
 
 
         public override UnratedItem GetBlockUnratedType()
         public override UnratedItem GetBlockUnratedType()
         {
         {

+ 4 - 28
MediaBrowser.Controller/Entities/Person.cs

@@ -51,13 +51,7 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The containing folder path.</value>
         /// <value>The containing folder path.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string ContainingFolderPath
-        {
-            get
-            {
-                return Path;
-            }
-        }
+        public override string ContainingFolderPath => Path;
 
 
         public override bool CanDelete()
         public override bool CanDelete()
         {
         {
@@ -70,31 +64,13 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool EnableAlphaNumericSorting
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool EnableAlphaNumericSorting => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPeople => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAncestors
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsAncestors => false;
 
 
         public static string GetPath(string name)
         public static string GetPath(string name)
         {
         {

+ 3 - 21
MediaBrowser.Controller/Entities/Photo.cs

@@ -6,31 +6,13 @@ namespace MediaBrowser.Controller.Entities
     public class Photo : BaseItem
     public class Photo : BaseItem
     {
     {
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsLocalMetadata
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsLocalMetadata => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string MediaType
-        {
-            get
-            {
-                return Model.Entities.MediaType.Photo;
-            }
-        }
+        public override string MediaType => Model.Entities.MediaType.Photo;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override Folder LatestItemsIndexContainer
-        {
-            get
-            {
-                return AlbumEntity;
-            }
-        }
+        public override Folder LatestItemsIndexContainer => AlbumEntity;
 
 
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]

+ 3 - 21
MediaBrowser.Controller/Entities/PhotoAlbum.cs

@@ -5,30 +5,12 @@ namespace MediaBrowser.Controller.Entities
     public class PhotoAlbum : Folder
     public class PhotoAlbum : Folder
     {
     {
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool AlwaysScanInternalMetadataPath
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool AlwaysScanInternalMetadataPath => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPlayedStatus
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPlayedStatus => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsInheritedParentImages => false;
     }
     }
 }
 }

+ 4 - 28
MediaBrowser.Controller/Entities/Studio.cs

@@ -29,31 +29,13 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The containing folder path.</value>
         /// <value>The containing folder path.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string ContainingFolderPath
-        {
-            get
-            {
-                return Path;
-            }
-        }
+        public override string ContainingFolderPath => Path;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool IsDisplayedAsFolder
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool IsDisplayedAsFolder => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAncestors
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsAncestors => false;
 
 
         public override double GetDefaultPrimaryImageAspectRatio()
         public override double GetDefaultPrimaryImageAspectRatio()
         {
         {
@@ -81,13 +63,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPeople => false;
 
 
         public static string GetPath(string name)
         public static string GetPath(string name)
         {
         {

+ 9 - 57
MediaBrowser.Controller/Entities/TV/Episode.cs

@@ -47,61 +47,25 @@ namespace MediaBrowser.Controller.Entities.TV
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        protected override bool SupportsOwnedItems
-        {
-            get
-            {
-                return IsStacked || MediaSourceCount > 1;
-            }
-        }
+        protected override bool SupportsOwnedItems => IsStacked || MediaSourceCount > 1;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get { return true; }
-        }
+        public override bool SupportsInheritedParentImages => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get { return true; }
-        }
+        public override bool SupportsPeople => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public int? AiredSeasonNumber
-        {
-            get
-            {
-                return AirsAfterSeasonNumber ?? AirsBeforeSeasonNumber ?? ParentIndexNumber;
-            }
-        }
+        public int? AiredSeasonNumber => AirsAfterSeasonNumber ?? AirsBeforeSeasonNumber ?? ParentIndexNumber;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override Folder LatestItemsIndexContainer
-        {
-            get
-            {
-                return Series;
-            }
-        }
+        public override Folder LatestItemsIndexContainer => Series;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override Guid DisplayParentId
-        {
-            get
-            {
-                return SeasonId;
-            }
-        }
+        public override Guid DisplayParentId => SeasonId;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        protected override bool EnableDefaultVideoUserDataKeys
-        {
-            get
-            {
-                return false;
-            }
-        }
+        protected override bool EnableDefaultVideoUserDataKeys => false;
 
 
         public override double GetDefaultPrimaryImageAspectRatio()
         public override double GetDefaultPrimaryImageAspectRatio()
         {
         {
@@ -166,13 +130,7 @@ namespace MediaBrowser.Controller.Entities.TV
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsInSeasonFolder
-        {
-            get
-            {
-                return FindParent<Season>() != null;
-            }
-        }
+        public bool IsInSeasonFolder => FindParent<Season>() != null;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
         public string SeriesPresentationUniqueKey { get; set; }
         public string SeriesPresentationUniqueKey { get; set; }
@@ -278,13 +236,7 @@ namespace MediaBrowser.Controller.Entities.TV
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsMissingEpisode
-        {
-            get
-            {
-                return LocationType == LocationType.Virtual;
-            }
-        }
+        public bool IsMissingEpisode => LocationType == LocationType.Virtual;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
         public Guid SeasonId { get; set; }
         public Guid SeasonId { get; set; }

+ 6 - 30
MediaBrowser.Controller/Entities/TV/Season.cs

@@ -16,46 +16,22 @@ namespace MediaBrowser.Controller.Entities.TV
     public class Season : Folder, IHasSeries, IHasLookupInfo<SeasonInfo>
     public class Season : Folder, IHasSeries, IHasLookupInfo<SeasonInfo>
     {
     {
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAddingToPlaylist
-        {
-            get { return true; }
-        }
+        public override bool SupportsAddingToPlaylist => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool IsPreSorted
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool IsPreSorted => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsDateLastMediaAdded
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsDateLastMediaAdded => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get { return true; }
-        }
+        public override bool SupportsPeople => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get { return true; }
-        }
+        public override bool SupportsInheritedParentImages => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override Guid DisplayParentId
-        {
-            get { return SeriesId; }
-        }
+        public override Guid DisplayParentId => SeriesId;
 
 
         public override double GetDefaultPrimaryImageAspectRatio()
         public override double GetDefaultPrimaryImageAspectRatio()
         {
         {

+ 6 - 37
MediaBrowser.Controller/Entities/TV/Series.cs

@@ -32,43 +32,19 @@ namespace MediaBrowser.Controller.Entities.TV
         public string AirTime { get; set; }
         public string AirTime { get; set; }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAddingToPlaylist
-        {
-            get { return true; }
-        }
+        public override bool SupportsAddingToPlaylist => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool IsPreSorted
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool IsPreSorted => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsDateLastMediaAdded
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool SupportsDateLastMediaAdded => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsInheritedParentImages => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get { return true; }
-        }
+        public override bool SupportsPeople => true;
 
 
         public Guid[] LocalTrailerIds { get; set; }
         public Guid[] LocalTrailerIds { get; set; }
         public Guid[] RemoteTrailerIds { get; set; }
         public Guid[] RemoteTrailerIds { get; set; }
@@ -526,13 +502,6 @@ namespace MediaBrowser.Controller.Entities.TV
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool StopRefreshIfLocalMetadataFound
-        {
-            get
-            {
-                // Need people id's from internet metadata
-                return false;
-            }
-        }
+        public override bool StopRefreshIfLocalMetadataFound => false;
     }
     }
 }
 }

+ 1 - 8
MediaBrowser.Controller/Entities/Trailer.cs

@@ -94,13 +94,6 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool StopRefreshIfLocalMetadataFound
-        {
-            get
-            {
-                // Need people id's from internet metadata
-                return false;
-            }
-        }
+        public override bool StopRefreshIfLocalMetadataFound => false;
     }
     }
 }
 }

+ 11 - 51
MediaBrowser.Controller/Entities/User.cs

@@ -40,14 +40,8 @@ namespace MediaBrowser.Controller.Entities
         // Strictly to remove IgnoreDataMember
         // Strictly to remove IgnoreDataMember
         public override ItemImageInfo[] ImageInfos
         public override ItemImageInfo[] ImageInfos
         {
         {
-            get
-            {
-                return base.ImageInfos;
-            }
-            set
-            {
-                base.ImageInfos = value;
-            }
+            get => base.ImageInfos;
+            set => base.ImageInfos = value;
         }
         }
 
 
         /// <summary>
         /// <summary>
@@ -57,15 +51,8 @@ namespace MediaBrowser.Controller.Entities
         [IgnoreDataMember]
         [IgnoreDataMember]
         public override string Path
         public override string Path
         {
         {
-            get
-            {
-                // Return this so that metadata providers will look in here
-                return ConfigurationDirectoryPath;
-            }
-            set
-            {
-                base.Path = value;
-            }
+            get => ConfigurationDirectoryPath;
+            set => base.Path = value;
         }
         }
 
 
         private string _name;
         private string _name;
@@ -75,10 +62,7 @@ namespace MediaBrowser.Controller.Entities
         /// <value>The name.</value>
         /// <value>The name.</value>
         public override string Name
         public override string Name
         {
         {
-            get
-            {
-                return _name;
-            }
+            get => _name;
             set
             set
             {
             {
                 _name = value;
                 _name = value;
@@ -94,26 +78,14 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The containing folder path.</value>
         /// <value>The containing folder path.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string ContainingFolderPath
-        {
-            get
-            {
-                return Path;
-            }
-        }
+        public override string ContainingFolderPath => Path;
 
 
         /// <summary>
         /// <summary>
         /// Gets the root folder.
         /// Gets the root folder.
         /// </summary>
         /// </summary>
         /// <value>The root folder.</value>
         /// <value>The root folder.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public Folder RootFolder
-        {
-            get
-            {
-                return LibraryManager.GetUserRootFolder();
-            }
-        }
+        public Folder RootFolder => LibraryManager.GetUserRootFolder();
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets the last login date.
         /// Gets or sets the last login date.
@@ -146,7 +118,7 @@ namespace MediaBrowser.Controller.Entities
 
 
                 return _config;
                 return _config;
             }
             }
-            set { _config = value; }
+            set => _config = value;
         }
         }
 
 
         private volatile UserPolicy _policy;
         private volatile UserPolicy _policy;
@@ -169,7 +141,7 @@ namespace MediaBrowser.Controller.Entities
 
 
                 return _policy;
                 return _policy;
             }
             }
-            set { _policy = value; }
+            set => _policy = value;
         }
         }
 
 
         /// <summary>
         /// <summary>
@@ -232,13 +204,7 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The configuration directory path.</value>
         /// <value>The configuration directory path.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public string ConfigurationDirectoryPath
-        {
-            get
-            {
-                return GetConfigurationDirectoryPath(Name);
-            }
-        }
+        public string ConfigurationDirectoryPath => GetConfigurationDirectoryPath(Name);
 
 
         public override double GetDefaultPrimaryImageAspectRatio()
         public override double GetDefaultPrimaryImageAspectRatio()
         {
         {
@@ -327,13 +293,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPeople => false;
 
 
         public long InternalId { get; set; }
         public long InternalId { get; set; }
 
 

+ 1 - 4
MediaBrowser.Controller/Entities/UserItemData.cs

@@ -31,10 +31,7 @@ namespace MediaBrowser.Controller.Entities
         /// <exception cref="System.ArgumentOutOfRangeException">Rating;A 0 to 10 rating is required for UserItemData.</exception>
         /// <exception cref="System.ArgumentOutOfRangeException">Rating;A 0 to 10 rating is required for UserItemData.</exception>
         public double? Rating
         public double? Rating
         {
         {
-            get
-            {
-                return _rating;
-            }
+            get => _rating;
             set
             set
             {
             {
                 if (value.HasValue)
                 if (value.HasValue)

+ 4 - 28
MediaBrowser.Controller/Entities/UserRootFolder.cs

@@ -34,22 +34,10 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsInheritedParentImages => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPlayedStatus
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPlayedStatus => false;
 
 
         private void ClearCache()
         private void ClearCache()
         {
         {
@@ -88,22 +76,10 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        protected override bool SupportsShortcutChildren
-        {
-            get
-            {
-                return true;
-            }
-        }
+        protected override bool SupportsShortcutChildren => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool IsPreSorted
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool IsPreSorted => true;
 
 
         protected override IEnumerable<BaseItem> GetEligibleChildrenForRecursiveChildren(User user)
         protected override IEnumerable<BaseItem> GetEligibleChildrenForRecursiveChildren(User user)
         {
         {

+ 4 - 28
MediaBrowser.Controller/Entities/UserView.cs

@@ -20,13 +20,7 @@ namespace MediaBrowser.Controller.Entities
         public static IPlaylistManager PlaylistManager;
         public static IPlaylistManager PlaylistManager;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public string CollectionType
-        {
-            get
-            {
-                return ViewType;
-            }
-        }
+        public string CollectionType => ViewType;
 
 
         public override IEnumerable<Guid> GetIdsForAncestorQuery()
         public override IEnumerable<Guid> GetIdsForAncestorQuery()
         {
         {
@@ -48,22 +42,10 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsInheritedParentImages => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPlayedStatus
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPlayedStatus => false;
 
 
         public override int GetChildCount(User user)
         public override int GetChildCount(User user)
         {
         {
@@ -188,12 +170,6 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPeople => false;
     }
     }
 }
 }

+ 10 - 52
MediaBrowser.Controller/Entities/Video.cs

@@ -33,28 +33,13 @@ namespace MediaBrowser.Controller.Entities
         public LinkedChild[] LinkedAlternateVersions { get; set; }
         public LinkedChild[] LinkedAlternateVersions { get; set; }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPlayedStatus
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool SupportsPlayedStatus => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get { return true; }
-        }
+        public override bool SupportsPeople => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool SupportsInheritedParentImages => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
         public override bool SupportsPositionTicksResume
         public override bool SupportsPositionTicksResume
@@ -106,10 +91,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsThemeMedia
-        {
-            get { return true; }
-        }
+        public override bool SupportsThemeMedia => true;
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets the timestamp.
         /// Gets or sets the timestamp.
@@ -199,10 +181,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAddingToPlaylist
-        {
-            get { return true; }
-        }
+        public override bool SupportsAddingToPlaylist => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
         public int MediaSourceCount
         public int MediaSourceCount
@@ -222,16 +201,10 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsStacked
-        {
-            get { return AdditionalParts.Length > 0; }
-        }
+        public bool IsStacked => AdditionalParts.Length > 0;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool HasLocalAlternateVersions
-        {
-            get { return LocalAlternateVersions.Length > 0; }
-        }
+        public override bool HasLocalAlternateVersions => LocalAlternateVersions.Length > 0;
 
 
         public IEnumerable<Guid> GetAdditionalPartIds()
         public IEnumerable<Guid> GetAdditionalPartIds()
         {
         {
@@ -289,13 +262,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        protected virtual bool EnableDefaultVideoUserDataKeys
-        {
-            get
-            {
-                return true;
-            }
-        }
+        protected virtual bool EnableDefaultVideoUserDataKeys => true;
 
 
         public override List<string> GetUserDataKeys()
         public override List<string> GetUserDataKeys()
         {
         {
@@ -466,23 +433,14 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if [is3 D]; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if [is3 D]; otherwise, <c>false</c>.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool Is3D
-        {
-            get { return Video3DFormat.HasValue; }
-        }
+        public bool Is3D => Video3DFormat.HasValue;
 
 
         /// <summary>
         /// <summary>
         /// Gets the type of the media.
         /// Gets the type of the media.
         /// </summary>
         /// </summary>
         /// <value>The type of the media.</value>
         /// <value>The type of the media.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string MediaType
-        {
-            get
-            {
-                return Model.Entities.MediaType.Video;
-            }
-        }
+        public override string MediaType => Model.Entities.MediaType.Video;
 
 
         protected override async Task<bool> RefreshedOwnedItems(MetadataRefreshOptions options, List<FileSystemMetadata> fileSystemChildren, CancellationToken cancellationToken)
         protected override async Task<bool> RefreshedOwnedItems(MetadataRefreshOptions options, List<FileSystemMetadata> fileSystemChildren, CancellationToken cancellationToken)
         {
         {

+ 3 - 21
MediaBrowser.Controller/Entities/Year.cs

@@ -25,13 +25,7 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The containing folder path.</value>
         /// <value>The containing folder path.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string ContainingFolderPath
-        {
-            get
-            {
-                return Path;
-            }
-        }
+        public override string ContainingFolderPath => Path;
 
 
         public override double GetDefaultPrimaryImageAspectRatio()
         public override double GetDefaultPrimaryImageAspectRatio()
         {
         {
@@ -42,13 +36,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAncestors
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsAncestors => false;
 
 
         public override bool CanDelete()
         public override bool CanDelete()
         {
         {
@@ -89,13 +77,7 @@ namespace MediaBrowser.Controller.Entities
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPeople
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPeople => false;
 
 
         public static string GetPath(string name)
         public static string GetPath(string name)
         {
         {

+ 2 - 14
MediaBrowser.Controller/Library/ItemResolveArgs.cs

@@ -67,13 +67,7 @@ namespace MediaBrowser.Controller.Library
         /// Gets a value indicating whether this instance is directory.
         /// Gets a value indicating whether this instance is directory.
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance is directory; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance is directory; otherwise, <c>false</c>.</value>
-        public bool IsDirectory
-        {
-            get
-            {
-                return FileInfo.IsDirectory;
-            }
-        }
+        public bool IsDirectory => FileInfo.IsDirectory;
 
 
         /// <summary>
         /// <summary>
         /// Gets a value indicating whether this instance is vf.
         /// Gets a value indicating whether this instance is vf.
@@ -103,13 +97,7 @@ namespace MediaBrowser.Controller.Library
         /// Gets a value indicating whether this instance is physical root.
         /// Gets a value indicating whether this instance is physical root.
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance is physical root; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance is physical root; otherwise, <c>false</c>.</value>
-        public bool IsPhysicalRoot
-        {
-            get
-            {
-                return IsDirectory && BaseItem.FileSystem.AreEqual(Path, _appPaths.RootFolderPath);
-            }
-        }
+        public bool IsPhysicalRoot => IsDirectory && BaseItem.FileSystem.AreEqual(Path, _appPaths.RootFolderPath);
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets the additional locations.
         /// Gets or sets the additional locations.

+ 6 - 40
MediaBrowser.Controller/LiveTv/LiveTvChannel.cs

@@ -32,28 +32,13 @@ namespace MediaBrowser.Controller.LiveTv
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPositionTicksResume
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsPositionTicksResume => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override SourceType SourceType
-        {
-            get { return SourceType.LiveTV; }
-        }
+        public override SourceType SourceType => SourceType.LiveTV;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool EnableRememberingTrackSelections
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool EnableRememberingTrackSelections => false;
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets the number.
         /// Gets or sets the number.
@@ -68,14 +53,7 @@ namespace MediaBrowser.Controller.LiveTv
         public ChannelType ChannelType { get; set; }
         public ChannelType ChannelType { get; set; }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override LocationType LocationType
-        {
-            get
-            {
-                // TODO: This should be removed
-                return LocationType.Remote;
-            }
-        }
+        public override LocationType LocationType => LocationType.Remote;
 
 
         protected override string CreateSortName()
         protected override string CreateSortName()
         {
         {
@@ -93,13 +71,7 @@ namespace MediaBrowser.Controller.LiveTv
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string MediaType
-        {
-            get
-            {
-                return ChannelType == ChannelType.Radio ? Model.Entities.MediaType.Audio : Model.Entities.MediaType.Video;
-            }
-        }
+        public override string MediaType => ChannelType == ChannelType.Radio ? Model.Entities.MediaType.Audio : Model.Entities.MediaType.Video;
 
 
         public override string GetClientTypeName()
         public override string GetClientTypeName()
         {
         {
@@ -176,13 +148,7 @@ namespace MediaBrowser.Controller.LiveTv
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance is kids; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance is kids; otherwise, <c>false</c>.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsKids
-        {
-            get
-            {
-                return Tags.Contains("Kids", StringComparer.OrdinalIgnoreCase);
-            }
-        }
+        public bool IsKids => Tags.Contains("Kids", StringComparer.OrdinalIgnoreCase);
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
         public bool IsRepeat { get; set; }
         public bool IsRepeat { get; set; }

+ 8 - 53
MediaBrowser.Controller/LiveTv/LiveTvProgram.cs

@@ -63,10 +63,7 @@ namespace MediaBrowser.Controller.LiveTv
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override SourceType SourceType
-        {
-            get { return SourceType.LiveTV; }
-        }
+        public override SourceType SourceType => SourceType.LiveTV;
 
 
         /// <summary>
         /// <summary>
         /// The start date of the program, in UTC.
         /// The start date of the program, in UTC.
@@ -103,13 +100,7 @@ namespace MediaBrowser.Controller.LiveTv
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance is sports; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance is sports; otherwise, <c>false</c>.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsSports
-        {
-            get
-            {
-                return Tags.Contains("Sports", StringComparer.OrdinalIgnoreCase);
-            }
-        }
+        public bool IsSports => Tags.Contains("Sports", StringComparer.OrdinalIgnoreCase);
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets a value indicating whether this instance is series.
         /// Gets or sets a value indicating whether this instance is series.
@@ -123,52 +114,28 @@ namespace MediaBrowser.Controller.LiveTv
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance is live; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance is live; otherwise, <c>false</c>.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsLive
-        {
-            get
-            {
-                return Tags.Contains("Live", StringComparer.OrdinalIgnoreCase);
-            }
-        }
+        public bool IsLive => Tags.Contains("Live", StringComparer.OrdinalIgnoreCase);
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets a value indicating whether this instance is news.
         /// Gets or sets a value indicating whether this instance is news.
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance is news; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance is news; otherwise, <c>false</c>.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsNews
-        {
-            get
-            {
-                return Tags.Contains("News", StringComparer.OrdinalIgnoreCase);
-            }
-        }
+        public bool IsNews => Tags.Contains("News", StringComparer.OrdinalIgnoreCase);
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets a value indicating whether this instance is kids.
         /// Gets or sets a value indicating whether this instance is kids.
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance is kids; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance is kids; otherwise, <c>false</c>.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsKids
-        {
-            get
-            {
-                return Tags.Contains("Kids", StringComparer.OrdinalIgnoreCase);
-            }
-        }
+        public bool IsKids => Tags.Contains("Kids", StringComparer.OrdinalIgnoreCase);
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets a value indicating whether this instance is premiere.
         /// Gets or sets a value indicating whether this instance is premiere.
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance is premiere; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance is premiere; otherwise, <c>false</c>.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsPremiere
-        {
-            get
-            {
-                return Tags.Contains("Premiere", StringComparer.OrdinalIgnoreCase);
-            }
-        }
+        public bool IsPremiere => Tags.Contains("Premiere", StringComparer.OrdinalIgnoreCase);
 
 
         /// <summary>
         /// <summary>
         /// Returns the folder containing the item.
         /// Returns the folder containing the item.
@@ -176,13 +143,7 @@ namespace MediaBrowser.Controller.LiveTv
         /// </summary>
         /// </summary>
         /// <value>The containing folder path.</value>
         /// <value>The containing folder path.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string ContainingFolderPath
-        {
-            get
-            {
-                return Path;
-            }
-        }
+        public override string ContainingFolderPath => Path;
 
 
         //[IgnoreDataMember]
         //[IgnoreDataMember]
         //public override string MediaType
         //public override string MediaType
@@ -251,13 +212,7 @@ namespace MediaBrowser.Controller.LiveTv
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsAncestors
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsAncestors => false;
 
 
         private LiveTvOptions GetConfiguration()
         private LiveTvOptions GetConfiguration()
         {
         {

+ 7 - 35
MediaBrowser.Controller/LiveTv/TimerInfo.cs

@@ -115,27 +115,11 @@ namespace MediaBrowser.Controller.LiveTv
         /// <value>The episode number.</value>
         /// <value>The episode number.</value>
         public int? EpisodeNumber { get; set; }
         public int? EpisodeNumber { get; set; }
         public bool IsMovie { get; set; }
         public bool IsMovie { get; set; }
-        public bool IsKids
-        {
-            get
-            {
-                return Tags.Contains("Kids", StringComparer.OrdinalIgnoreCase);
-            }
-        }
-        public bool IsSports
-        {
-            get
-            {
-                return Tags.Contains("Sports", StringComparer.OrdinalIgnoreCase);
-            }
-        }
-        public bool IsNews
-        {
-            get
-            {
-                return Tags.Contains("News", StringComparer.OrdinalIgnoreCase);
-            }
-        }
+        public bool IsKids => Tags.Contains("Kids", StringComparer.OrdinalIgnoreCase);
+
+        public bool IsSports => Tags.Contains("Sports", StringComparer.OrdinalIgnoreCase);
+
+        public bool IsNews => Tags.Contains("News", StringComparer.OrdinalIgnoreCase);
         public bool IsSeries { get; set; }
         public bool IsSeries { get; set; }
 
 
         /// <summary>
         /// <summary>
@@ -143,22 +127,10 @@ namespace MediaBrowser.Controller.LiveTv
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance is live; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance is live; otherwise, <c>false</c>.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsLive
-        {
-            get
-            {
-                return Tags.Contains("Live", StringComparer.OrdinalIgnoreCase);
-            }
-        }
+        public bool IsLive => Tags.Contains("Live", StringComparer.OrdinalIgnoreCase);
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsPremiere
-        {
-            get
-            {
-                return Tags.Contains("Premiere", StringComparer.OrdinalIgnoreCase);
-            }
-        }
+        public bool IsPremiere => Tags.Contains("Premiere", StringComparer.OrdinalIgnoreCase);
 
 
         public int? ProductionYear { get; set; }
         public int? ProductionYear { get; set; }
         public string EpisodeTitle { get; set; }
         public string EpisodeTitle { get; set; }

+ 10 - 64
MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.cs

@@ -61,53 +61,17 @@ namespace MediaBrowser.Controller.MediaEncoding
             }
             }
         }
         }
 
 
-        public bool IgnoreInputDts
-        {
-            get
-            {
-                return MediaSource.IgnoreDts;
-            }
-        }
+        public bool IgnoreInputDts => MediaSource.IgnoreDts;
 
 
-        public bool IgnoreInputIndex
-        {
-            get
-            {
-                return MediaSource.IgnoreIndex;
-            }
-        }
+        public bool IgnoreInputIndex => MediaSource.IgnoreIndex;
 
 
-        public bool GenPtsInput
-        {
-            get
-            {
-                return MediaSource.GenPtsInput;
-            }
-        }
+        public bool GenPtsInput => MediaSource.GenPtsInput;
 
 
-        public bool DiscardCorruptFramesInput
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public bool DiscardCorruptFramesInput => false;
 
 
-        public bool EnableFastSeekInput
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public bool EnableFastSeekInput => false;
 
 
-        public bool GenPtsOutput
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public bool GenPtsOutput => false;
 
 
         public string OutputContainer { get; set; }
         public string OutputContainer { get; set; }
 
 
@@ -142,15 +106,9 @@ namespace MediaBrowser.Controller.MediaEncoding
 
 
         public BaseEncodingJobOptions BaseRequest { get; set; }
         public BaseEncodingJobOptions BaseRequest { get; set; }
 
 
-        public long? StartTimeTicks
-        {
-            get { return BaseRequest.StartTimeTicks; }
-        }
+        public long? StartTimeTicks => BaseRequest.StartTimeTicks;
 
 
-        public bool CopyTimestamps
-        {
-            get { return BaseRequest.CopyTimestamps; }
-        }
+        public bool CopyTimestamps => BaseRequest.CopyTimestamps;
 
 
         public int? OutputAudioBitrate;
         public int? OutputAudioBitrate;
         public int? OutputAudioChannels;
         public int? OutputAudioChannels;
@@ -323,13 +281,7 @@ namespace MediaBrowser.Controller.MediaEncoding
             SupportedSubtitleCodecs = Array.Empty<string>();
             SupportedSubtitleCodecs = Array.Empty<string>();
         }
         }
 
 
-        public bool IsSegmentedLiveStream
-        {
-            get
-            {
-                return TranscodingType != TranscodingJobType.Progressive && !RunTimeTicks.HasValue;
-            }
-        }
+        public bool IsSegmentedLiveStream => TranscodingType != TranscodingJobType.Progressive && !RunTimeTicks.HasValue;
 
 
         public bool EnableBreakOnNonKeyFrames(string videoCodec)
         public bool EnableBreakOnNonKeyFrames(string videoCodec)
         {
         {
@@ -346,13 +298,7 @@ namespace MediaBrowser.Controller.MediaEncoding
             return false;
             return false;
         }
         }
 
 
-        public int? TotalOutputBitrate
-        {
-            get
-            {
-                return (OutputAudioBitrate ?? 0) + (OutputVideoBitrate ?? 0);
-            }
-        }
+        public int? TotalOutputBitrate => (OutputAudioBitrate ?? 0) + (OutputVideoBitrate ?? 0);
 
 
         public int? OutputWidth
         public int? OutputWidth
         {
         {

+ 1 - 7
MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.cs

@@ -20,13 +20,7 @@ namespace MediaBrowser.Controller.MediaEncoding
         /// Gets a value indicating whether this instance has fixed resolution.
         /// Gets a value indicating whether this instance has fixed resolution.
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance has fixed resolution; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance has fixed resolution; otherwise, <c>false</c>.</value>
-        public bool HasFixedResolution
-        {
-            get
-            {
-                return Width.HasValue || Height.HasValue;
-            }
-        }
+        public bool HasFixedResolution => Width.HasValue || Height.HasValue;
 
 
         private readonly CultureInfo _usCulture = new CultureInfo("en-US");
         private readonly CultureInfo _usCulture = new CultureInfo("en-US");
         public EncodingJobOptions(StreamInfo info, DeviceProfile deviceProfile)
         public EncodingJobOptions(StreamInfo info, DeviceProfile deviceProfile)

+ 1 - 4
MediaBrowser.Controller/Net/AuthenticatedAttribute.cs

@@ -44,10 +44,7 @@ namespace MediaBrowser.Controller.Net
         /// &gt;0 Executed after global request filters
         /// &gt;0 Executed after global request filters
         /// </summary>
         /// </summary>
         /// <value>The priority.</value>
         /// <value>The priority.</value>
-        public int Priority
-        {
-            get { return 0; }
-        }
+        public int Priority => 0;
 
 
         public string[] GetRoles()
         public string[] GetRoles()
         {
         {

+ 1 - 7
MediaBrowser.Controller/Net/AuthorizationInfo.cs

@@ -9,13 +9,7 @@ namespace MediaBrowser.Controller.Net
         /// Gets or sets the user identifier.
         /// Gets or sets the user identifier.
         /// </summary>
         /// </summary>
         /// <value>The user identifier.</value>
         /// <value>The user identifier.</value>
-        public Guid UserId
-        {
-            get
-            {
-                return User == null ? Guid.Empty : User.Id;
-            }
-        }
+        public Guid UserId => User == null ? Guid.Empty : User.Id;
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets the device identifier.
         /// Gets or sets the device identifier.

+ 1 - 7
MediaBrowser.Controller/Net/BasePeriodicWebSocketListener.cs

@@ -83,13 +83,7 @@ namespace MediaBrowser.Controller.Net
 
 
         protected readonly CultureInfo UsCulture = new CultureInfo("en-US");
         protected readonly CultureInfo UsCulture = new CultureInfo("en-US");
 
 
-        protected virtual bool SendOnTimer
-        {
-            get
-            {
-                return false;
-            }
-        }
+        protected virtual bool SendOnTimer => false;
 
 
         protected virtual void ParseMessageParams(string[] values)
         protected virtual void ParseMessageParams(string[] values)
         {
         {

+ 8 - 56
MediaBrowser.Controller/Playlists/Playlist.cs

@@ -34,13 +34,7 @@ namespace MediaBrowser.Controller.Playlists
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool IsFile
-        {
-            get
-            {
-                return IsPlaylistFile(Path);
-            }
-        }
+        public bool IsFile => IsPlaylistFile(Path);
 
 
         public static bool IsPlaylistFile(string path)
         public static bool IsPlaylistFile(string path)
         {
         {
@@ -64,49 +58,19 @@ namespace MediaBrowser.Controller.Playlists
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        protected override bool FilterLinkedChildrenPerUser
-        {
-            get
-            {
-                return true;
-            }
-        }
+        protected override bool FilterLinkedChildrenPerUser => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsInheritedParentImages
-        {
-            get
-            {
-                return false;
-            }
-        }
+        public override bool SupportsInheritedParentImages => false;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsPlayedStatus
-        {
-            get
-            {
-                return string.Equals(MediaType, "Video", StringComparison.OrdinalIgnoreCase);
-            }
-        }
+        public override bool SupportsPlayedStatus => string.Equals(MediaType, "Video", StringComparison.OrdinalIgnoreCase);
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool AlwaysScanInternalMetadataPath
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool AlwaysScanInternalMetadataPath => true;
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool SupportsCumulativeRunTimeTicks
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool SupportsCumulativeRunTimeTicks => true;
 
 
         public override double GetDefaultPrimaryImageAspectRatio()
         public override double GetDefaultPrimaryImageAspectRatio()
         {
         {
@@ -229,24 +193,12 @@ namespace MediaBrowser.Controller.Playlists
         }
         }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override bool IsPreSorted
-        {
-            get
-            {
-                return true;
-            }
-        }
+        public override bool IsPreSorted => true;
 
 
         public string PlaylistMediaType { get; set; }
         public string PlaylistMediaType { get; set; }
 
 
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public override string MediaType
-        {
-            get
-            {
-                return PlaylistMediaType;
-            }
-        }
+        public override string MediaType => PlaylistMediaType;
 
 
         public void SetMediaType(string value)
         public void SetMediaType(string value)
         {
         {

+ 1 - 7
MediaBrowser.Controller/Resolvers/BaseItemResolver.cs

@@ -24,13 +24,7 @@ namespace MediaBrowser.Controller.Resolvers
         /// Gets the priority.
         /// Gets the priority.
         /// </summary>
         /// </summary>
         /// <value>The priority.</value>
         /// <value>The priority.</value>
-        public virtual ResolverPriority Priority
-        {
-            get
-            {
-                return ResolverPriority.First;
-            }
-        }
+        public virtual ResolverPriority Priority => ResolverPriority.First;
 
 
         /// <summary>
         /// <summary>
         /// Sets initial values on the newly resolved item
         /// Sets initial values on the newly resolved item

+ 3 - 22
MediaBrowser.LocalMetadata/BaseXmlProvider.cs

@@ -67,32 +67,13 @@ namespace MediaBrowser.LocalMetadata
             return file.Exists && FileSystem.GetLastWriteTimeUtc(file) > item.DateLastSaved;
             return file.Exists && FileSystem.GetLastWriteTimeUtc(file) > item.DateLastSaved;
         }
         }
 
 
-        public string Name
-        {
-            get
-            {
-                return XmlProviderUtils.Name;
-            }
-        }
+        public string Name => XmlProviderUtils.Name;
 
 
-        public virtual int Order
-        {
-            get
-            {
-                // After Nfo
-                return 1;
-            }
-        }
+        public virtual int Order => 1;
     }
     }
 
 
     static class XmlProviderUtils
     static class XmlProviderUtils
     {
     {
-        public static string Name
-        {
-            get
-            {
-                return "Emby Xml";
-            }
-        }
+        public static string Name => "Emby Xml";
     }
     }
 }
 }

+ 2 - 12
MediaBrowser.LocalMetadata/Images/CollectionFolderImageProvider.cs

@@ -14,24 +14,14 @@ namespace MediaBrowser.LocalMetadata.Images
             _fileSystem = fileSystem;
             _fileSystem = fileSystem;
         }
         }
 
 
-        public string Name
-        {
-            get { return "Collection Folder Images"; }
-        }
+        public string Name => "Collection Folder Images";
 
 
         public bool Supports(BaseItem item)
         public bool Supports(BaseItem item)
         {
         {
             return item is CollectionFolder && item.SupportsLocalMetadata;
             return item is CollectionFolder && item.SupportsLocalMetadata;
         }
         }
 
 
-        public int Order
-        {
-            get
-            {
-                // Run after LocalImageProvider
-                return 1;
-            }
-        }
+        public int Order => 1;
 
 
         public List<LocalImageInfo> GetImages(BaseItem item, IDirectoryService directoryService)
         public List<LocalImageInfo> GetImages(BaseItem item, IDirectoryService directoryService)
         {
         {

+ 2 - 8
MediaBrowser.LocalMetadata/Images/EpisodeLocalImageProvider.cs

@@ -18,15 +18,9 @@ namespace MediaBrowser.LocalMetadata.Images
             _fileSystem = fileSystem;
             _fileSystem = fileSystem;
         }
         }
 
 
-        public string Name
-        {
-            get { return "Local Images"; }
-        }
+        public string Name => "Local Images";
 
 
-        public int Order
-        {
-            get { return 0; }
-        }
+        public int Order => 0;
 
 
         public bool Supports(BaseItem item)
         public bool Supports(BaseItem item)
         {
         {

+ 2 - 12
MediaBrowser.LocalMetadata/Images/InternalMetadataFolderImageProvider.cs

@@ -19,10 +19,7 @@ namespace MediaBrowser.LocalMetadata.Images
             _fileSystem = fileSystem;
             _fileSystem = fileSystem;
         }
         }
 
 
-        public string Name
-        {
-            get { return "Internal Images"; }
-        }
+        public string Name => "Internal Images";
 
 
         public bool Supports(BaseItem item)
         public bool Supports(BaseItem item)
         {
         {
@@ -50,14 +47,7 @@ namespace MediaBrowser.LocalMetadata.Images
             return true;
             return true;
         }
         }
 
 
-        public int Order
-        {
-            get
-            {
-                // Make sure this is last so that all other locations are scanned first
-                return 1000;
-            }
-        }
+        public int Order => 1000;
 
 
         public List<LocalImageInfo> GetImages(BaseItem item, IDirectoryService directoryService)
         public List<LocalImageInfo> GetImages(BaseItem item, IDirectoryService directoryService)
         {
         {

+ 2 - 8
MediaBrowser.LocalMetadata/Images/LocalImageProvider.cs

@@ -21,15 +21,9 @@ namespace MediaBrowser.LocalMetadata.Images
             _fileSystem = fileSystem;
             _fileSystem = fileSystem;
         }
         }
 
 
-        public string Name
-        {
-            get { return "Local Images"; }
-        }
+        public string Name => "Local Images";
 
 
-        public int Order
-        {
-            get { return 0; }
-        }
+        public int Order => 0;
 
 
         public bool Supports(BaseItem item)
         public bool Supports(BaseItem item)
         {
         {

+ 2 - 14
MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs

@@ -42,21 +42,9 @@ namespace MediaBrowser.LocalMetadata.Savers
         protected ILogger Logger { get; private set; }
         protected ILogger Logger { get; private set; }
         protected IXmlReaderSettingsFactory XmlReaderSettingsFactory { get; private set; }
         protected IXmlReaderSettingsFactory XmlReaderSettingsFactory { get; private set; }
 
 
-        protected ItemUpdateType MinimumUpdateType
-        {
-            get
-            {
-                return ItemUpdateType.MetadataDownload;
-            }
-        }
+        protected ItemUpdateType MinimumUpdateType => ItemUpdateType.MetadataDownload;
 
 
-        public string Name
-        {
-            get
-            {
-                return XmlProviderUtils.Name;
-            }
-        }
+        public string Name => XmlProviderUtils.Name;
 
 
         public string GetSavePath(BaseItem item)
         public string GetSavePath(BaseItem item)
         {
         {

+ 1 - 5
MediaBrowser.MediaEncoding/Encoder/AudioEncoder.cs

@@ -53,10 +53,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
             return null;
             return null;
         }
         }
 
 
-        protected override bool IsVideoEncoder
-        {
-            get { return false; }
-        }
-
+        protected override bool IsVideoEncoder => false;
     }
     }
 }
 }

+ 2 - 2
MediaBrowser.MediaEncoding/Encoder/EncodingJob.cs

@@ -20,8 +20,8 @@ namespace MediaBrowser.MediaEncoding.Encoder
 
 
         public EncodingJobOptions Options
         public EncodingJobOptions Options
         {
         {
-            get { return (EncodingJobOptions)BaseRequest; }
-            set { BaseRequest = value; }
+            get => (EncodingJobOptions)BaseRequest;
+            set => BaseRequest = value;
         }
         }
 
 
         public string Id { get; set; }
         public string Id { get; set; }

+ 1 - 4
MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs

@@ -415,10 +415,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
         /// Gets the encoder path.
         /// Gets the encoder path.
         /// </summary>
         /// </summary>
         /// <value>The encoder path.</value>
         /// <value>The encoder path.</value>
-        public string EncoderPath
-        {
-            get { return FFMpegPath; }
-        }
+        public string EncoderPath => FFMpegPath;
 
 
         /// <summary>
         /// <summary>
         /// Gets the media info.
         /// Gets the media info.

+ 1 - 5
MediaBrowser.MediaEncoding/Encoder/VideoEncoder.cs

@@ -54,10 +54,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
             return null;
             return null;
         }
         }
 
 
-        protected override bool IsVideoEncoder
-        {
-            get { return true; }
-        }
-
+        protected override bool IsVideoEncoder => true;
     }
     }
 }
 }

+ 1 - 4
MediaBrowser.MediaEncoding/Subtitles/OpenSubtitleDownloader.cs

@@ -83,10 +83,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
             return _encryption.DecryptString(password.Substring(2));
             return _encryption.DecryptString(password.Substring(2));
         }
         }
 
 
-        public string Name
-        {
-            get { return "Open Subtitles"; }
-        }
+        public string Name => "Open Subtitles";
 
 
         private SubtitleOptions GetOptions()
         private SubtitleOptions GetOptions()
         {
         {

+ 1 - 7
MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs

@@ -60,13 +60,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
             _textEncoding = textEncoding;
             _textEncoding = textEncoding;
         }
         }
 
 
-        private string SubtitleCachePath
-        {
-            get
-            {
-                return Path.Combine(_appPaths.DataPath, "subtitles");
-            }
-        }
+        private string SubtitleCachePath => Path.Combine(_appPaths.DataPath, "subtitles");
 
 
         private Stream ConvertSubtitles(Stream stream,
         private Stream ConvertSubtitles(Stream stream,
             string inputFormat,
             string inputFormat,

+ 1 - 4
MediaBrowser.Model/Dlna/SortCriteria.cs

@@ -4,10 +4,7 @@ namespace MediaBrowser.Model.Dlna
 {
 {
     public class SortCriteria
     public class SortCriteria
     {
     {
-        public SortOrder SortOrder
-        {
-            get { return SortOrder.Ascending; }
-        }
+        public SortOrder SortOrder => SortOrder.Ascending;
 
 
         public SortCriteria(string value)
         public SortCriteria(string value)
         {
         {

+ 5 - 22
MediaBrowser.Model/Dlna/StreamInfo.cs

@@ -127,22 +127,11 @@ namespace MediaBrowser.Model.Dlna
 
 
         public Dictionary<string, string> StreamOptions { get; private set; }
         public Dictionary<string, string> StreamOptions { get; private set; }
 
 
-        public string MediaSourceId
-        {
-            get
-            {
-                return MediaSource == null ? null : MediaSource.Id;
-            }
-        }
+        public string MediaSourceId => MediaSource == null ? null : MediaSource.Id;
 
 
-        public bool IsDirectStream
-        {
-            get
-            {
-                return PlayMethod == PlayMethod.DirectStream ||
-                    PlayMethod == PlayMethod.DirectPlay;
-            }
-        }
+        public bool IsDirectStream =>
+            PlayMethod == PlayMethod.DirectStream ||
+            PlayMethod == PlayMethod.DirectPlay;
 
 
         public string ToUrl(string baseUrl, string accessToken)
         public string ToUrl(string baseUrl, string accessToken)
         {
         {
@@ -911,13 +900,7 @@ namespace MediaBrowser.Model.Dlna
             }
             }
         }
         }
 
 
-        public int? TargetTotalBitrate
-        {
-            get
-            {
-                return (TargetAudioBitrate ?? 0) + (TargetVideoBitrate ?? 0);
-            }
-        }
+        public int? TargetTotalBitrate => (TargetAudioBitrate ?? 0) + (TargetVideoBitrate ?? 0);
 
 
         public bool? IsTargetAnamorphic
         public bool? IsTargetAnamorphic
         {
         {

+ 4 - 10
MediaBrowser.Model/Drawing/ImageSize.cs

@@ -16,14 +16,8 @@ namespace MediaBrowser.Model.Drawing
         /// <value>The height.</value>
         /// <value>The height.</value>
         public double Height
         public double Height
         {
         {
-            get
-            {
-                return _height;
-            }
-            set
-            {
-                _height = value;
-            }
+            get => _height;
+            set => _height = value;
         }
         }
 
 
         /// <summary>
         /// <summary>
@@ -32,8 +26,8 @@ namespace MediaBrowser.Model.Drawing
         /// <value>The width.</value>
         /// <value>The width.</value>
         public double Width
         public double Width
         {
         {
-            get { return _width; }
-            set { _width = value; }
+            get => _width;
+            set => _width = value;
         }
         }
 
 
         public bool Equals(ImageSize size)
         public bool Equals(ImageSize size)

+ 1 - 7
MediaBrowser.Model/Dto/BaseItemPerson.cs

@@ -42,12 +42,6 @@ namespace MediaBrowser.Model.Dto
         /// </summary>
         /// </summary>
         /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
         /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
         [IgnoreDataMember]
         [IgnoreDataMember]
-        public bool HasPrimaryImage
-        {
-            get
-            {
-                return PrimaryImageTag != null;
-            }
-        }
+        public bool HasPrimaryImage => PrimaryImageTag != null;
     }
     }
 }
 }

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels