mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 13:02:38 +00:00
Fix case where thumbnail does not exist
This commit is contained in:
parent
285dd71f20
commit
2dfa2da9a0
1 changed files with 2 additions and 1 deletions
|
@ -223,7 +223,8 @@ async def play(context):
|
||||||
|
|
||||||
embed.title = match["title"]
|
embed.title = match["title"]
|
||||||
embed.url = match["link"]
|
embed.url = match["link"]
|
||||||
embed.set_thumbnail(match["thumbnails"][0]["url"])
|
if match["thumbnails"]:
|
||||||
|
embed.set_thumbnail(match["thumbnails"][0]["url"])
|
||||||
|
|
||||||
if running(context.guild_id) and await state(context.guild_id):
|
if running(context.guild_id) and await state(context.guild_id):
|
||||||
plugin.d.queue[context.guild_id].extend(sources)
|
plugin.d.queue[context.guild_id].extend(sources)
|
||||||
|
|
Loading…
Reference in a new issue