diff options
Diffstat (limited to 'yt_dlp/__init__.py')
-rw-r--r-- | yt_dlp/__init__.py | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py index 926b5cad3..524130807 100644 --- a/yt_dlp/__init__.py +++ b/yt_dlp/__init__.py @@ -1,9 +1,7 @@ -#!/usr/bin/env python3 +#!/usr/bin/python # coding: utf-8 -f'You are using an unsupported version of Python. Only Python versions 3.6 and above are supported by yt-dlp' # noqa: F541 - -__license__ = 'Public Domain' +__license__ = 'CC0-1.0' import codecs import io @@ -44,7 +42,6 @@ from .utils import ( traverse_obj, write_string, ) -from .update import run_update from .downloader import ( FileDownloader, ) @@ -819,19 +816,8 @@ def _real_main(argv=None): if opts.rm_cachedir: ydl.cache.remove() - # Update version - if opts.update_self: - # If updater returns True, exit. Required for windows - if run_update(ydl): - if actual_use: - sys.exit('ERROR: The program must exit for the update to complete') - sys.exit() - # Maybe do nothing if not actual_use: - 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( 'You must provide at least one URL.\n' |