aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus <heckyel@riseup.net>2023-09-04 11:05:10 +0800
committerJesus <heckyel@riseup.net>2023-09-04 11:05:10 +0800
commita0ddcdbdba3ce04e3f0a5bd761d2c50f24a403eb (patch)
tree284e50b33c3cd03de8a24fd331d5116546022d07
parentcae7fb9f44f16b45caa22914952fc35eb17ebf40 (diff)
downloadhypervideo-a0ddcdbdba3ce04e3f0a5bd761d2c50f24a403eb.tar.lz
hypervideo-a0ddcdbdba3ce04e3f0a5bd761d2c50f24a403eb.tar.xz
hypervideo-a0ddcdbdba3ce04e3f0a5bd761d2c50f24a403eb.zip
yt_dlp/__init__.py: minor fix
-rw-r--r--hypervideo_dl/__init__.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/hypervideo_dl/__init__.py b/hypervideo_dl/__init__.py
index 275ab85..1bab1dd 100644
--- a/hypervideo_dl/__init__.py
+++ b/hypervideo_dl/__init__.py
@@ -956,16 +956,12 @@ 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'