mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Include file size in output
This commit is contained in:
parent
2ad182a6ad
commit
fe6722bb42
1 changed files with 2 additions and 1 deletions
|
@ -818,7 +818,8 @@ class OtherCog(commands.Cog):
|
||||||
"\t- Encoding: {0[vcodec]} + {0[acodec]}\n"
|
"\t- Encoding: {0[vcodec]} + {0[acodec]}\n"
|
||||||
"\t- Extension: {0[ext]}\n"
|
"\t- Extension: {0[ext]}\n"
|
||||||
"\t- Protocol: {0[protocol]}\n"
|
"\t- Protocol: {0[protocol]}\n"
|
||||||
"\t- Resolution: {0[resolution]}\n".format(fmt)
|
"\t- Resolution: {0[resolution]}\n"
|
||||||
|
"\t- Size: {1}MB".format(fmt, fmt["filesize"] / 1024 ** 2)
|
||||||
)
|
)
|
||||||
await ctx.edit(content="Invalid format. Available formats:")
|
await ctx.edit(content="Invalid format. Available formats:")
|
||||||
for page in paginator.pages:
|
for page in paginator.pages:
|
||||||
|
|
Loading…
Reference in a new issue