|
|
@ -359,6 +359,8 @@ namespace MediaBrowser.Api.Images
|
|
|
|
|
|
|
|
|
|
|
|
var fullCachePath = GetFullCachePath(urlHash + "." + ext);
|
|
|
|
var fullCachePath = GetFullCachePath(urlHash + "." + ext);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Directory.CreateDirectory(Path.GetDirectoryName(fullCachePath));
|
|
|
|
|
|
|
|
|
|
|
|
using (var stream = result.Content)
|
|
|
|
using (var stream = result.Content)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
using (var filestream = _fileSystem.GetFileStream(fullCachePath, FileMode.Create, FileAccess.Write, FileShare.Read, true))
|
|
|
|
using (var filestream = _fileSystem.GetFileStream(fullCachePath, FileMode.Create, FileAccess.Write, FileShare.Read, true))
|
|
|
|