mirror of
				https://github.com/recloudstream/cloudstream.git
				synced 2024-08-15 01:53:11 +00:00 
			
		
		
		
	hopefully fixed #1096
This commit is contained in:
		
							parent
							
								
									4fa60e6b5e
								
							
						
					
					
						commit
						699d43aeb3
					
				
					 2 changed files with 13 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -354,6 +354,17 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
 | 
			
		|||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    fun test() {
 | 
			
		||||
        /*runBlocking {
 | 
			
		||||
            //https://test.api.anime-skip.com/graphiql
 | 
			
		||||
            val txt = app.get(
 | 
			
		||||
                "https://api.anime-skip.com/status",
 | 
			
		||||
                headers = mapOf("X-Client-ID" to "")
 | 
			
		||||
            )
 | 
			
		||||
            println("TEXT: $txt")
 | 
			
		||||
        }*/
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    override fun onCreate(savedInstanceState: Bundle?) {
 | 
			
		||||
        // init accounts
 | 
			
		||||
        for (api in OAuth2accountApis) {
 | 
			
		||||
| 
						 | 
				
			
			@ -585,7 +596,7 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
 | 
			
		|||
        }
 | 
			
		||||
 | 
			
		||||
        loadCache()
 | 
			
		||||
 | 
			
		||||
        test()
 | 
			
		||||
        /*nav_view.setOnNavigationItemSelectedListener { item ->
 | 
			
		||||
            when (item.itemId) {
 | 
			
		||||
                R.id.navigation_home -> {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -480,7 +480,7 @@ class GeneratorPlayer : FullScreenPlayer() {
 | 
			
		|||
 | 
			
		||||
        if (settings)
 | 
			
		||||
            subtitles.firstOrNull { sub ->
 | 
			
		||||
                sub.name.startsWith(lang)
 | 
			
		||||
                sub.name.replace(Regex("[^A-Za-z]")," ").startsWith("$lang ")
 | 
			
		||||
                        || sub.name.trim() == langCode
 | 
			
		||||
            }?.let { sub ->
 | 
			
		||||
                return sub
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue