diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-02-28 22:32:20 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-02-28 23:14:37 +0530 |
commit | b059188383eee4fa336ef728dda3ff4bb7335625 (patch) | |
tree | 98591e890da306ce63378c77de7428334a5db2da /yt_dlp/plugins.py | |
parent | 5038f6d713303e0967d002216e7a88652401c22a (diff) | |
download | hypervideo-pre-b059188383eee4fa336ef728dda3ff4bb7335625.tar.lz hypervideo-pre-b059188383eee4fa336ef728dda3ff4bb7335625.tar.xz hypervideo-pre-b059188383eee4fa336ef728dda3ff4bb7335625.zip |
[plugins] Don't look in `.egg` directories
Closes #6306
Diffstat (limited to 'yt_dlp/plugins.py')
-rw-r--r-- | yt_dlp/plugins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/plugins.py b/yt_dlp/plugins.py index 6eecdb4d0..6422c7a51 100644 --- a/yt_dlp/plugins.py +++ b/yt_dlp/plugins.py @@ -88,7 +88,7 @@ class PluginFinder(importlib.abc.MetaPathFinder): candidate = path / parts if candidate.is_dir(): yield candidate - elif path.suffix in ('.zip', '.egg', '.whl'): + elif path.suffix in ('.zip', '.egg', '.whl') and path.is_file(): if parts in dirs_in_zip(path): yield candidate |