1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 17:52:51 +08:00

[YoutubeDL] Warn if an extractor returns compat_list

This commit is contained in:
Philipp Hagemeister 2014-11-20 16:29:31 +01:00
parent 5239075bb6
commit c9bf41145f

View File

@ -679,6 +679,9 @@ class YoutubeDL(object):
ie_result['entries'] = playlist_results
return ie_result
elif result_type == 'compat_list':
self.report_warning(
'Extractor %s returned a compat_list result. '
'It needs to be updated.' % ie_result.get('extractor'))
def _fixup(r):
self.add_extra_info(r,
{