Skip to content

Commit

Permalink
Fixed Input and Output Bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryental authored and Cryental committed Sep 22, 2020
1 parent 4c2931d commit 48b72e9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions SRTSubtitleConverter/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ private static void Main(string[] args)
if (!File.Exists(input))
{
Console.WriteLine("[!] The input file does not exist.");
return;
}

if (Directory.Exists(output))
Expand All @@ -62,13 +63,7 @@ private static void Main(string[] args)
return;
}

if (File.Exists(output))
{
processingHandler.ConvertToSRT(input, output);
return;
}

Console.WriteLine("[!] The output file or directory does not exist.");
processingHandler.ConvertToSRT(input, output);
}
}
}
Expand Down

0 comments on commit 48b72e9

Please sign in to comment.