mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-30 14:15:13 +00:00
committed by
GitHub
parent
7e9a612585
commit
e121e3cee7
@@ -4954,7 +4954,7 @@ def write_xattr(path, key, value):
|
||||
try:
|
||||
_, stderr, returncode = Popen.run(
|
||||
[exe, '-w', key, value, path] if exe == 'xattr' else [exe, '-n', key, '-v', value, path],
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
|
||||
text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
|
||||
except OSError as e:
|
||||
raise XAttrMetadataError(e.errno, e.strerror)
|
||||
if returncode:
|
||||
|
||||
Reference in New Issue
Block a user