1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Fix embed date

This commit is contained in:
Steffo 2019-06-02 18:51:09 +02:00
parent 184ba4319b
commit 560d479fba

View file

@ -166,9 +166,9 @@ class YtdlInfo:
embed.set_thumbnail( embed.set_thumbnail(
url=self.thumbnail) url=self.thumbnail)
embed.set_author(name=self.uploader, url=self.uploader_url) embed.set_author(name=self.uploader, url=self.uploader_url)
embed.set_footer(text="Fonte: youtube-dl", icon_url="https://i.imgur.com/TSvSRYn.png") embed.set_footer(text="Source: youtube-dl", icon_url="https://i.imgur.com/TSvSRYn.png")
embed.add_field(name="Duration", value=str(self.duration), inline=True) embed.add_field(name="Duration", value=str(self.duration), inline=True)
embed.add_field(name="Published on", value=str(self.upload_date), inline=True) embed.add_field(name="Published on", value=self.upload_date.strftime("%d %b %Y"), inline=True)
return embed return embed
def __repr__(self): def __repr__(self):