diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-01-12 13:45:39 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-01-12 13:45:39 +0100 |
commit | db30f02b50a565091376b316208bfdddd729b4ed (patch) | |
tree | 4da161bcf3fae40cd88563dc1004c56f289e9912 /youtube_dl | |
parent | 4ba726246791306d4166a8a2392938d9b33edc17 (diff) |
Move update to front
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index d7ab0f086..95add9eb1 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -278,6 +278,10 @@ 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() @@ -455,10 +459,6 @@ def _real_main(): if opts.extractaudio: fd.add_post_processor(FFmpegExtractAudioPP(preferredcodec=opts.audioformat, preferredquality=opts.audioquality, keepvideo=opts.keepvideo, nopostoverwrites=opts.nopostoverwrites)) - # 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: |