[downloader] Add --hls-prefer-native to use the native HLS downloader (#4966)
This commit is contained in:
		
							parent
							
								
									1db5fbcfe3
								
							
						
					
					
						commit
						85729c51af
					
				
					 4 changed files with 12 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -34,6 +34,9 @@ def get_suitable_downloader(info_dict, params={}):
 | 
			
		|||
        if ed.supports(info_dict):
 | 
			
		||||
            return ed
 | 
			
		||||
 | 
			
		||||
    if protocol == 'm3u8' and params.get('hls_prefer_native'):
 | 
			
		||||
        return NativeHlsFD
 | 
			
		||||
 | 
			
		||||
    return PROTOCOL_MAP.get(protocol, HttpFD)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue