hopefully fixed #1096

This commit is contained in:
LagradOst 2022-05-26 19:04:39 +02:00
parent 4fa60e6b5e
commit 699d43aeb3
2 changed files with 13 additions and 2 deletions

View file

@ -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 -> {

View file

@ -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