mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
sora: fix crunchy
This commit is contained in:
parent
1e2f746676
commit
aada4b49fe
6 changed files with 56 additions and 34 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 18
|
||||
version = 19
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -217,9 +217,10 @@ class Samehadaku : MainAPI() {
|
|||
}
|
||||
|
||||
private fun String.fixQuality() : Int {
|
||||
return when(this) {
|
||||
"MP4HD" -> Qualities.P720.value
|
||||
return when(this.uppercase()) {
|
||||
"4K" -> Qualities.P2160.value
|
||||
"FULLHD" -> Qualities.P1080.value
|
||||
"MP4HD" -> Qualities.P720.value
|
||||
else -> this.filter { it.isDigit() }.toIntOrNull() ?: Qualities.Unknown.value
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue