aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 7a8979273..d20f65e99 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 False
configs[name], paths[name] = config, current_path
return parser.parse_args(config)[0].ignoreconfig
return False