aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-09-13 16:18:15 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-09-13 16:46:34 +0530
commit1060f82f899b61a0a1c63df37ecdf6dc2bae50e8 (patch)
tree0608ff111cf54e3700fb44ceb7ee7579df36f172
parent22df97f9c5ef5aaf6d4451d1c632dee4dc325c5f (diff)
downloadhypervideo-pre-1060f82f899b61a0a1c63df37ecdf6dc2bae50e8.tar.lz
hypervideo-pre-1060f82f899b61a0a1c63df37ecdf6dc2bae50e8.tar.xz
hypervideo-pre-1060f82f899b61a0a1c63df37ecdf6dc2bae50e8.zip
Fix `--config-location -`
-rw-r--r--yt_dlp/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index 666ef67ff..25910ed6c 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -5554,6 +5554,9 @@ class Config:
self.parsed_args = self.own_args
for location in opts.config_locations or []:
if location == '-':
+ if location in self._loaded_paths:
+ continue
+ self._loaded_paths.add(location)
self.append_config(shlex.split(read_stdin('options'), comments=True), label='stdin')
continue
location = os.path.join(directory, expand_path(location))