Skip to content

Commit

Permalink
Fix 3.7 compatability issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Mar 10, 2022
1 parent 4d93064 commit 23b5c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wavelink/tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async def search(

check = yarl.URL(query)

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

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

0 comments on commit 23b5c85

Please sign in to comment.