From af8b3bcf29eafa7c96d8bf8c1cf919cfbf9d4c1c Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Thu, 27 Jul 2017 15:27:58 -0500 Subject: [PATCH] Check the extractor in case playlist incorrectly returns None (why does this happen...why can't you just be reliable youtube...this data shouldn't be possible....) --- 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 1aed8e2..5082c19 100644 --- a/cogs/voice_utilities/playlist.py +++ b/cogs/voice_utilities/playlist.py @@ -61,7 +61,7 @@ class Playlist(EventEmitter): if not info: raise ExtractionError('Could not extract information from %s' % playlist_url) - if info.get('playlist') is None: + if info.get('playlist') is None and 'playlist' not in info.get('extractor', ''): raise WrongEntryTypeError('This is not a playlist!', False, playlist_url) # Once again, the generic extractor fucks things up.