fix(pt/Anitube): Fix video links (#1638)
* fix: Fix video links * chore: Bump version
This commit is contained in:
parent
055c99be5a
commit
48eefa5045
@ -1,11 +1,13 @@
|
|||||||
apply plugin: 'com.android.application'
|
plugins {
|
||||||
apply plugin: 'kotlin-android'
|
alias(libs.plugins.android.application)
|
||||||
|
alias(libs.plugins.kotlin.android)
|
||||||
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
extName = 'Anitube'
|
extName = 'Anitube'
|
||||||
pkgNameSuffix = 'pt.anitube'
|
pkgNameSuffix = 'pt.anitube'
|
||||||
extClass = '.Anitube'
|
extClass = '.Anitube'
|
||||||
extVersionCode = 9
|
extVersionCode = 10
|
||||||
libVersion = '13'
|
libVersion = '13'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,13 +17,13 @@ object AnitubeExtractor {
|
|||||||
.replace("cdn1", "cdn3")
|
.replace("cdn1", "cdn3")
|
||||||
val type = serverUrl.split("/").get(3)
|
val type = serverUrl.split("/").get(3)
|
||||||
val qualities = listOfNotNull("SD", "HD", if (hasFHD) "FULLHD" else null)
|
val qualities = listOfNotNull("SD", "HD", if (hasFHD) "FULLHD" else null)
|
||||||
val paths = listOf("appsd", "apphd", "appfullhd").let {
|
val paths = listOf("appsd", "apphd").let {
|
||||||
if (type.endsWith("2")) {
|
if (type.endsWith("2")) {
|
||||||
it.map { path -> path + "2" }
|
it.map { path -> path + "2" }
|
||||||
} else {
|
} else {
|
||||||
it
|
it
|
||||||
}
|
}
|
||||||
}
|
} + listOf("appfullhd")
|
||||||
return qualities.mapIndexed { index, quality ->
|
return qualities.mapIndexed { index, quality ->
|
||||||
val path = paths[index]
|
val path = paths[index]
|
||||||
val url = serverUrl.replace(type, path)
|
val url = serverUrl.replace(type, path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user