1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00

Apply suggestions from code review

Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
This commit is contained in:
coletdjnz 2025-02-11 20:19:03 +13:00 committed by GitHub
parent f9ef24c7f3
commit 635d550cb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View file

@ -383,7 +383,7 @@ select = [
"E704", "E704",
"W391", "W391",
"W504", "W504",
] ]
exclude = "*/extractor/lazy_extractors.py,*venv*,*/test/testdata/sigs/player-*.js,.idea,.vscode" exclude = "*/extractor/lazy_extractors.py,*venv*,*/test/testdata/sigs/player-*.js,.idea,.vscode"
[tool.pytest.ini_options] [tool.pytest.ini_options]

View file

@ -989,7 +989,7 @@ def _real_main(argv=None):
FFmpegPostProcessor._ffmpeg_location.set(opts.ffmpeg_location) FFmpegPostProcessor._ffmpeg_location.set(opts.ffmpeg_location)
# load all plugins into the global lookup # load all plugins into the global lookup
plugin_dirs.value = list(set(opts.plugin_dirs)) plugin_dirs.value = opts.plugin_dirs
if plugin_dirs.value: if plugin_dirs.value:
_load_all_plugins() _load_all_plugins()

View file

@ -49,6 +49,7 @@
'load_all_plugins', 'load_all_plugins',
'load_plugins', 'load_plugins',
'register_plugin_spec', 'register_plugin_spec',
'PluginSpec',
] ]