aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/music
diff options
context:
space:
mode:
Diffstat (limited to 'cogs/music')
-rw-r--r--cogs/music/play_commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cogs/music/play_commands.py b/cogs/music/play_commands.py
index a24169f..e90d85f 100644
--- a/cogs/music/play_commands.py
+++ b/cogs/music/play_commands.py
@@ -109,7 +109,7 @@ class PlayCommands(commands.Cog):
109 if len(display) > 90: 109 if len(display) > 90:
110 display = display[:87] + "..." 110 display = display[:87] + "..."
111 111
112 choices.append(OptionChoice(display[:100], display[:100])) 112 choices.append(OptionChoice(display[:100], url))
113 113
114 if len(choices) >= 25: 114 if len(choices) >= 25:
115 break 115 break
@@ -167,7 +167,7 @@ class PlayCommands(commands.Cog):
167 self, ctx: discord.ApplicationContext, file: str, compressed: bool 167 self, ctx: discord.ApplicationContext, file: str, compressed: bool
168 ) -> None: 168 ) -> None:
169 """Handle file playback from copyparty URL.""" 169 """Handle file playback from copyparty URL."""
170 url = self.path_mapping.get(file, file) 170 url = file # The option value is now the URL directly
171 171
172 if compressed: 172 if compressed:
173 await self._handle_compressed_file_play(ctx, url) 173 await self._handle_compressed_file_play(ctx, url)