[XAttrMetadata] Refactor and document dependencies
This commit is contained in:
parent
43d7f5a5d0
commit
6f7563beb7
5 changed files with 82 additions and 119 deletions
|
|
@ -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('_')}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue