diff options
| author | salmonik <raisersoft@proton.me> | 2026-03-18 15:29:51 +0100 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-03-18 15:29:51 +0100 |
| commit | c0053ca98912901b5d387d58fbc57f9b7da91f38 (patch) | |
| tree | 14fe7a7beae1ca2745333dcd7032a6ced28de0f7 /cogs/music/play_commands.py | |
| parent | fix tts (diff) | |
| download | senator-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.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 | ||
