mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Check if EBU STL import file is an STL file
This commit is contained in:
parent
d686c67ea6
commit
e9d15eed88
@ -431,10 +431,18 @@ namespace Nikse.SubtitleEdit.Logic.CommandLineConvert
|
||||
if (ebuImportFileTemp.Length > 0)
|
||||
{
|
||||
if (File.Exists(ebuImportFileTemp))
|
||||
{
|
||||
var ebu = new Ebu();
|
||||
if (ebu.IsMine(null, ebuImportFileTemp))
|
||||
{
|
||||
ebuImportFile = ebuImportFileTemp;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception($"The /ebuimportfile '{ebuImportFileTemp}' is not a EBU STL file.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception($"The /ebuimportfile '{ebuImportFileTemp}' does not exist.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user