|
|
@ -181,13 +181,8 @@ namespace MediaBrowser.Model.Net
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var extensions = Model.MimeTypes.GetMimeTypeExtensions(mimeType);
|
|
|
|
var extension = Model.MimeTypes.GetMimeTypeExtensions(mimeType).FirstOrDefault();
|
|
|
|
if (extensions.Any())
|
|
|
|
return string.IsNullOrEmpty(extension) ? null : "." + extension;
|
|
|
|
{
|
|
|
|
|
|
|
|
return "." + extensions.First();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|