Corrected a couple issues with some variables
This commit is contained in:
parent
673b66959a
commit
61146d5f43
|
@ -283,7 +283,7 @@ class Music:
|
||||||
song = re.sub('[<>\[\]]', '', song)
|
song = re.sub('[<>\[\]]', '', song)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
_entry = await state.songs.add_entry(song, ctx.message.author)
|
_entry, position = await state.songs.add_entry(song, ctx.message.author)
|
||||||
except WrongEntryTypeError:
|
except WrongEntryTypeError:
|
||||||
# This means that a song was attempted to be searched, instead of a link provided
|
# This means that a song was attempted to be searched, instead of a link provided
|
||||||
info = await self.downloader.extract_info(self.bot.loop, song, download=False, process=True)
|
info = await self.downloader.extract_info(self.bot.loop, song, download=False, process=True)
|
||||||
|
@ -297,6 +297,7 @@ class Music:
|
||||||
# Obviously this doesn't work in Discord, so just remove this
|
# Obviously this doesn't work in Discord, so just remove this
|
||||||
error = " ".join(error.split()[1:])
|
error = " ".join(error.split()[1:])
|
||||||
await self.bot.send_message(ctx.message.channel, error)
|
await self.bot.send_message(ctx.message.channel, error)
|
||||||
|
return
|
||||||
await self.bot.say('Enqueued ' + str(_entry))
|
await self.bot.say('Enqueued ' + str(_entry))
|
||||||
|
|
||||||
@commands.command(pass_context=True, no_pm=True)
|
@commands.command(pass_context=True, no_pm=True)
|
||||||
|
|
Loading…
Reference in a new issue