summary refs log tree commit diff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-05-14 16:53:10 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-05-14 16:53:10 +0800
commitc827d4cfdb9ce47d13ccbec32d2b32dfb429ea8a (patch)
tree788d1a50f27b2cfac05a1fbac906aa4f024393b7
parentfbff30d2dbc6462c628384ea5960c2461e7cdcca (diff)
downloadyoutube-dl-c827d4cfdb9ce47d13ccbec32d2b32dfb429ea8a.tar.gz
youtube-dl-c827d4cfdb9ce47d13ccbec32d2b32dfb429ea8a.tar.xz
youtube-dl-c827d4cfdb9ce47d13ccbec32d2b32dfb429ea8a.zip
[xattr] Enhanced error messages on Windows
-rw-r--r--youtube_dl/postprocessor/xattrpp.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/postprocessor/xattrpp.py b/youtube_dl/postprocessor/xattrpp.py
index 27e273000..7d88e1308 100644
--- a/youtube_dl/postprocessor/xattrpp.py
+++ b/youtube_dl/postprocessor/xattrpp.py
@@ -167,7 +167,10 @@ class XAttrMetadataPP(PostProcessor):
                 self._downloader.report_warning(
                     'Unable to write extended attributes due to too long values.')
             else:
-                self._downloader.report_error(
-                    'This filesystem doesn\'t support extended attributes. ' +
-                    '(You may have to enable them in your /etc/fstab)')
+                msg = 'This filesystem doesn\'t support extended attributes. '
+                if os.name == 'nt':
+                    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