1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Add a second check for misinterpretation for searches as URL's

This commit is contained in:
Phxntxm 2017-05-12 17:53:45 -05:00
parent 7abcbe45d0
commit d0842037f3

View file

@ -50,7 +50,7 @@ class Playlist(EventEmitter):
try:
info = await self.downloader.extract_info(self.loop, song_url, download=False)
except Exception as e:
if "gaierror" in str(e):
if "gaierror" in str(e) or "unknown url type" in str(e):
song_url = "ytsearch:" + song_url
info = await self.downloader.extract_info(self.loop, song_url, download=False)
else: