mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 11:34:18 +00:00
Invalid Form Body with Soundcloud songs (closes #90)
This commit is contained in:
parent
e8eaaf3a25
commit
112733d439
1 changed files with 2 additions and 3 deletions
|
@ -106,9 +106,8 @@ class YtdlInfo:
|
|||
embed = discord.Embed(title=self.title,
|
||||
colour=discord.Colour(0xcc0000),
|
||||
url=self.webpage_url)
|
||||
embed.set_thumbnail(
|
||||
url=self.thumbnail)
|
||||
embed.set_author(name=self.uploader, url=self.uploader_url)
|
||||
embed.set_thumbnail(url=self.thumbnail)
|
||||
embed.set_author(name=self.uploader, url=self.uploader_url if self.uploader_url is not None else discord.embeds.EmptyEmbed)
|
||||
# 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="Published on", value=self.upload_date.strftime("%d %b %Y"), inline=True)
|
||||
|
|
Loading…
Reference in a new issue