diff options
| author | Bond-009 <bond.009@outlook.com> | 2019-03-07 22:52:41 +0100 |
|---|---|---|
| committer | Bond-009 <bond.009@outlook.com> | 2019-03-07 22:52:41 +0100 |
| commit | 4625592a8377b1eb04974f39bc220a362e960ca4 (patch) | |
| tree | 2e803c27066e8585086f24f040e77cc9dc3eb063 | |
| parent | 669c48cc8bd6b9023d54a38c8e8b7f4120cb7368 (diff) | |
Quick nullref fix
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 39b6eedfe..154b9470e 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -36,6 +36,12 @@ namespace MediaBrowser.Controller.Entities /// </summary> public abstract class BaseItem : IHasProviderIds, IHasLookupInfo<ItemLookupInfo> { + /// <summary> + /// The supported image extensions + /// </summary> + public static readonly IReadOnlyList<string> SupportedImageExtensions + = new [] { ".png", ".jpg", ".jpeg", ".tbn", ".gif" }; + private static readonly List<string> _supportedExtensions = new List<string>(SupportedImageExtensions) { ".nfo", @@ -70,11 +76,6 @@ namespace MediaBrowser.Controller.Entities public static char SlugChar = '-'; /// <summary> - /// The supported image extensions - /// </summary> - public static readonly string[] SupportedImageExtensions = { ".png", ".jpg", ".jpeg", ".tbn", ".gif" }; - - /// <summary> /// The trailer folder name /// </summary> public static string TrailerFolderName = "trailers"; |
