Update streamtypes.py (#3631)

This commit is contained in:
jack1142
2020-02-29 17:47:50 +01:00
committed by GitHub
parent 61fc00dc08
commit 279f0e4f6c

View File

@@ -310,7 +310,8 @@ class TwitchStream(Stream):
embed.set_thumbnail(url=logo)
if data["thumbnail_url"]:
embed.set_image(url=rnd(data["thumbnail_url"].format(width=320, height=180)))
embed.set_footer(text=_("Playing: ") + data["game_name"])
if data["game_name"]:
embed.set_footer(text=_("Playing: ") + data["game_name"])
return embed
def __repr__(self):