aboutsummaryrefslogtreecommitdiff
path: root/code/utils
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-11-29 01:36:06 -0600
committerParker <contact@pkrm.dev>2024-11-29 01:36:06 -0600
commit4e8030eca4b1f4028268683ccfc7b481b1608dde (patch)
treed208e1c582733bd82993715b9cbc9266aca5390c /code/utils
parente2916fb0aaf5ae7c6306feb7bc13405aabb29ae6 (diff)
Largely embed wording changes + other small tweaks + combine pause commands
Diffstat (limited to 'code/utils')
-rw-r--r--code/utils/command_tree.py17
-rw-r--r--code/utils/source_helpers/spotify/playlist.py2
2 files changed, 1 insertions, 18 deletions
diff --git a/code/utils/command_tree.py b/code/utils/command_tree.py
index 03ecfe4..afdbd2c 100644
--- a/code/utils/command_tree.py
+++ b/code/utils/command_tree.py
@@ -69,22 +69,5 @@ class Tree(app_commands.CommandTree):
except discord.errors.InteractionResponded:
await interaction.followup.send(embed=embed, ephemeral=True)
- elif (error, LoadError):
- embed = create_embed(
- title="Load Error",
- description=(
- "Apple Music and Spotify do not allow direct playing from"
- " their websites, and I was unable to load a track on a"
- " valid source. Please try again."
- ),
- )
- # Only send the error if the interaction is still valid
- try:
- await interaction.response.send_message(
- embed=embed, ephemeral=True
- )
- except discord.errors.InteractionResponded:
- pass
-
else:
raise error
diff --git a/code/utils/source_helpers/spotify/playlist.py b/code/utils/source_helpers/spotify/playlist.py
index c7313a4..7ca9c6a 100644
--- a/code/utils/source_helpers/spotify/playlist.py
+++ b/code/utils/source_helpers/spotify/playlist.py
@@ -15,7 +15,7 @@ async def load(
"""
Get the playlist info from the Spotify API
"""
- playlist_id = query.split("/playlist/")[1].split("?si=")[0]
+ playlist_id = query.split("/playlist/")[1]
try:
# Get the playlist info