[pp/XAttrMetadata] Don't write "Where from" on Windows

Fix 3e918d825d

Closes #13942
Authored by: seproDev
pull/13944/head
sepro 2 weeks ago
parent e651a53a2f
commit d3cea437d9

@ -54,6 +54,9 @@ class XAttrMetadataPP(PostProcessor):
if infoname == 'upload_date':
value = hyphenate_date(value)
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
write_xattr(info['filepath'], xattrname, value.encode())

Loading…
Cancel
Save