]> git.bitcoin.ninja Git - youtube-dl/blobdiff - youtube_dl/FileDownloader.py
IE._WORKING attribute in order to warn the users and skip the tests on broken IEs
[youtube-dl] / youtube_dl / FileDownloader.py
index 69d169904937d2d2ac7f06459a49b3a4782ed291..1fdd2071ff2a99e0a1bed36a05abb7c8df4ff89e 100644 (file)
@@ -481,6 +481,11 @@ class FileDownloader(object):
                                if not ie.suitable(url):
                                        continue
 
+                               # Warn if the _WORKING attribute is False
+                               if not ie.working():
+                                       self.trouble(u'WARNING: the program functionality for this site has been marked as broken, '
+                                                        u'and will probably not work. If you want to go on, use the -i option.')
+
                                # Suitable InfoExtractor found
                                suitable_found = True