diff options
author | Jesus <heckyel@riseup.net> | 2023-09-04 08:52:59 +0800 |
---|---|---|
committer | Jesus <heckyel@riseup.net> | 2023-09-04 08:52:59 +0800 |
commit | c8121fb11cfd5d60cae70ec1333e51dd4ed63983 (patch) | |
tree | 2a2cb4e7c255b1829ec52274cf5d86589c3aebfa | |
parent | 0278e0e584e7b8f3f1ed83cb6c370aaf7b904370 (diff) | |
download | hypervideo-pre-c8121fb11cfd5d60cae70ec1333e51dd4ed63983.tar.lz hypervideo-pre-c8121fb11cfd5d60cae70ec1333e51dd4ed63983.tar.xz hypervideo-pre-c8121fb11cfd5d60cae70ec1333e51dd4ed63983.zip |
yt_dlp/__init__.py: remove updater
-rw-r--r-- | yt_dlp/__init__.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py index 5c5fc33ab..b4dc12fac 100644 --- a/yt_dlp/__init__.py +++ b/yt_dlp/__init__.py @@ -962,19 +962,6 @@ def _real_main(argv=None): if opts.rm_cachedir: ydl.cache.remove() - try: - updater = Updater(ydl, opts.update_self) - if opts.update_self and updater.update() and actual_use: - if updater.cmd: - return updater.restart() - # This code is reachable only for zip variant in py < 3.10 - # It makes sense to exit here, but the old behavior is to continue - ydl.report_warning('Restart yt-dlp to use the updated version') - # return 100, 'ERROR: The program must exit for the update to complete' - except Exception: - traceback.print_exc() - ydl._download_retcode = 100 - if not actual_use: if pre_process: return ydl._download_retcode |