A feature-rich command-line audio/video downloader
Python 2.6 compatibility fix. Thanks @Jamesc359 - closes #400
Filippo Valsorda9bb8dc8e42da
diff --git a/youtube-dl b/youtube-dlindex f2268af227..789cb58f53 100755Binary files a/youtube-dl and b/youtube-dl differdiff --git a/youtube_dl/utils.py b/youtube_dl/utils.pyindex 2853ba50f2..922e17eccf 100644--- a/youtube_dl/utils.py+++ b/youtube_dl/utils.py@@ -223,7 +223,7 @@ def encodeFilename(s):assert type(s) == type(u'')- if sys.platform == 'win32' and sys.getwindowsversion().major >= 5:+ if sys.platform == 'win32' and sys.getwindowsversion()[0] >= 5:# Pass u'' directly to use Unicode APIs on Windows 2000 and up# (Detecting Windows NT 4 is tricky because 'major >= 4' would# match Windows 9x series as well. Besides, NT 4 is obsolete.)