aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r--youtube_dl/__init__.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index e1bd67919..a30526589 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -3,7 +3,7 @@
from __future__ import unicode_literals
-__license__ = 'Public Domain'
+__license__ = 'CC0-1.0'
import codecs
import io
@@ -36,7 +36,6 @@ from .utils import (
write_string,
render_table,
)
-from .update import update_self
from .downloader import (
FileDownloader,
)
@@ -440,9 +439,6 @@ def _real_main(argv=None):
}
with YoutubeDL(ydl_opts) as ydl:
- # Update version
- if opts.update_self:
- update_self(ydl.to_screen, opts.verbose, ydl._opener)
# Remove cache dir
if opts.rm_cachedir:
@@ -450,8 +446,6 @@ def _real_main(argv=None):
# Maybe do nothing
if (len(all_urls) < 1) and (opts.load_info_filename is None):
- if opts.update_self or opts.rm_cachedir:
- sys.exit()
ydl.warn_if_short_id(sys.argv[1:] if argv is None else argv)
parser.error(