Skip to content

Commit

Permalink
Fix nil error from recent changes in yt-dlp
Browse files Browse the repository at this point in the history
Livestreams from YouTube trigger this error
  • Loading branch information
christoph-heinrich committed Feb 4, 2023
1 parent dc3e423 commit 6c4268b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quality-menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ local function process_json(json)

local vfmt = nil
local afmt = nil
local requested_formats = json["requested_formats"] or json["requested_downloads"]
local requested_formats = json["requested_formats"] or json["requested_downloads"] or {}
for _, format in ipairs(requested_formats) do
if is_video(format) then
vfmt = format["format_id"]
Expand Down

0 comments on commit 6c4268b

Please sign in to comment.