Update search providers (Deezer, YTM, YT)

This commit is contained in:
Parker M. 2024-07-28 16:49:32 -05:00
parent d6e0313a5a
commit 1bffa26776
No known key found for this signature in database
GPG Key ID: 95CD2E0C7E329F2A
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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,