restore edit metatdata page
This commit is contained in:
parent
718aa28216
commit
697e98426f
|
@ -423,19 +423,6 @@ namespace MediaBrowser.Server.Implementations.Providers
|
||||||
dataToSave.Position = 0;
|
dataToSave.Position = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(dataToSave is MemoryStream || dataToSave is FileStream))
|
|
||||||
{
|
|
||||||
var ms = new MemoryStream();
|
|
||||||
|
|
||||||
using (dataToSave)
|
|
||||||
{
|
|
||||||
await dataToSave.CopyToAsync(ms).ConfigureAwait(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
ms.Position = 0;
|
|
||||||
dataToSave = ms;
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (dataToSave)
|
using (dataToSave)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user