diff --git a/video-dl.lua b/video-dl.lua index eef505f..a33b7e3 100644 --- a/video-dl.lua +++ b/video-dl.lua @@ -2,7 +2,7 @@ local helptext = [[Usage: - ./video-dl.lua [action] + video-dl.lua [action] [action]: What is desired. video (default): Highest quality video (maximum 720p). @@ -16,6 +16,10 @@ local helptext = [[Usage: yt-dlp works with. ]] +if os.execute("where yt-dlp") ~= 0 then + error("yt-dlp must be installed and in the path (accessible to CMD.exe)") +end + local action, url if #arg < 2 then