diff options
| author | Vasily <JustAMan@users.noreply.github.com> | 2019-03-08 00:58:52 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-08 00:58:52 +0300 |
| commit | fcee64df09fc802edc9209a468cdad512117f35e (patch) | |
| tree | 32674088138da6d98646934dd735d26ce0e6e7a1 | |
| parent | 757e0194b9985c204a4dcfb105f091fd1100bb44 (diff) | |
| parent | 4625592a8377b1eb04974f39bc220a362e960ca4 (diff) | |
Merge pull request #1069 from Bond-009/fix
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"; |
