diff options
author | Parker <contact@pkrm.dev> | 2024-04-13 00:59:20 -0500 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-04-13 00:59:20 -0500 |
commit | 3c66d50822caf7959bb85a17e93aa03bc6c3639b (patch) | |
tree | c6596e899191be6c9ff2fff075fba3af59594f2e /code/custom_source.py | |
parent | 968cd93482481ed6410fdc00a49df7e314a25bd4 (diff) |
Prefer YT over DZ
Diffstat (limited to 'code/custom_source.py')
-rw-r--r-- | code/custom_source.py | 8 |
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, |