mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
[Audio] Fixed slash character causing issues (#345)
Example: [p]play back in Black AC/DC
This commit is contained in:
@@ -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("/", "/")
|
||||||
url = "[SEARCH:]" + url
|
url = "[SEARCH:]" + url
|
||||||
|
|
||||||
if "[SEARCH:]" not in url and "youtube" in url:
|
if "[SEARCH:]" not in url and "youtube" in url:
|
||||||
|
|||||||
Reference in New Issue
Block a user