aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-01-25 01:37:09 +0530
committerpukkandan <pukkandan@gmail.com>2021-01-25 01:37:09 +0530
commit3b3959630ad0dd5bc0ce904f3ec8fe88d8a1f283 (patch)
tree8223fa10dae53e786bdfb02c8b53d1bca60dde46
parenta392adf56cd1636789a5f48edb43f6491d1a6049 (diff)
Fix wrong user config (Closes #32)2021.01.24-1
:ci skip dl
-rw-r--r--youtube_dlc/options.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dlc/options.py b/youtube_dlc/options.py
index 362cb6296..1bbe15ace 100644
--- a/youtube_dlc/options.py
+++ b/youtube_dlc/options.py
@@ -1218,12 +1218,13 @@ def parseOpts(overrideArguments=None):
def read_options(path, user=False):
func = _readUserConf if user else _readOptions
- current_path = os.path.join(path, 'yt-dlp.conf')
+ ext = '' if user else '.conf'
+ current_path = os.path.join(path, 'yt-dlp%s' % ext)
config = func(current_path, default=None)
if user:
config, current_path = config
if config is None:
- current_path = os.path.join(path, 'youtube-dlc.conf')
+ current_path = os.path.join(path, 'youtube-dlc%s' % ext)
config = func(current_path, default=None)
if user:
config, current_path = config