This commit is contained in:
		| @@ -1337,8 +1337,11 @@ class YoutubeDL(object): | |||||||
|                 self.to_screen('[info] Video description metadata is already present') |                 self.to_screen('[info] Video description metadata is already present') | ||||||
|             else: |             else: | ||||||
|                 self.to_screen('[info] Writing video description metadata as JSON to: ' + infofn) |                 self.to_screen('[info] Writing video description metadata as JSON to: ' + infofn) | ||||||
|  |                 filtered_info_dict = dict( | ||||||
|  |                     (k, v) for k, v in info_dict.items() | ||||||
|  |                     if not k in ['requested_formats', 'requested_subtitles']) | ||||||
|                 try: |                 try: | ||||||
|                     write_json_file(info_dict, infofn) |                     write_json_file(filtered_info_dict, infofn) | ||||||
|                 except (OSError, IOError): |                 except (OSError, IOError): | ||||||
|                     self.report_error('Cannot write metadata to JSON file ' + infofn) |                     self.report_error('Cannot write metadata to JSON file ' + infofn) | ||||||
|                     return |                     return | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․