From 112733d4397c7a9c2f8473609e7214915d4aaf4c Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 22 Sep 2019 02:23:19 +0200 Subject: [PATCH] Invalid Form Body with Soundcloud songs (closes #90) --- royalnet/audio/ytdlinfo.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/royalnet/audio/ytdlinfo.py b/royalnet/audio/ytdlinfo.py index c42d01dc..e0462c72 100644 --- a/royalnet/audio/ytdlinfo.py +++ b/royalnet/audio/ytdlinfo.py @@ -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)