aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/music/play_commands.py
diff options
context:
space:
mode:
authorsalmonik <raisersoft@proton.me>2026-03-18 15:29:51 +0100
committersalmonik <raisersoft@proton.me>2026-03-18 15:29:51 +0100
commitc0053ca98912901b5d387d58fbc57f9b7da91f38 (patch)
tree14fe7a7beae1ca2745333dcd7032a6ced28de0f7 /cogs/music/play_commands.py
parentfix tts (diff)
downloadsenator-sperma-c0053ca98912901b5d387d58fbc57f9b7da91f38.tar.gz
senator-sperma-c0053ca98912901b5d387d58fbc57f9b7da91f38.zip
voice doesn't work due to DAVE, but we got copyparty search
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