mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
[Audio] Fix for localtrack playing (#2557)
This commit is contained in:
parent
56b220b92e
commit
39b64b7570
@ -1181,7 +1181,7 @@ class Audio(commands.Cog):
|
||||
player = lavalink.get_player(ctx.guild.id)
|
||||
guild_data = await self.config.guild(ctx.guild).all()
|
||||
if type(query) is not list:
|
||||
if not query.startswith("http"):
|
||||
if not (query.startswith("http") or query.startswith("localtracks")):
|
||||
query = f"ytsearch:{query}"
|
||||
tracks = await player.get_tracks(query)
|
||||
if not tracks:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user