1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-08 05:28:30 +00:00

[pp/XAttrMetadata] Don't write "Where from" on Windows (#13944)

Fix 3e918d825d

Closes #13942
Authored by: seproDev
This commit is contained in:
sepro 2025-08-06 16:52:34 +02:00 committed by GitHub
parent e651a53a2f
commit 1e0c77ddcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,6 +54,9 @@ def run(self, info):
if infoname == 'upload_date': if infoname == 'upload_date':
value = hyphenate_date(value) value = hyphenate_date(value)
elif xattrname == 'com.apple.metadata:kMDItemWhereFroms': elif xattrname == 'com.apple.metadata:kMDItemWhereFroms':
# NTFS ADS doesn't support colons in names
if os.name == 'nt':
continue
value = self.APPLE_PLIST_TEMPLATE % value value = self.APPLE_PLIST_TEMPLATE % value
write_xattr(info['filepath'], xattrname, value.encode()) write_xattr(info['filepath'], xattrname, value.encode())