youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 9bb8dc8e42da4e47008a0acd2a1d69e00193e02d
parent a171dbfc2703b8d7c726024cdc21875b628b09d5
Author: Filippo Valsorda <filippo.valsorda@gmail.com>
Date:   Sun, 19 Aug 2012 16:06:33 +0200

Python 2.6 compatibility fix. Thanks @Jamesc359 - closes #400

Diffstat:
Myoutube-dl | 0
Myoutube_dl/utils.py | 2+-
2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube-dl b/youtube-dl Binary files differ. diff --git 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.)