A feature-rich command-line audio/video downloader
_search_regex's "isatty" call fails with Py2exe's
Itay Brandes87a28127d225
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.pyindex 11b6ed5246..1fc0624a35 100644--- a/youtube_dl/extractor/common.py+++ b/youtube_dl/extractor/common.py@@ -295,7 +295,7 @@ class InfoExtractor(object):mobj = re.search(p, string, flags)if mobj: break- if sys.stderr.isatty() and os.name != 'nt':+ if os.name != 'nt' and sys.stderr.isatty():_name = u'\033[0;34m%s\033[0m' % nameelse:_name = name