diff options
author | Jesus <heckyel@riseup.net> | 2023-09-11 02:34:10 +0800 |
---|---|---|
committer | Jesus <heckyel@riseup.net> | 2023-09-11 02:34:10 +0800 |
commit | a1753fa7d28f07ede5541fcd3a0a50655532ba05 (patch) | |
tree | ffa0ec7d86c567fc60c01578b9301dc6b53965b3 | |
parent | a0ddcdbdba3ce04e3f0a5bd761d2c50f24a403eb (diff) | |
download | hypervideo-a1753fa7d28f07ede5541fcd3a0a50655532ba05.tar.lz hypervideo-a1753fa7d28f07ede5541fcd3a0a50655532ba05.tar.xz hypervideo-a1753fa7d28f07ede5541fcd3a0a50655532ba05.zip |
update from upstream
-rw-r--r-- | hypervideo_dl/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hypervideo_dl/__init__.py b/hypervideo_dl/__init__.py index 1bab1dd..275ab85 100644 --- a/hypervideo_dl/__init__.py +++ b/hypervideo_dl/__init__.py @@ -956,12 +956,16 @@ def _real_main(argv=None): FFmpegPostProcessor._ffmpeg_location.set(opts.ffmpeg_location) with YoutubeDL(ydl_opts) as ydl: + pre_process = opts.update_self or opts.rm_cachedir actual_use = all_urls or opts.load_info_filename if opts.rm_cachedir: ydl.cache.remove() if not actual_use: + if pre_process: + return ydl._download_retcode + ydl.warn_if_short_id(sys.argv[1:] if argv is None else argv) parser.error( 'You must provide at least one URL.\n' |