Skip to content

A feature-rich command-line audio/video downloader

py2exe -U fix for Windows XP

Filippo Valsordabcfde70d7382
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index 6e6946fdaf..b4141b69eb 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -75,7 +75,7 @@ def updateSelf(downloader, filename):
b = open(bat, 'w')
print >> b, """
-timeout /t 5 /nobreak
+ping 127.0.0.1 -n 5 -w 1000 > NUL
move /Y "%s.new" "%s"
del "%s"
""" %(exe, exe, bat)