mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	Rename util.u to util.compat_str
This commit is contained in:
		| @@ -332,7 +332,7 @@ class FileDownloader(object): | ||||
| 			template_dict['autonumber'] = u'%05d' % self._num_downloads | ||||
|  | ||||
| 			template_dict = dict((key, u'NA' if val is None else val) for key, val in template_dict.items()) | ||||
| 			template_dict = dict((k, sanitize_filename(u(v), self.params.get('restrictfilenames'))) for k,v in template_dict.items()) | ||||
| 			template_dict = dict((k, sanitize_filename(compat_str(v), self.params.get('restrictfilenames'))) for k,v in template_dict.items()) | ||||
|  | ||||
| 			filename = self.params['outtmpl'] % template_dict | ||||
| 			return filename | ||||
| @@ -403,7 +403,7 @@ class FileDownloader(object): | ||||
| 			if dn != '' and not os.path.exists(dn): # dn is already encoded | ||||
| 				os.makedirs(dn) | ||||
| 		except (OSError, IOError), err: | ||||
| 			self.trouble(u'ERROR: unable to create directory ' + u(err)) | ||||
| 			self.trouble(u'ERROR: unable to create directory ' + compat_str(err)) | ||||
| 			return | ||||
|  | ||||
| 		if self.params.get('writedescription', False): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister