[Audio] Fixed slash character causing issues (#345)

Example: [p]play back in Black AC/DC
This commit is contained in:
Canule 2016-08-30 05:57:11 +02:00 committed by Twentysix
parent b4aacd28e7
commit 399734a991

View File

@ -1274,6 +1274,7 @@ class Audio:
await self.bot.say("That's not a valid URL.") await self.bot.say("That's not a valid URL.")
return return
else: else:
url = url.replace("/", "&#47")
url = "[SEARCH:]" + url url = "[SEARCH:]" + url
if "[SEARCH:]" not in url and "youtube" in url: if "[SEARCH:]" not in url and "youtube" in url: