mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
Quick fix for &list/cache issue
What could go wrong?
This commit is contained in:
parent
c6f0f1ee1c
commit
496b122059
@ -1148,6 +1148,9 @@ class Audio:
|
|||||||
else:
|
else:
|
||||||
url = "[SEARCH:]" + url
|
url = "[SEARCH:]" + url
|
||||||
|
|
||||||
|
if "[SEARCH:]" not in url and "youtube" in url:
|
||||||
|
url = url.split("&")[0] # Temp fix for the &list issue
|
||||||
|
|
||||||
self._stop_player(server)
|
self._stop_player(server)
|
||||||
self._clear_queue(server)
|
self._clear_queue(server)
|
||||||
self._add_to_queue(server, url)
|
self._add_to_queue(server, url)
|
||||||
@ -1372,6 +1375,9 @@ class Audio:
|
|||||||
else:
|
else:
|
||||||
url = "[SEARCH:]" + url
|
url = "[SEARCH:]" + url
|
||||||
|
|
||||||
|
if "[SEARCH:]" not in url and "youtube" in url:
|
||||||
|
url = url.split("&")[0] # Temp fix for the &list issue
|
||||||
|
|
||||||
# We have a queue to modify
|
# We have a queue to modify
|
||||||
if self.queue[server.id]["PLAYLIST"]:
|
if self.queue[server.id]["PLAYLIST"]:
|
||||||
log.debug("queueing to the temp_queue for sid {}".format(
|
log.debug("queueing to the temp_queue for sid {}".format(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user