fixes #582 - support tbn image files.

This commit is contained in:
Luke Pulverenti 2013-10-13 01:56:44 -04:00
parent e98665a091
commit 05378c82cb
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ namespace MediaBrowser.Common.Net
{ {
return "image/gif"; return "image/gif";
} }
if (ext.Equals(".jpg", StringComparison.OrdinalIgnoreCase) || ext.Equals(".jpeg", StringComparison.OrdinalIgnoreCase)) if (ext.Equals(".jpg", StringComparison.OrdinalIgnoreCase) || ext.Equals(".jpeg", StringComparison.OrdinalIgnoreCase) || ext.Equals(".tbn", StringComparison.OrdinalIgnoreCase))
{ {
return "image/jpeg"; return "image/jpeg";
} }

View File

@ -52,7 +52,7 @@ namespace MediaBrowser.Controller.Entities
/// <summary> /// <summary>
/// The supported image extensions /// The supported image extensions
/// </summary> /// </summary>
public static readonly string[] SupportedImageExtensions = new[] { ".png", ".jpg", ".jpeg" }; public static readonly string[] SupportedImageExtensions = new[] { ".png", ".jpg", ".jpeg", ".tbn" };
/// <summary> /// <summary>
/// The trailer folder name /// The trailer folder name