mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 00:25:15 +00:00 
			
		
		
		
	[YoutubeDL] Don't sanitize identifiers (closes #12317)
This commit is contained in:
		@@ -616,7 +616,7 @@ class YoutubeDL(object):
 | 
				
			|||||||
            sanitize = lambda k, v: sanitize_filename(
 | 
					            sanitize = lambda k, v: sanitize_filename(
 | 
				
			||||||
                compat_str(v),
 | 
					                compat_str(v),
 | 
				
			||||||
                restricted=self.params.get('restrictfilenames'),
 | 
					                restricted=self.params.get('restrictfilenames'),
 | 
				
			||||||
                is_id=(k == 'id'))
 | 
					                is_id=(k == 'id' or k.endswith('_id')))
 | 
				
			||||||
            template_dict = dict((k, v if isinstance(v, compat_numeric_types) else sanitize(k, v))
 | 
					            template_dict = dict((k, v if isinstance(v, compat_numeric_types) else sanitize(k, v))
 | 
				
			||||||
                                 for k, v in template_dict.items()
 | 
					                                 for k, v in template_dict.items()
 | 
				
			||||||
                                 if v is not None and not isinstance(v, (list, tuple, dict)))
 | 
					                                 if v is not None and not isinstance(v, (list, tuple, dict)))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user