summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2013-01-12 22:10:36 +0100
committerPhilipp Hagemeister <[email protected]>2013-01-12 22:10:36 +0100
commit67353612ba77192e40bbfacb1ea13417535a8aba (patch)
tree09d27e30ea32d390f0acdbb39edf844f48869544 /youtube_dl/__init__.py
parentbffbd5f03806836d5a55f65542ad6061a7a03ccb (diff)
downloadyoutube-dl-67353612ba77192e40bbfacb1ea13417535a8aba.tar.gz
youtube-dl-67353612ba77192e40bbfacb1ea13417535a8aba.zip
Revert "Move update to front"
This reverts commit db30f02b50a565091376b316208bfdddd729b4ed.
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r--youtube_dl/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index 615515965..10e9c8b8c 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -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: