mirror of
				https://github.com/ytdl-org/youtube-dl
				synced 2025-11-03 19:23:44 +00:00 
			
		
		
		
	[test_YoutubeDL] Fix get_ids
This commit is contained in:
		
							parent
							
								
									de1121d749
								
							
						
					
					
						commit
						e0abaab293
					
				@ -818,8 +818,9 @@ class TestYoutubeDL(unittest.TestCase):
 | 
			
		||||
 | 
			
		||||
        def get_ids(params):
 | 
			
		||||
            ydl = YDL(params)
 | 
			
		||||
            # make a copy because the dictionary can be modified
 | 
			
		||||
            ydl.process_ie_result(playlist.copy())
 | 
			
		||||
            # make a deep copy because the dictionary and nested entries
 | 
			
		||||
            # can be modified
 | 
			
		||||
            ydl.process_ie_result(copy.deepcopy(playlist))
 | 
			
		||||
            return [int(v['id']) for v in ydl.downloaded_info_dicts]
 | 
			
		||||
 | 
			
		||||
        result = get_ids({})
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user