Browse Source

[plugins] Don't look in `.egg` directories

Closes #6306
pukkandan 2 years ago
parent
commit
b059188383
1 changed files with 1 additions and 1 deletions
  1. 1 1
      yt_dlp/plugins.py

+ 1 - 1
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