mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-06 18:32:08 +01:00
Backport pull request #16539 from jellyfin/release-10.11.z
Fix subtitle saving
Original-merge: f51c63e244
Merged-by: nielsvanvelzen <nielsvanvelzen@users.noreply.github.com>
Backported-by: Bond_009 <bond.009@outlook.com>
This commit is contained in:
@@ -221,6 +221,11 @@ namespace MediaBrowser.Providers.Subtitles
|
||||
|
||||
private async Task TrySaveToFiles(Stream stream, List<string> savePaths, Video video, string extension)
|
||||
{
|
||||
if (!_allowedSubtitleFormats.Contains(extension, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
throw new ArgumentException($"Invalid subtitle format: {extension}");
|
||||
}
|
||||
|
||||
List<Exception>? exs = null;
|
||||
|
||||
foreach (var savePath in savePaths)
|
||||
|
||||
Reference in New Issue
Block a user