From f830f73ae6e25f5c66da2c8d990767de86f838c0 Mon Sep 17 00:00:00 2001 From: jjay12365 Date: Wed, 6 Jun 2018 14:57:25 -0400 Subject: [PATCH] [V3 Streams] Fixed issue with making YT Stream Embed (#1812) fixed error not allowing bot to make yt stream embed --- redbot/cogs/streams/streamtypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/cogs/streams/streamtypes.py b/redbot/cogs/streams/streamtypes.py index 8c4e95b1c..ba6c607fa 100644 --- a/redbot/cogs/streams/streamtypes.py +++ b/redbot/cogs/streams/streamtypes.py @@ -180,7 +180,7 @@ class YoutubeStream(Stream): video_url = "https://youtube.com/watch?v={}".format(vid_data["id"]) title = vid_data["snippet"]["title"] thumbnail = vid_data["snippet"]["thumbnails"]["default"]["url"] - channel_title = data["snippet"]["channelTitle"] + channel_title = vid_data["snippet"]["channelTitle"] embed = discord.Embed(title=title, url=video_url) embed.set_author(name=channel_title) embed.set_image(url=rnd(thumbnail))