mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	Add an option to dump json information
This commit is contained in:
		 Mohamedh Fazal
					Mohamedh Fazal
				
			
				
					committed by
					
						 Philipp Hagemeister
						Philipp Hagemeister
					
				
			
			
				
	
			
			
			 Philipp Hagemeister
						Philipp Hagemeister
					
				
			
						parent
						
							5904088811
						
					
				
				
					commit
					9d1538182f
				
			| @@ -84,6 +84,7 @@ class YoutubeDL(object): | ||||
|     forcethumbnail:    Force printing thumbnail URL. | ||||
|     forcedescription:  Force printing description. | ||||
|     forcefilename:     Force printing final filename. | ||||
|     forcejson:         Force printing json information. | ||||
|     simulate:          Do not download the video files. | ||||
|     format:            Video format code. | ||||
|     format_limit:      Highest quality format to try. | ||||
| @@ -651,6 +652,8 @@ class YoutubeDL(object): | ||||
|             compat_print(filename) | ||||
|         if self.params.get('forceformat', False): | ||||
|             compat_print(info_dict['format']) | ||||
|         if self.params.get('forcejson', False): | ||||
|             compat_print(json.dumps(info_dict)) | ||||
|  | ||||
|         # Do nothing else if in simulate mode | ||||
|         if self.params.get('simulate', False): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user