mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
Add end TS support
This commit is contained in:
parent
006328a6d7
commit
0d1240273d
1 changed files with 6 additions and 1 deletions
|
@ -1024,12 +1024,17 @@ class OtherCog(commands.Cog):
|
||||||
"-y",
|
"-y",
|
||||||
str(file)
|
str(file)
|
||||||
]
|
]
|
||||||
|
if end_timestamp is not None:
|
||||||
|
minutes, seconds = divmod(end_timestamp, 60)
|
||||||
|
hours, minutes = divmod(minutes, 60)
|
||||||
|
_args.insert(5, "-to")
|
||||||
|
_args.insert(6, "{!s}:{!s}:{!s}".format(*map(round, (hours, minutes, seconds))))
|
||||||
|
|
||||||
await self.bot.loop.run_in_executor(
|
await self.bot.loop.run_in_executor(
|
||||||
None,
|
None,
|
||||||
partial(
|
partial(
|
||||||
subprocess.run,
|
subprocess.run,
|
||||||
,
|
_args,
|
||||||
check=True,
|
check=True,
|
||||||
capture_output=True
|
capture_output=True
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue