aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/music/play_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'cogs/music/play_commands.py')
-rw-r--r--cogs/music/play_commands.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cogs/music/play_commands.py b/cogs/music/play_commands.py
index b25ce84..e3ca4c1 100644
--- a/cogs/music/play_commands.py
+++ b/cogs/music/play_commands.py
@@ -9,7 +9,8 @@ import mutagen
9from typing import List, Tuple, Callable, Awaitable 9from typing import List, Tuple, Callable, Awaitable
10from os import PathLike 10from os import PathLike
11 11
12from cogs.music import search_utils, audio_playback, media_processing 12from cogs.music import audio_playback, media_processing
13from cogs.utils import file_search as search_utils
13from discord.ext import commands 14from discord.ext import commands
14from discord.commands import OptionChoice 15from discord.commands import OptionChoice
15import logging 16import logging
@@ -110,7 +111,7 @@ class PlayCommands(commands.Cog):
110 """Autocomplete handler for search queries.""" 111 """Autocomplete handler for search queries."""
111 query = ctx.value.lower() 112 query = ctx.value.lower()
112 try: 113 try:
113 results = await search_utils.AudioSearcher.search_local_autocomplete(query, max_results=25) 114 results = await search_utils.UniversalSearcher.search_local_autocomplete(query, max_results=25, filetype="Audio")
114 choices = [] 115 choices = []
115 self.path_mapping = {} # Reset the mapping for each new query 116 self.path_mapping = {} # Reset the mapping for each new query
116 117