mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-03 19:34:49 +00:00 
			
		
		
		
	fix(HLS): Ensure playlist.stream_info.resolution exists before use
This commit is contained in:
		
							parent
							
								
									1db8944b09
								
							
						
					
					
						commit
						5c7c080a34
					
				@ -131,8 +131,8 @@ class HLS:
 | 
				
			|||||||
                        codec.split(".")[0] in ("dva1", "dvav", "dvhe", "dvh1")
 | 
					                        codec.split(".")[0] in ("dva1", "dvav", "dvhe", "dvh1")
 | 
				
			||||||
                        for codec in (playlist.stream_info.codecs or "").lower().split(",")
 | 
					                        for codec in (playlist.stream_info.codecs or "").lower().split(",")
 | 
				
			||||||
                    ) else Video.Range.from_m3u_range_tag(playlist.stream_info.video_range),
 | 
					                    ) else Video.Range.from_m3u_range_tag(playlist.stream_info.video_range),
 | 
				
			||||||
                    width=playlist.stream_info.resolution[0],
 | 
					                    width=playlist.stream_info.resolution[0] if playlist.stream_info.resolution else None,
 | 
				
			||||||
                    height=playlist.stream_info.resolution[1],
 | 
					                    height=playlist.stream_info.resolution[1] if playlist.stream_info.resolution else None,
 | 
				
			||||||
                    fps=playlist.stream_info.frame_rate
 | 
					                    fps=playlist.stream_info.frame_rate
 | 
				
			||||||
                ) if primary_track_type is Video else {})
 | 
					                ) if primary_track_type is Video else {})
 | 
				
			||||||
            ))
 | 
					            ))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user