mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-11-01 09:26:45 -07:00 
			
		
		
		
	[core] Avoid deepcopy of ctx dict (fix f35b757)
				
					
				
			* may now contain `LazyList`s * resolves #31999
This commit is contained in:
		@@ -1399,7 +1399,7 @@ class YoutubeDL(object):
 | 
			
		||||
            filters = [self._build_format_filter(f) for f in selector.filters]
 | 
			
		||||
 | 
			
		||||
            def final_selector(ctx):
 | 
			
		||||
                ctx_copy = copy.deepcopy(ctx)
 | 
			
		||||
                ctx_copy = dict(ctx)
 | 
			
		||||
                for _filter in filters:
 | 
			
		||||
                    ctx_copy['formats'] = list(filter(_filter, ctx_copy['formats']))
 | 
			
		||||
                return selector_function(ctx_copy)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user