mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 08:47:06 -05:00 
			
		
		
		
	Merge pull request #4395 from cryptonaut/issue2883
Handle --get-url with merged formats (fixes #2883)
This commit is contained in:
		@@ -942,6 +942,10 @@ class YoutubeDL(object):
 | 
			
		||||
        if self.params.get('forceid', False):
 | 
			
		||||
            self.to_stdout(info_dict['id'])
 | 
			
		||||
        if self.params.get('forceurl', False):
 | 
			
		||||
            if info_dict.get('requested_formats') is not None:
 | 
			
		||||
                for f in info_dict['requested_formats']:
 | 
			
		||||
                    self.to_stdout(f['url'] + f.get('play_path', ''))
 | 
			
		||||
            else:
 | 
			
		||||
                # For RTMP URLs, also include the playpath
 | 
			
		||||
                self.to_stdout(info_dict['url'] + info_dict.get('play_path', ''))
 | 
			
		||||
        if self.params.get('forcethumbnail', False) and info_dict.get('thumbnail') is not None:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user