handle x-png
This commit is contained in:
parent
7895b5457c
commit
b7c6ffe013
|
@ -100,6 +100,7 @@ namespace MediaBrowser.Model.Net
|
||||||
.ToDictionary(x => x.Key, x => x.First().Key, StringComparer.OrdinalIgnoreCase);
|
.ToDictionary(x => x.Key, x => x.First().Key, StringComparer.OrdinalIgnoreCase);
|
||||||
|
|
||||||
dict["image/jpg"] = ".jpg";
|
dict["image/jpg"] = ".jpg";
|
||||||
|
dict["image/x-png"] = ".png";
|
||||||
|
|
||||||
return dict;
|
return dict;
|
||||||
}
|
}
|
||||||
|
|
|
@ -356,6 +356,11 @@ namespace MediaBrowser.Providers.Manager
|
||||||
var season = item as Season;
|
var season = item as Season;
|
||||||
var extension = MimeTypes.ToExtension(mimeType);
|
var extension = MimeTypes.ToExtension(mimeType);
|
||||||
|
|
||||||
|
if (string.IsNullOrWhiteSpace(extension))
|
||||||
|
{
|
||||||
|
throw new ArgumentException(string.Format("Unable to determine image file extension from mime type {0}", mimeType));
|
||||||
|
}
|
||||||
|
|
||||||
if (type == ImageType.Thumb && saveLocally)
|
if (type == ImageType.Thumb && saveLocally)
|
||||||
{
|
{
|
||||||
if (season != null && season.IndexNumber.HasValue)
|
if (season != null && season.IndexNumber.HasValue)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user