aboutsummaryrefslogtreecommitdiff
path: root/code/custom_source.py
diff options
context:
space:
mode:
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 99cbba8..8ed2091 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.
- dzsearch = f"dzsearch:{self.title} {self.author}"
- results = await client.get_tracks(dzsearch)
+ ytsearch = f"ytsearch:{self.title} {self.author} audio"
+ results = await client.get_tracks(ytsearch)
if not results.tracks or results.load_type in (
LoadType.EMPTY,
LoadType.ERROR,
):
- ytsearch = f"ytsearch:{self.title} {self.author}"
- results = await client.get_tracks(ytsearch)
+ dzsearch = f"dzsearch:{self.title} {self.author}"
+ results = await client.get_tracks(dzsearch)
if not results.tracks or results.load_type in (
LoadType.EMPTY,