Remove SoundCloud searching
SoundCloud was returning too many tracks that were not as expected (weird versions/recordings/cover artists, etc.) so it has been removed.
This commit is contained in:
parent
514a0a737f
commit
312e2f12be
@ -132,15 +132,15 @@ class Play(commands.Cog):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
if not url_rx.match(query):
|
if not url_rx.match(query):
|
||||||
ytsearch = f"scsearch:{query}"
|
ytsearch = f"ytsearch:{query}"
|
||||||
results = await player.node.get_tracks(ytsearch)
|
results = await player.node.get_tracks(ytsearch)
|
||||||
|
|
||||||
if not results.tracks or results.load_type in (
|
if not results.tracks or results.load_type in (
|
||||||
LoadType.EMPTY,
|
LoadType.EMPTY,
|
||||||
LoadType.ERROR,
|
LoadType.ERROR,
|
||||||
):
|
):
|
||||||
scsearch = f"dzsearch:{query}"
|
dzsearch = f"dzsearch:{query}"
|
||||||
results = await player.node.get_tracks(scsearch)
|
results = await player.node.get_tracks(dzsearch)
|
||||||
else:
|
else:
|
||||||
results = await player.node.get_tracks(query)
|
results = await player.node.get_tracks(query)
|
||||||
|
|
||||||
@ -151,7 +151,7 @@ class Play(commands.Cog):
|
|||||||
LoadType.ERROR,
|
LoadType.ERROR,
|
||||||
):
|
):
|
||||||
embed.title = "Nothing Found"
|
embed.title = "Nothing Found"
|
||||||
embed.description = "Nothing for that query could be found. If this continues happening for other songs, please run `/bug` to let the developer know."
|
embed.description = "Nothing for that query could be found. If this continues happening for other songs, please run </bug:1224840889906499626> to let the developer know."
|
||||||
return await interaction.response.send_message(
|
return await interaction.response.send_message(
|
||||||
embed=embed, ephemeral=True
|
embed=embed, ephemeral=True
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user