[xattr] Enhanced error messages on Windows
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 14 May 2015 08:53:10 +0000 (16:53 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 14 May 2015 08:53:10 +0000 (16:53 +0800)
youtube_dl/postprocessor/xattrpp.py

index 27e273000a5171194c24d8c1e1155c157bc0f387..7d88e130820e073af1b6fd527390cb1cb5dc8dec 100644 (file)
@@ -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