mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 21:07:06 -05:00 
			
		
		
		
	[postprocessor/xattr] Clarify NO_SPACE message (#14970)
This commit is contained in:
		@@ -42,6 +42,7 @@ class XAttrMetadataPP(PostProcessor):
 | 
			
		||||
                'user.dublincore.format': 'format',
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            num_written = 0
 | 
			
		||||
            for xattrname, infoname in xattr_mapping.items():
 | 
			
		||||
 | 
			
		||||
                value = info.get(infoname)
 | 
			
		||||
@@ -52,6 +53,7 @@ class XAttrMetadataPP(PostProcessor):
 | 
			
		||||
 | 
			
		||||
                    byte_value = value.encode('utf-8')
 | 
			
		||||
                    write_xattr(filename, xattrname, byte_value)
 | 
			
		||||
                    num_written += 1
 | 
			
		||||
 | 
			
		||||
            return [], info
 | 
			
		||||
 | 
			
		||||
@@ -62,8 +64,8 @@ class XAttrMetadataPP(PostProcessor):
 | 
			
		||||
        except XAttrMetadataError as e:
 | 
			
		||||
            if e.reason == 'NO_SPACE':
 | 
			
		||||
                self._downloader.report_warning(
 | 
			
		||||
                    'There\'s no disk space left or disk quota exceeded. ' +
 | 
			
		||||
                    'Extended attributes are not written.')
 | 
			
		||||
                    'There\'s no disk space left, disk quota exceeded or filesystem xattr limit exceeded. ' +
 | 
			
		||||
                    (('Some ' if num_written else '') + 'extended attributes are not written.').capitalize())
 | 
			
		||||
            elif e.reason == 'VALUE_TOO_LONG':
 | 
			
		||||
                self._downloader.report_warning(
 | 
			
		||||
                    'Unable to write extended attributes due to too long values.')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user