mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	Fix JOC check on HLS playlists with no audio channel info
This commit is contained in:
		
							parent
							
								
									1f86775ac9
								
							
						
					
					
						commit
						221cd1c283
					
				@ -148,7 +148,7 @@ class HLS:
 | 
			
		||||
            if media.type == "AUDIO":
 | 
			
		||||
                track_type = Audio
 | 
			
		||||
                codec = audio_codecs_by_group_id.get(media.group_id)
 | 
			
		||||
                if media.channels.endswith("/JOC"):
 | 
			
		||||
                if media.channels and media.channels.endswith("/JOC"):
 | 
			
		||||
                    joc = int(media.channels.split("/JOC")[0])
 | 
			
		||||
                    media.channels = "5.1"
 | 
			
		||||
            else:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user