mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-02 07:02:36 +00:00
[pp/XAttrMetadata] Don't write "Where from" on Windows (#13944)
Fix 3e918d825d7ff367812658957b281b8cda8f9ebb Closes #13942 Authored by: seproDev
This commit is contained in:
parent
e651a53a2f
commit
1e0c77ddcc
@ -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…
x
Reference in New Issue
Block a user