|
|
|
@ -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)
|
|
|
|
|
{
|
|
|
|
|