Skip to content

Commit e36fb52

Browse files
committed
fix the ytdl path searching bug introduced in the last commit
1 parent 5f623c2 commit e36fb52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

selectformat.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ local keys = {
180180
local data = {}
181181
local url = ""
182182
local ytdl_path = ""
183-
local searched_ytld_path = false
183+
local ytdl_not_found = false
184184
local is_menu_shown = false
185185

186186
-- ====================
@@ -1011,7 +1011,7 @@ end
10111011

10121012
-- find the executable path of yt-dlp or youtube-dl and update the ytdl_path variable
10131013
function update_ytdl_path()
1014-
if not searched_ytld_path then
1014+
if ytdl_not_found then
10151015
return false
10161016
elseif not isempty(ytdl_path) then
10171017
return true
@@ -1030,7 +1030,7 @@ function update_ytdl_path()
10301030
end
10311031
end
10321032

1033-
searched_ytld_path = true
1033+
ytdl_not_found = true
10341034
msg.warn("couldn't find yt-dlp or youtube-dl")
10351035

10361036
return false

0 commit comments

Comments
 (0)