[options] Add --no-color
[youtube-dl] / youtube_dl / extractor / common.py
index eee936a6f8b54bc0ca924f2f1a6cd2fd9a23c2f9..382e846c5c73fc352d45f43a072379ff27f2e54c 100644 (file)
@@ -514,7 +514,7 @@ class InfoExtractor(object):
                 if mobj:
                     break
 
-        if os.name != 'nt' and sys.stderr.isatty():
+        if not self._downloader.params.get('no_color') and os.name != 'nt' and sys.stderr.isatty():
             _name = '\033[0;34m%s\033[0m' % name
         else:
             _name = name