mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 10:27:07 -05:00 
			
		
		
		
	Merge pull request #7126 from remitamine/vimeo
[vimeo] extract m3u8 manifest and bitrate
This commit is contained in:
		@@ -395,14 +395,17 @@ class VimeoIE(VimeoBaseInfoExtractor):
 | 
			
		||||
                    'ext': codec_extension,
 | 
			
		||||
                    'url': video_url,
 | 
			
		||||
                    'format_id': format_id,
 | 
			
		||||
                    'width': file_info.get('width'),
 | 
			
		||||
                    'height': file_info.get('height'),
 | 
			
		||||
                    'width': int_or_none(file_info.get('width')),
 | 
			
		||||
                    'height': int_or_none(file_info.get('height')),
 | 
			
		||||
                    'tbr': int_or_none(file_info.get('bitrate')),
 | 
			
		||||
                })
 | 
			
		||||
        formats = []
 | 
			
		||||
        m3u8_url = config_files.get('hls', {}).get('all')
 | 
			
		||||
        if m3u8_url:
 | 
			
		||||
            formats = self._extract_m3u8_formats(m3u8_url, video_id, 'mp4', 'm3u8_native', 0, 'hls', fatal=False)
 | 
			
		||||
        for key in ('other', 'sd', 'hd'):
 | 
			
		||||
            formats += files[key]
 | 
			
		||||
        if len(formats) == 0:
 | 
			
		||||
            raise ExtractorError('No known codec found')
 | 
			
		||||
        self._sort_formats(formats)
 | 
			
		||||
 | 
			
		||||
        subtitles = {}
 | 
			
		||||
        text_tracks = config['request'].get('text_tracks')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user