From 72a474e7cf1ae5152ecea35a10ad5526f8164600 Mon Sep 17 00:00:00 2001 From: Tangent Date: Sat, 9 Nov 2024 17:59:03 -0700 Subject: [PATCH] Revert "video-dl.lua uses browser cookies from Firefox now" This reverts commit 1e09fb54bd4e60e5b065b22ebf95571be94cc7cf. Fixes #12 --- video-dl.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/video-dl.lua b/video-dl.lua index cc07cb9..80eaadc 100644 --- a/video-dl.lua +++ b/video-dl.lua @@ -16,8 +16,6 @@ local help = [[Usage: on each. : Source. YouTube URL expected, but should work with anything yt-dlp works with. - -IMPORTANT: Expects Firefox to be installed with a YouTube account logged in to get cookies from. ]] if os.execute("where yt-dlp") ~= 0 then @@ -41,16 +39,16 @@ end local execute = { backup = function(url) - os.execute("yt-dlp --retries 100 --write-sub --write-auto-sub --sub-lang \"en.*\" --write-thumbnail --write-description -f \"bestvideo[height<=720]+bestaudio/best[height<=720]\" \"" .. url .."\" --cookies-from-browser \"firefox\"") + os.execute("yt-dlp --retries 100 --write-sub --write-auto-sub --sub-lang \"en.*\" --write-thumbnail --write-description -f \"bestvideo[height<=720]+bestaudio/best[height<=720]\" \"" .. url .."\"") end, music = function(url) - os.execute("yt-dlp --retries 100 -x --audio-quality 0 \"" .. url .."\" --cookies-from-browser \"firefox\"") + os.execute("yt-dlp --retries 100 -x --audio-quality 0 \"" .. url .."\"") end, metadata = function(url) - os.execute("yt-dlp --retries 100 --write-sub --write-auto-sub --sub-lang \"en.*\" --write-thumbnail --write-description --skip-download \"" .. url .."\" --cookies-from-browser \"firefox\"") + os.execute("yt-dlp --retries 100 --write-sub --write-auto-sub --sub-lang \"en.*\" --write-thumbnail --write-description --skip-download \"" .. url .."\"") end, video = function(url) - os.execute("yt-dlp --retries 100 -f \"bestvideo[height<=720]+bestaudio/best[height<=720]\" \"" .. url .. "\" --cookies-from-browser \"firefox\"") + os.execute("yt-dlp --retries 100 -f \"bestvideo[height<=720]+bestaudio/best[height<=720]\" \"" .. url .. "\"") end, } execute.clone = execute.backup