Merge pull request #9340 from Bond-009/using

This commit is contained in:
Bond-009 2023-02-17 22:01:17 +01:00 committed by GitHub
commit 9979b346ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,6 @@ namespace MediaBrowser.Providers.Subtitles
await stream.CopyToAsync(memoryStream).ConfigureAwait(false);
memoryStream.Position = 0;
}
}
var savePaths = new List<string>();
var saveFileName = Path.GetFileNameWithoutExtension(video.Path) + "." + response.Language.ToLowerInvariant();
@ -232,6 +231,7 @@ namespace MediaBrowser.Providers.Subtitles
_logger.LogError("An uploaded subtitle could not be saved because the resulting paths were invalid.");
}
}
}
private async Task TrySaveToFiles(Stream stream, List<string> savePaths)
{