A feature-rich command-line audio/video downloader
Ensure same config file is not loaded multiple times
pukkandan2aa5e2cc01b8
diff --git a/yt_dlp/options.py b/yt_dlp/options.pyindex 7a8979273a..d20f65e99c 100644--- a/yt_dlp/options.py+++ b/yt_dlp/options.py@@ -1619,6 +1619,9 @@ def parseOpts(overrideArguments=None):current_path = os.path.join(path, '%s.conf' % package)config = _readOptions(current_path, default=None)if config is not None:+ current_path = os.path.realpath(current_path)+ if current_path in paths.values():+ return Falseconfigs[name], paths[name] = config, current_pathreturn parser.parse_args(config)[0].ignoreconfigreturn False