Fix burn not being boolean
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
This commit is contained in:
parent
10f8b00181
commit
64b02ee1ec
1 changed files with 2 additions and 1 deletions
|
@ -334,7 +334,8 @@ class YTDLCog(commands.Cog):
|
|||
options["paths"] = paths
|
||||
|
||||
if subtitles:
|
||||
subtitles, burn = subtitles.split("+", 1) if "+" in subtitles else (subtitles, False)
|
||||
subtitles, burn = subtitles.split("+", 1) if "+" in subtitles else (subtitles, "0")
|
||||
burn = burn[0].lower() in ("y", "1", "t")
|
||||
if subtitles.lower() == "auto":
|
||||
options["writeautosubtitles"] = True
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue