support ssa, ass extensions

This commit is contained in:
Luke Pulverenti 2013-09-19 20:56:37 -04:00
parent b7a8b92c00
commit dd63d20e89

View File

@ -79,7 +79,7 @@ namespace MediaBrowser.Providers.MediaInfo
{
get
{
return new[] { ".srt" };
return new[] { ".srt", ".ssa", ".ass" };
}
}
@ -443,7 +443,7 @@ namespace MediaBrowser.Providers.MediaInfo
var videoFileNameWithoutExtension = Path.GetFileNameWithoutExtension(video.Path);
foreach (var file in fileSystemChildren
.Where(f => !f.Attributes.HasFlag(FileAttributes.Directory) && string.Equals(Path.GetExtension(f.FullName), ".srt", StringComparison.OrdinalIgnoreCase)))
.Where(f => !f.Attributes.HasFlag(FileAttributes.Directory) && FilestampExtensions.Contains(Path.GetExtension(f.FullName), StringComparer.OrdinalIgnoreCase)))
{
var fullName = file.FullName;