IE._WORKING attribute in order to warn the users and skip the tests on broken IEs

This commit is contained in:
Filippo Valsorda 2012-11-27 19:30:09 +01:00
parent 7e4674830e
commit 03c5b0fbd4
2 changed files with 14 additions and 0 deletions

View 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