mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 08:37:07 -05:00 
			
		
		
		
	[downloader/http] xattr values should be bytes
This commit is contained in:
		@@ -182,7 +182,7 @@ class HttpFD(FileDownloader):
 | 
			
		||||
 | 
			
		||||
                if self.params.get('xattr_set_filesize', False) and data_len is not None:
 | 
			
		||||
                    try:
 | 
			
		||||
                        write_xattr(tmpfilename, 'user.ytdl.filesize', str(data_len))
 | 
			
		||||
                        write_xattr(tmpfilename, 'user.ytdl.filesize', str(data_len).encode('utf-8'))
 | 
			
		||||
                    except (XAttrUnavailableError, XAttrMetadataError) as err:
 | 
			
		||||
                        self.report_error('unable to set filesize xattr: %s' % str(err))
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user