[Streams] Make preview picture for stream alerts bigger (#3689)

This commit is contained in:
Dav 2020-03-25 10:22:33 +00:00 committed by GitHub
parent efe67e2acc
commit 8c612a96c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ class YoutubeStream(Stream):
vid_data = data["items"][0] vid_data = data["items"][0]
video_url = "https://youtube.com/watch?v={}".format(vid_data["id"]) video_url = "https://youtube.com/watch?v={}".format(vid_data["id"])
title = vid_data["snippet"]["title"] title = vid_data["snippet"]["title"]
thumbnail = vid_data["snippet"]["thumbnails"]["default"]["url"] thumbnail = vid_data["snippet"]["thumbnails"]["medium"]["url"]
channel_title = vid_data["snippet"]["channelTitle"] channel_title = vid_data["snippet"]["channelTitle"]
embed = discord.Embed(title=title, url=video_url) embed = discord.Embed(title=title, url=video_url)
embed.set_author(name=channel_title) embed.set_author(name=channel_title)