A feature-rich command-line audio/video downloader
Fix `--config-location -`
pukkandan1060f82f899b
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.pyindex 666ef67ffb..25910ed6c7 100644--- a/yt_dlp/utils.py+++ b/yt_dlp/utils.py@@ -5554,6 +5554,9 @@ class Config:self.parsed_args = self.own_argsfor 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')continuelocation = os.path.join(directory, expand_path(location))