Fix ffprobe
This commit is contained in:
parent
024f32a1e9
commit
e00a6c19fe
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class FFMeta(commands.Cog):
|
||||||
stdout, stderr = await process.communicate()
|
stdout, stderr = await process.communicate()
|
||||||
if as_json:
|
if as_json:
|
||||||
return json.loads(stdout.decode())
|
return json.loads(stdout.decode())
|
||||||
return stdout.decode(errors="replace")
|
return stderr.decode(errors="replace")
|
||||||
|
|
||||||
@commands.slash_command()
|
@commands.slash_command()
|
||||||
async def ffprobe(self, ctx: discord.ApplicationContext, url: str = None, attachment: discord.Attachment = None):
|
async def ffprobe(self, ctx: discord.ApplicationContext, url: str = None, attachment: discord.Attachment = None):
|
||||||
|
|
Loading…
Reference in a new issue