mirror of
https://github.com/TangentFoxy/.lua-files.git
synced 2024-11-20 21:34:23 +00:00
guard against yt-dlp missing, better helptext
This commit is contained in:
parent
984af012bf
commit
a5a8e3a5f3
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
local helptext = [[Usage:
|
local helptext = [[Usage:
|
||||||
|
|
||||||
./video-dl.lua [action] <url>
|
video-dl.lua [action] <url>
|
||||||
|
|
||||||
[action]: What is desired.
|
[action]: What is desired.
|
||||||
video (default): Highest quality video (maximum 720p).
|
video (default): Highest quality video (maximum 720p).
|
||||||
@ -16,6 +16,10 @@ local helptext = [[Usage:
|
|||||||
yt-dlp works with.
|
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
|
local action, url
|
||||||
|
|
||||||
if #arg < 2 then
|
if #arg < 2 then
|
||||||
|
Loading…
Reference in New Issue
Block a user