[YoutubeDL] Warn if an extractor returns compat_list
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 20 Nov 2014 15:29:31 +0000 (16:29 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 20 Nov 2014 15:29:31 +0000 (16:29 +0100)
youtube_dl/YoutubeDL.py

index 94c50903c737ea298b44e772b55500766b2f904b..79f5e995e1129453d72e829fe1bfd8f668b3cfc3 100755 (executable)
@@ -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,
                     {