Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
bebestmaple committed Feb 8, 2024
1 parent b9c3ebd commit f818648
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ConsoleM3U8/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ await CommandLine.Parser.Default.ParseArguments<Options>(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");
Expand Down

0 comments on commit f818648

Please sign in to comment.