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?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
// init accounts
|
// init accounts
|
||||||
for (api in OAuth2accountApis) {
|
for (api in OAuth2accountApis) {
|
||||||
|
@ -585,7 +596,7 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
loadCache()
|
loadCache()
|
||||||
|
test()
|
||||||
/*nav_view.setOnNavigationItemSelectedListener { item ->
|
/*nav_view.setOnNavigationItemSelectedListener { item ->
|
||||||
when (item.itemId) {
|
when (item.itemId) {
|
||||||
R.id.navigation_home -> {
|
R.id.navigation_home -> {
|
||||||
|
|
|
@ -480,7 +480,7 @@ class GeneratorPlayer : FullScreenPlayer() {
|
||||||
|
|
||||||
if (settings)
|
if (settings)
|
||||||
subtitles.firstOrNull { sub ->
|
subtitles.firstOrNull { sub ->
|
||||||
sub.name.startsWith(lang)
|
sub.name.replace(Regex("[^A-Za-z]")," ").startsWith("$lang ")
|
||||||
|| sub.name.trim() == langCode
|
|| sub.name.trim() == langCode
|
||||||
}?.let { sub ->
|
}?.let { sub ->
|
||||||
return sub
|
return sub
|
||||||
|
|
Loading…
Reference in a new issue