From c0053ca98912901b5d387d58fbc57f9b7da91f38 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 18 Mar 2026 15:29:51 +0100 Subject: voice doesn't work due to DAVE, but we got copyparty search --- cogs/music/play_commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cogs/music/play_commands.py') 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 from typing import List, Tuple, Callable, Awaitable from os import PathLike -from cogs.music import search_utils, audio_playback, media_processing +from cogs.music import audio_playback, media_processing +from cogs.utils import file_search as search_utils from discord.ext import commands from discord.commands import OptionChoice import logging @@ -110,7 +111,7 @@ class PlayCommands(commands.Cog): """Autocomplete handler for search queries.""" query = ctx.value.lower() try: - results = await search_utils.AudioSearcher.search_local_autocomplete(query, max_results=25) + results = await search_utils.UniversalSearcher.search_local_autocomplete(query, max_results=25, filetype="Audio") choices = [] self.path_mapping = {} # Reset the mapping for each new query -- cgit v1.2.3