aboutsummaryrefslogtreecommitdiff
path: root/code/custom_source.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-04-12 00:38:38 -0500
committerParker <contact@pkrm.dev>2024-04-12 00:38:38 -0500
commit2b2e3906719bf19bd49cfae52a0596cd2b1e420f (patch)
tree75d73fa04142f2029c50d50c0292f7e161e3f75e /code/custom_source.py
parent64cfb7b3e0b8dd3df7b067b258552d64b1bc51ea (diff)
Prefer Deezer search
Diffstat (limited to 'code/custom_source.py')
-rw-r--r--code/custom_source.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/code/custom_source.py b/code/custom_source.py
index d22dea5..99cbba8 100644
--- a/code/custom_source.py
+++ b/code/custom_source.py
@@ -13,14 +13,14 @@ class CustomAudioTrack(DeferredAudioTrack):
async def load(
self, client
): # Load our 'actual' playback track using the metadata from this one.
- scsearch = f"scsearch:{self.title} {self.author}"
- results = await client.get_tracks(scsearch)
+ dzsearch = f"dzsearch:{self.title} {self.author}"
+ results = await client.get_tracks(dzsearch)
if not results.tracks or results.load_type in (
LoadType.EMPTY,
LoadType.ERROR,
):
- dzsearch = f"dzsearch:{self.title} {self.author}"
- results = await client.get_tracks(dzsearch)
+ ytsearch = f"ytsearch:{self.title} {self.author}"
+ results = await client.get_tracks(ytsearch)
if not results.tracks or results.load_type in (
LoadType.EMPTY,