Bump max auto transcode size to 30 minutes
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 15s
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 15s
This commit is contained in:
parent
e377f41f6f
commit
0737fdd81b
1 changed files with 3 additions and 3 deletions
|
@ -128,11 +128,11 @@ class AutoResponder(commands.Cog):
|
||||||
info = await cog._run_ffprobe(uri, True)
|
info = await cog._run_ffprobe(uri, True)
|
||||||
if not info:
|
if not info:
|
||||||
raise ValueError("No info found for %r" % uri)
|
raise ValueError("No info found for %r" % uri)
|
||||||
if float(info["format"].get("duration", 600.1)) > 600.0:
|
if float(info["format"].get("duration", 1800.1)) > 1800.0:
|
||||||
self.log.warning(
|
self.log.warning(
|
||||||
"Video %r is %.2f seconds long (more than 10 minutes). Refusing to process further.",
|
"Video %r is %.2f seconds long (more than 30 minutes). Refusing to process further.",
|
||||||
uri,
|
uri,
|
||||||
float(info["format"].get("duration", 600.1)),
|
float(info["format"].get("duration", 1800.1)),
|
||||||
)
|
)
|
||||||
return update_reaction("\N{TIMER CLOCK}\U0000fe0f")
|
return update_reaction("\N{TIMER CLOCK}\U0000fe0f")
|
||||||
streams = info.get("streams", [])
|
streams = info.get("streams", [])
|
||||||
|
|
Loading…
Reference in a new issue