0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-22 06:00:00 +00:00

[plugins] Don't look in .egg directories

Closes #6306
This commit is contained in:
pukkandan 2023-02-28 22:32:20 +05:30
parent 5038f6d713
commit b059188383
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View 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