mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Removed ext check
This commit is contained in:
parent
a03e746439
commit
1f6cb847e6
@ -5,14 +5,11 @@ using System.Text;
|
||||
namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
{
|
||||
/// <summary>
|
||||
/// Implements MacSub (reading/writing).
|
||||
/// MacSub (reading/writing).
|
||||
/// http://devel.aegisub.org/wiki/SubtitleFormats/Macsub
|
||||
/// </summary>
|
||||
public class MacSub : SubtitleFormat
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum expecting line.
|
||||
/// </summary>
|
||||
private enum Expecting
|
||||
{
|
||||
StartFrame,
|
||||
@ -46,11 +43,6 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
|
||||
public override bool IsMine(List<string> lines, string fileName)
|
||||
{
|
||||
// Filter by extension, do not allow (.json, .xml, .srt...)
|
||||
if (fileName == null || !fileName.EndsWith(Extension, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
var macSub = new Subtitle();
|
||||
LoadSubtitle(macSub, lines, fileName);
|
||||
return macSub.Paragraphs.Count > _errorCount;
|
||||
|
Loading…
Reference in New Issue
Block a user