1
0
Fork 0
mirror of synced 2024-05-24 14:29:39 +12:00

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:
Phxntxm 2017-07-27 15:27:58 -05:00
parent 54967acfbd
commit af8b3bcf29

View file

@ -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.