From 0737fdd81b07760b2267471d956660c3bdb13136 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 3 Jun 2024 15:50:10 +0100 Subject: [PATCH] Bump max auto transcode size to 30 minutes --- src/cogs/auto_responder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cogs/auto_responder.py b/src/cogs/auto_responder.py index 4451161..44dd2b4 100644 --- a/src/cogs/auto_responder.py +++ b/src/cogs/auto_responder.py @@ -128,11 +128,11 @@ class AutoResponder(commands.Cog): info = await cog._run_ffprobe(uri, True) if not info: 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( - "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, - float(info["format"].get("duration", 600.1)), + float(info["format"].get("duration", 1800.1)), ) return update_reaction("\N{TIMER CLOCK}\U0000fe0f") streams = info.get("streams", [])