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

Invalid Form Body with Soundcloud songs (closes #90)

This commit is contained in:
Steffo 2019-09-22 02:23:19 +02:00
parent e8eaaf3a25
commit 112733d439

View file

@ -106,9 +106,8 @@ class YtdlInfo:
embed = discord.Embed(title=self.title, embed = discord.Embed(title=self.title,
colour=discord.Colour(0xcc0000), colour=discord.Colour(0xcc0000),
url=self.webpage_url) url=self.webpage_url)
embed.set_thumbnail( embed.set_thumbnail(url=self.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_author(name=self.uploader, url=self.uploader_url)
# embed.set_footer(text="Source: 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=self.upload_date.strftime("%d %b %Y"), inline=True) embed.add_field(name="Published on", value=self.upload_date.strftime("%d %b %Y"), inline=True)