mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 03:57:06 -05:00 
			
		
		
		
	Add filename to --dump-json output (Fixes #1908)
This commit is contained in:
		@@ -751,6 +751,7 @@ class YoutubeDL(object):
 | 
			
		||||
        if self.params.get('forceformat', False):
 | 
			
		||||
            self.to_stdout(info_dict['format'])
 | 
			
		||||
        if self.params.get('forcejson', False):
 | 
			
		||||
            info_dict['_filename'] = filename
 | 
			
		||||
            self.to_stdout(json.dumps(info_dict))
 | 
			
		||||
 | 
			
		||||
        # Do nothing else if in simulate mode
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user