]> jfr.im git - yt-dlp.git/commitdiff
[plugins] Don't look in `.egg` directories
authorpukkandan <redacted>
Tue, 28 Feb 2023 17:02:20 +0000 (22:32 +0530)
committerpukkandan <redacted>
Tue, 28 Feb 2023 17:44:37 +0000 (23:14 +0530)
Closes #6306

yt_dlp/plugins.py

index 6eecdb4d0c6b404dd55405902302557794bfd224..6422c7a51d62b7da6231be389a16c041556a45b6 100644 (file)
@@ -88,7 +88,7 @@ def _get_package_paths(*root_paths, containing_folder='plugins'):
             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