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....)
This commit is contained in:
parent
54967acfbd
commit
af8b3bcf29
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue