mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-06 02:12:11 +01:00
Merge pull request #16539 from MBR-0001/fix-language-saving
Fix subtitle saving
This commit is contained in:
@@ -239,7 +239,7 @@ namespace MediaBrowser.Providers.Subtitles
|
||||
|
||||
private async Task TrySaveToFiles(Stream stream, List<string> savePaths, Video video, string extension)
|
||||
{
|
||||
if (!_allowedSubtitleFormats.Contains("." + extension, StringComparison.OrdinalIgnoreCase))
|
||||
if (!_allowedSubtitleFormats.Contains(extension, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
throw new ArgumentException($"Invalid subtitle format: {extension}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user