1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-31 22:55:18 +00:00

[XAttrMetadata] Refactor and document dependencies

This commit is contained in:
pukkandan
2022-05-01 04:46:05 +05:30
parent 43d7f5a5d0
commit 6f7563beb7
5 changed files with 81 additions and 118 deletions

View File

@@ -75,6 +75,15 @@ except (ImportError, SyntaxError):
websockets = None
try:
import xattr # xattr or pyxattr
except ImportError:
xattr = None
else:
if hasattr(xattr, 'set'): # pyxattr
xattr._yt_dlp__identifier = 'pyxattr'
all_dependencies = {k: v for k, v in globals().items() if not k.startswith('_')}