mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-06 05:25:49 +01:00
parent
bf1824b391
commit
44a6fcff39
2 changed files with 12 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue