mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-01 21:34:53 +00:00
@@ -5420,6 +5420,8 @@ class Config:
|
||||
# FIXME: https://github.com/ytdl-org/youtube-dl/commit/dfe5fa49aed02cf36ba9f743b11b0903554b5e56
|
||||
contents = optionf.read()
|
||||
res = shlex.split(contents, comments=True)
|
||||
except Exception as err:
|
||||
raise ValueError(f'Unable to parse "{filename}": {err}')
|
||||
finally:
|
||||
optionf.close()
|
||||
return res
|
||||
|
Reference in New Issue
Block a user