mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 08:29:36 +00:00
ytdl_hook: remove tabs
We don't allow tabs in normal source code.
This commit is contained in:
parent
27f7489adc
commit
9438f811ae
@ -104,11 +104,11 @@ mp.add_hook("on_load", 10, function ()
|
|||||||
"--sub-format", subformat, "--no-playlist"
|
"--sub-format", subformat, "--no-playlist"
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Checks if video option is "no", change options accordingly
|
-- Checks if video option is "no", change options accordingly
|
||||||
if (mp.get_property("options/vid") == "no") then
|
if (mp.get_property("options/vid") == "no") then
|
||||||
format = "bestaudio/best"
|
format = "bestaudio/best"
|
||||||
msg.verbose("Video disabled. Only using audio")
|
msg.verbose("Video disabled. Only using audio")
|
||||||
end
|
end
|
||||||
|
|
||||||
if (format ~= "") then
|
if (format ~= "") then
|
||||||
table.insert(command, "--format")
|
table.insert(command, "--format")
|
||||||
|
Loading…
Reference in New Issue
Block a user