mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
small fix
This commit is contained in:
parent
44574e76f0
commit
023194e327
1 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ open class Jeniusplay : ExtractorApi() {
|
||||||
tryParseJson<List<Tracks>>("[$subData]")?.map { subtitle ->
|
tryParseJson<List<Tracks>>("[$subData]")?.map { subtitle ->
|
||||||
subtitleCallback.invoke(
|
subtitleCallback.invoke(
|
||||||
SubtitleFile(
|
SubtitleFile(
|
||||||
getLanguage(subtitle.label.toString()),
|
getLanguage(subtitle.label ?: ""),
|
||||||
subtitle.file
|
subtitle.file
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -52,8 +52,8 @@ open class Jeniusplay : ExtractorApi() {
|
||||||
|
|
||||||
private fun getLanguage(str: String): String {
|
private fun getLanguage(str: String): String {
|
||||||
return when {
|
return when {
|
||||||
str.lowercase().contains("indonesia") || str.lowercase()
|
str.contains("indonesia", true) || str
|
||||||
.contains("bahasa") -> "Indonesian"
|
.contains("bahasa", true) -> "Indonesian"
|
||||||
else -> str
|
else -> str
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue