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