mirror of https://github.com/mpv-player/mpv
ytdl_hook: remove tabs
We don't allow tabs in normal source code.
(cherry picked from commit 9438f811ae
)
This commit is contained in:
parent
002c387781
commit
a96dceaae2
|
@ -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