diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2015-02-10 04:22:10 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2015-02-10 04:22:10 +0100 |
commit | 7e5db8c930e5f154287f98c6c0da90fffd2ede4f (patch) | |
tree | 1363cfbbd15c8ccad3250eedc33ca01c3b4eac61 /youtube_dl/extractor/common.py | |
parent | f7a211dcc8d86fe5a4d25f4d209ffb3efc05bdfc (diff) |
[options] Add --no-color
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r-- | youtube_dl/extractor/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index eee936a6f..382e846c5 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -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 |