Have a 30 second cooldown between transcodes
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 14s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 14s
This commit is contained in:
parent
6b7968eef1
commit
71b8111b17
1 changed files with 1 additions and 1 deletions
|
@ -230,6 +230,7 @@ class AutoResponder(commands.Cog):
|
|||
stdout,
|
||||
stderr,
|
||||
)
|
||||
self._cooldown_transcode()
|
||||
return discord.File(tmp_path), tmp_path
|
||||
|
||||
async def transcode_hevc_to_h264(
|
||||
|
@ -268,7 +269,6 @@ class AutoResponder(commands.Cog):
|
|||
_r = await self._transcode_hevc_to_h264(link, update=message)
|
||||
if not _r:
|
||||
continue
|
||||
self._cooldown_transcode()
|
||||
file, _p = _r
|
||||
if file:
|
||||
if _p.stat().st_size <= 24.5 * 1024 * 1024:
|
||||
|
|
Loading…
Reference in a new issue