aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-07-28 16:49:32 -0500
committerParker <contact@pkrm.dev>2024-07-28 16:49:32 -0500
commit1bffa26776f6c80e2f2513d236f78ce9b7eea39f (patch)
tree6c149983dfafabc18b7258b86f9e1388da6dbda9
parentd6e0313a5a4f59edad1a99e6c082a0d94165f7c4 (diff)
Update search providers (Deezer, YTM, YT)
-rw-r--r--code/cogs/play.py4
-rw-r--r--code/utils/custom_sources.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/code/cogs/play.py b/code/cogs/play.py
index 02c0a11..db21cf7 100644
--- a/code/cogs/play.py
+++ b/code/cogs/play.py
@@ -240,8 +240,8 @@ class Play(commands.Cog):
LoadType.EMPTY,
LoadType.ERROR,
):
- scsearch = f"scsearch:{query}"
- results = await player.node.get_tracks(scsearch)
+ ytmsearch = f"ytmsearch:{query}"
+ results = await player.node.get_tracks(ytmsearch)
if not results.tracks or results.load_type in (
LoadType.EMPTY,
diff --git a/code/utils/custom_sources.py b/code/utils/custom_sources.py
index 6f5d65a..aea74eb 100644
--- a/code/utils/custom_sources.py
+++ b/code/utils/custom_sources.py
@@ -24,8 +24,8 @@ class CustomAudioTrack(DeferredAudioTrack):
LoadType.EMPTY,
LoadType.ERROR,
):
- scsearch = f"scsearch:{self.title} {self.author}"
- results = await client.get_tracks(scsearch)
+ ytmsearch = f"ytmsearch:{self.title} {self.author}"
+ results = await client.get_tracks(ytmsearch)
if not results.tracks or results.load_type in (
LoadType.EMPTY,