diff options
Diffstat (limited to '')
| -rw-r--r-- | cogs/music/play_commands.py | 5 |
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 | |||
| 9 | from typing import List, Tuple, Callable, Awaitable | 9 | from typing import List, Tuple, Callable, Awaitable |
| 10 | from os import PathLike | 10 | from os import PathLike |
| 11 | 11 | ||
| 12 | from cogs.music import search_utils, audio_playback, media_processing | 12 | from cogs.music import audio_playback, media_processing |
| 13 | from cogs.utils import file_search as search_utils | ||
| 13 | from discord.ext import commands | 14 | from discord.ext import commands |
| 14 | from discord.commands import OptionChoice | 15 | from discord.commands import OptionChoice |
| 15 | import logging | 16 | import 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 | ||
