aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/FileDownloader.py
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2012-11-27 19:30:09 +0100
committerFilippo Valsorda <filippo.valsorda@gmail.com>2012-11-27 19:30:09 +0100
commit03c5b0fbd4de40ebf21a7ba2e389fb5fba50666c (patch)
treec1d8f77e4e70cb266e185f46ab920a2b2f58f211 /youtube_dl/FileDownloader.py
parent7e4674830ed0d85764792b1cd5605813643932b6 (diff)
IE._WORKING attribute in order to warn the users and skip the tests on broken IEs
Diffstat (limited to 'youtube_dl/FileDownloader.py')
-rw-r--r--youtube_dl/FileDownloader.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index 69d169904..1fdd2071f 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -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