mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-01 15:48:45 +02:00
[cleanup] Misc
Closes #6288, Closes #7197, Closes #7265, Closes #7353, Closes #5773 Authored by: mikf, freezboltz, pukkandan
This commit is contained in:
parent
db3ad8a676
commit
ad54c9130e
23 changed files with 138 additions and 102 deletions
|
@ -19,11 +19,11 @@ def parse_patched_options(opts):
|
|||
'extract_flat': False,
|
||||
'concat_playlist': 'never',
|
||||
})
|
||||
yt_dlp.options.__dict__['create_parser'] = lambda: patched_parser
|
||||
yt_dlp.options.create_parser = lambda: patched_parser
|
||||
try:
|
||||
return yt_dlp.parse_options(opts)
|
||||
finally:
|
||||
yt_dlp.options.__dict__['create_parser'] = create_parser
|
||||
yt_dlp.options.create_parser = create_parser
|
||||
|
||||
|
||||
default_opts = parse_patched_options([]).ydl_opts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue