mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
parent
c433df0f29
commit
5d98de793f
2 changed files with 3 additions and 3 deletions
|
@ -76,12 +76,12 @@ open class Cda: ExtractorApi() {
|
||||||
return if (a.contains("/upstream")) "https://" + a.replace("/upstream", ".mp4/upstream")
|
return if (a.contains("/upstream")) "https://" + a.replace("/upstream", ".mp4/upstream")
|
||||||
else "https://${a}.mp4"
|
else "https://${a}.mp4"
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getFile(a: String) = when {
|
private fun getFile(a: String) = when {
|
||||||
a.startsWith("uggc") -> cdaUggc(a)
|
a.startsWith("uggc") -> cdaUggc(a)
|
||||||
!a.startsWith("http") -> cdaDecrypt(a)
|
!a.startsWith("http") -> cdaDecrypt(a)
|
||||||
else -> a
|
else -> a
|
||||||
}
|
}
|
||||||
|
|
||||||
data class VideoPlayerData(
|
data class VideoPlayerData(
|
||||||
val file: String,
|
val file: String,
|
||||||
|
|
|
@ -362,7 +362,7 @@ class InAppUpdater {
|
||||||
fun isMiUi(): Boolean {
|
fun isMiUi(): Boolean {
|
||||||
return !TextUtils.isEmpty(getSystemProperty("ro.miui.ui.version.name"))
|
return !TextUtils.isEmpty(getSystemProperty("ro.miui.ui.version.name"))
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getSystemProperty(propName: String): String? {
|
fun getSystemProperty(propName: String): String? {
|
||||||
var line: String? = null
|
var line: String? = null
|
||||||
var input: BufferedReader? = null
|
var input: BufferedReader? = null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue