diff --git a/ConsoleM3U8/Program.cs b/ConsoleM3U8/Program.cs index 4836e54..43f5e9e 100644 --- a/ConsoleM3U8/Program.cs +++ b/ConsoleM3U8/Program.cs @@ -16,6 +16,10 @@ await CommandLine.Parser.Default.ParseArguments(args) { var videoPath = o.VideoPath; var tempDirectoryPath = Path.Combine(Path.GetDirectoryName(videoPath)!, Path.GetFileNameWithoutExtension(videoPath)!.Trim()); + if (!Directory.Exists(tempDirectoryPath)) + { + Directory.CreateDirectory(tempDirectoryPath); + } var tempDirectoryInfo = new DirectoryInfo(tempDirectoryPath); var m3u8Path = Path.Combine(tempDirectoryPath, "video.m3u8");