mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-29 15:35:56 -04:00
parent
a392adf56c
commit
3b3959630a
@ -1218,12 +1218,13 @@ def parseOpts(overrideArguments=None):
|
|||||||
|
|
||||||
def read_options(path, user=False):
|
def read_options(path, user=False):
|
||||||
func = _readUserConf if user else _readOptions
|
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)
|
config = func(current_path, default=None)
|
||||||
if user:
|
if user:
|
||||||
config, current_path = config
|
config, current_path = config
|
||||||
if config is None:
|
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)
|
config = func(current_path, default=None)
|
||||||
if user:
|
if user:
|
||||||
config, current_path = config
|
config, current_path = config
|
||||||
|
Loading…
Reference in New Issue
Block a user