]> jfr.im git - yt-dlp.git/blobdiff - devscripts/cli_to_api.py
[cleanup] Misc
[yt-dlp.git] / devscripts / cli_to_api.py
index b8b7cbcf1dbfeef9838f0ab4a9b77b64bff9c342..2aa51eb6e97ecfa5a53fb5116ad1d4f915f4658b 100644 (file)
@@ -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