mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	Add key requested_downloads in the root info_dict
				
					
				
			This commit is contained in:
		| @@ -30,6 +30,7 @@ class YDL(FakeYDL): | ||||
|         self.msgs = [] | ||||
|  | ||||
|     def process_info(self, info_dict): | ||||
|         info_dict = info_dict.copy() | ||||
|         info_dict.pop('__original_infodict', None) | ||||
|         self.downloaded_info_dicts.append(info_dict) | ||||
|  | ||||
| @@ -908,7 +909,7 @@ class TestYoutubeDL(unittest.TestCase): | ||||
|             def _match_entry(self, info_dict, incomplete=False): | ||||
|                 res = super(FilterYDL, self)._match_entry(info_dict, incomplete) | ||||
|                 if res is None: | ||||
|                     self.downloaded_info_dicts.append(info_dict) | ||||
|                     self.downloaded_info_dicts.append(info_dict.copy()) | ||||
|                 return res | ||||
|  | ||||
|         first = { | ||||
|   | ||||
| @@ -53,7 +53,7 @@ class YoutubeDL(yt_dlp.YoutubeDL): | ||||
|         raise ExtractorError(message) | ||||
|  | ||||
|     def process_info(self, info_dict): | ||||
|         self.processed_info_dicts.append(info_dict) | ||||
|         self.processed_info_dicts.append(info_dict.copy()) | ||||
|         return super(YoutubeDL, self).process_info(info_dict) | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan