mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
support ssa, ass extensions
This commit is contained in:
parent
b7a8b92c00
commit
dd63d20e89
@ -79,7 +79,7 @@ namespace MediaBrowser.Providers.MediaInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return new[] { ".srt" };
|
||||
return new[] { ".srt", ".ssa", ".ass" };
|
||||
}
|
||||
}
|
||||
|
||||
@ -158,7 +158,7 @@ namespace MediaBrowser.Providers.MediaInfo
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var result = await GetMediaInfo(item, isoMount, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
@ -240,7 +240,7 @@ namespace MediaBrowser.Providers.MediaInfo
|
||||
Logger.Error("No vobs found in dvd structure.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var files = allVobs
|
||||
.SkipWhile(f => new FileInfo(f).Length < minPlayableSize)
|
||||
.ToList();
|
||||
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user