Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 23b5c85

Browse files
committed
Fix 3.7 compatability issue.
1 parent 4d93064 commit 23b5c85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wavelink/tracks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ async def search(
184184

185185
check = yarl.URL(query)
186186

187-
if str(check.host).removeprefix('www.') == 'youtube.com' and check.query.get("list") or \
187+
if str(check.host) == 'youtube.com' or str(check.host) == 'www.youtube.com' and check.query.get("list") or \
188188
cls._search_type == 'ytpl':
189189

190190
tracks = await node.get_playlist(cls=YouTubePlaylist, identifier=query)

0 commit comments

Comments
 (0)