mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 10:03:40 +01:00
fix video embed dl
This commit is contained in:
parent
827bdf293f
commit
952b614462
1 changed files with 1 additions and 1 deletions
|
@ -780,7 +780,7 @@ class OtherCog(commands.Cog):
|
||||||
else:
|
else:
|
||||||
for embed in message.embeds:
|
for embed in message.embeds:
|
||||||
if embed.type == "video" and embed.video.url.endswith(("mp4", "webm")):
|
if embed.type == "video" and embed.video.url.endswith(("mp4", "webm")):
|
||||||
_ft = embed.video.split(".")[-1]
|
_ft = embed.video.url.split(".")[-1]
|
||||||
attachment = FakeAttachment(embed.video.proxy_url, embed.video.url)
|
attachment = FakeAttachment(embed.video.proxy_url, embed.video.url)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue