[options] Add --no-color

This commit is contained in:
Philipp Hagemeister 2015-02-10 04:22:10 +01:00
parent f7a211dcc8
commit 7e5db8c930
4 changed files with 10 additions and 3 deletions

View 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