1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-20 01:42:35 +01:00

New: Importing sup files as subtitles

Towards #10412
This commit is contained in:
Bogdan 2024-09-11 20:44:04 +03:00
parent b4bbb71a9b
commit 7a55b563c0

View File

@ -5,30 +5,24 @@ namespace NzbDrone.Core.Extras.Subtitles
{
public static class SubtitleFileExtensions
{
private static HashSet<string> _fileExtensions;
static SubtitleFileExtensions()
public static HashSet<string> Extensions => new (StringComparer.OrdinalIgnoreCase)
{
_fileExtensions = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
{
".aqt",
".ass",
".idx",
".jss",
".psb",
".rt",
".smi",
".srt",
".ssa",
".sub",
".txt",
".utf",
".utf8",
".utf-8",
".vtt"
};
}
public static HashSet<string> Extensions => _fileExtensions;
".aqt",
".ass",
".idx",
".jss",
".psb",
".rt",
".smi",
".srt",
".ssa",
".sub",
".sup",
".txt",
".utf",
".utf8",
".utf-8",
".vtt"
};
}
}