Merge pull request #1069 from Bond-009/fix

Quick nullref fix
This commit is contained in:
Vasily 2019-03-08 00:58:52 +03:00 committed by GitHub
commit fcee64df09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -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",
@ -69,11 +75,6 @@ namespace MediaBrowser.Controller.Entities
public static readonly char[] SlugReplaceChars = { '?', '/', '&' };
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>