mirror of
				https://github.com/recloudstream/cloudstream.git
				synced 2024-08-15 01:53:11 +00:00 
			
		
		
		
	fixed selecting lang 1 instead of lang
This commit is contained in:
		
							parent
							
								
									699d43aeb3
								
							
						
					
					
						commit
						1f56d0c12e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -480,7 +480,8 @@ class GeneratorPlayer : FullScreenPlayer() {
 | 
			
		|||
 | 
			
		||||
        if (settings)
 | 
			
		||||
            subtitles.firstOrNull { sub ->
 | 
			
		||||
                sub.name.replace(Regex("[^A-Za-z]")," ").startsWith("$lang ")
 | 
			
		||||
                val t = sub.name.replace(Regex("[^A-Za-z]"), " ").trim()
 | 
			
		||||
                t == lang || t.startsWith("$lang ")
 | 
			
		||||
                        || sub.name.trim() == langCode
 | 
			
		||||
            }?.let { sub ->
 | 
			
		||||
                return sub
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue