]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/__init__.py
Work around buggy HTML Parser in Python < 2.7.3 (Closes #662)
[youtube-dl.git] / youtube_dl / __init__.py
index ae12128b96fdba83cedc78857ccf246700681057..10e9c8b8c9cfe9f9ff3042384abf01fbd58d4d0b 100644 (file)
@@ -22,6 +22,7 @@ __authors__  = (
     'Christian Albrecht',
     'Dave Vasilevsky',
     'Jaime Marquínez Ferrándiz',
+    'Jeff Crouse',
     )
 
 __license__ = 'Public Domain'
@@ -279,10 +280,6 @@ def parseOpts():
 def _real_main():
     parser, opts, args = parseOpts()
 
-    # Update version
-    if opts.update_self:
-        update_self(fd.to_screen, opts.verbose, sys.argv[0])
-
     # Open appropriate CookieJar
     if opts.cookiefile is None:
         jar = compat_cookiejar.CookieJar()
@@ -466,6 +463,10 @@ def _real_main():
     if opts.recodevideo:
         fd.add_post_processor(FFmpegVideoConvertor(preferedformat=opts.recodevideo))
 
+    # Update version
+    if opts.update_self:
+        update_self(fd.to_screen, opts.verbose, sys.argv[0])
+
     # Maybe do nothing
     if len(all_urls) < 1:
         if not opts.update_self: