mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-18 03:54:55 -05:00
[xattr] Enhanced error messages on Windows
This commit is contained in:
parent
fbff30d2db
commit
c827d4cfdb
1 changed files with 6 additions and 3 deletions
|
@ -167,7 +167,10 @@ def write_xattr(path, key, value):
|
||||||
self._downloader.report_warning(
|
self._downloader.report_warning(
|
||||||
'Unable to write extended attributes due to too long values.')
|
'Unable to write extended attributes due to too long values.')
|
||||||
else:
|
else:
|
||||||
self._downloader.report_error(
|
msg = 'This filesystem doesn\'t support extended attributes. '
|
||||||
'This filesystem doesn\'t support extended attributes. ' +
|
if os.name == 'nt':
|
||||||
'(You may have to enable them in your /etc/fstab)')
|
msg += 'You need to use NTFS.'
|
||||||
|
else:
|
||||||
|
msg += '(You may have to enable them in your /etc/fstab)'
|
||||||
|
self._downloader.report_error(msg)
|
||||||
return [], info
|
return [], info
|
||||||
|
|
Loading…
Reference in a new issue