1
0
Fork 0
mirror of synced 2024-06-24 01:00:29 +12:00

corrected issue where tuple was returned as the 'result' instead of taking that apart

This commit is contained in:
Phxntxm 2016-12-21 17:12:13 -06:00
parent 431490fa32
commit dcae38778a

View file

@ -264,7 +264,7 @@ class Music:
info = await self.downloader.extract_info(self.bot.loop, song, download=False, process=True)
song = info.get('entries', [])[0]['webpage_url']
_entry = await state.songs.add_entry(song, ctx.message.author)
_entry, position = await state.songs.add_entry(song, ctx.message.author)
if 'ytsearch' in info.get('url', ''):
print(info)
await self.bot.say('Enqueued ' + str(_entry))