From d0842037f33ed22f5ee6916b1a227bb9f3b145fd Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 12 May 2017 17:53:45 -0500 Subject: [PATCH] Add a second check for misinterpretation for searches as URL's --- cogs/voice_utilities/playlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/voice_utilities/playlist.py b/cogs/voice_utilities/playlist.py index 8310160..7ff4599 100644 --- a/cogs/voice_utilities/playlist.py +++ b/cogs/voice_utilities/playlist.py @@ -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: