diff options
author | Jesús <heckyel@hyperbola.info> | 2021-12-02 11:02:59 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-12-02 11:02:59 -0500 |
commit | 7739b37f957b098d237179534d1b8c20597d55b6 (patch) | |
tree | ce76d6ff608ad30fa81375dd4210b996d3430a97 /yt_dlp/options.py | |
parent | ccf02e63e53e481824b56b4e05ab1c2a9558c9a7 (diff) | |
parent | 9bdd99cf39974bf19badc0dfc9ee7172ff198e98 (diff) | |
download | hypervideo-pre-7739b37f957b098d237179534d1b8c20597d55b6.tar.lz hypervideo-pre-7739b37f957b098d237179534d1b8c20597d55b6.tar.xz hypervideo-pre-7739b37f957b098d237179534d1b8c20597d55b6.zip |
updated from upstream | 02/12/2021 at 11:02
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 2750a0f7b..0f807e805 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -1615,6 +1615,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 |