]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Revert "Move update to front"
authorPhilipp Hagemeister <phihag@phihag.de>
Sat, 12 Jan 2013 21:10:36 +0000 (22:10 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sat, 12 Jan 2013 21:10:36 +0000 (22:10 +0100)
This reverts commit db30f02b50a565091376b316208bfdddd729b4ed.

youtube_dl/__init__.py

index 615515965c652834c129ab65ac996092e22a2b28..10e9c8b8c9cfe9f9ff3042384abf01fbd58d4d0b 100644 (file)
@@ -280,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()
@@ -467,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: