1
0
Fork 0

[XAttrMetadata] Refactor and document dependencies

This commit is contained in:
pukkandan 2022-05-01 04:46:05 +05:30
commit 6f7563beb7
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
5 changed files with 82 additions and 119 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('_')}