Fix burn not being boolean
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s

This commit is contained in:
Nexus 2024-06-01 19:26:58 +01:00
parent 10f8b00181
commit 64b02ee1ec
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -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: